10-09-2019 08:51 AM
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 ?
Solved! Go to Solution.
10-09-2019 10:50 AM
<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>
10-09-2019 10:50 AM
<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>
10-14-2019 11:55 AM
Thanks! That certainly helped out.
/EM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide