cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1313
Views
0
Helpful
2
Replies

CUCM 11.5 How to query the correct line ID in CUCM.

emontero94
Level 1
Level 1

Hi

We are using Cisco AXL webservices to created and configure UC user accounts. while working on some changes to update line telephone and display names, we noticed that the lines order is not maintained i.e. when there are more than one line associated with a device profile, position 0 of the API response will not be that of the Line1 from call manager. Following piece of code might help you to understand the concern

List<RPhoneLine> lstPhoneLine = obj.getDeviceProfile().getLines().getLine();
RPhoneLine _Line = lstPhoneLine.get(0);

Here, the line details at position 0 will not be corresponding to Line1 of device profile in CUCM.

Is there a way to get the details of Line1 of a device profile ?

1 Accepted Solution

Accepted Solutions

dstaudt
Cisco Employee
Cisco Employee

<getDeviceProfile><lines><line><index> should hold the place ordering of the line on the device itself; however, as you note, the order of the <line> elements in the <lines> list is not guaranteed to be ascending by <index>:

 

<lines>
    <line uuid="{338FD78E-A38C-AA06-26EA-A0A3C38E52FC}">
        <index>2</index>
        <label/>
        <display/>
        <dirn uuid="{65813CAC-40DA-9C45-169E-CAC8964C1C6A}">
        <pattern>8942</pattern>
        <routePartitionName/>
    ...	
    </line>
    <line uuid="{74EF21B0-468A-3938-4077-DDD3CB1B38F9}">
        <index>1</index>
        <label/>
        <display/>
        <dirn uuid="{316C2734-248A-B570-5BC5-CF6039B7946C}">
        <pattern>8941</pattern>
        <routePartitionName/>
        </dirn>
    ...
    </line>
</lines>

View solution in original post

2 Replies 2

dstaudt
Cisco Employee
Cisco Employee

<getDeviceProfile><lines><line><index> should hold the place ordering of the line on the device itself; however, as you note, the order of the <line> elements in the <lines> list is not guaranteed to be ascending by <index>:

 

<lines>
    <line uuid="{338FD78E-A38C-AA06-26EA-A0A3C38E52FC}">
        <index>2</index>
        <label/>
        <display/>
        <dirn uuid="{65813CAC-40DA-9C45-169E-CAC8964C1C6A}">
        <pattern>8942</pattern>
        <routePartitionName/>
    ...	
    </line>
    <line uuid="{74EF21B0-468A-3938-4077-DDD3CB1B38F9}">
        <index>1</index>
        <label/>
        <display/>
        <dirn uuid="{316C2734-248A-B570-5BC5-CF6039B7946C}">
        <pattern>8941</pattern>
        <routePartitionName/>
        </dirn>
    ...
    </line>
</lines>

Thanks! That certainly helped out.

 

/EM