Forums
« Back to APIs

RE: Retrieve calling number using device name

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,  
When a device is connected one can use lineDNs() to retrieve line DNs associated with this device. Is there a way to retrieve the line DNs given the device name without having the device connected?  

Any help would be greatly appreciated
Thanks.
David 

Hi David,
The current Jabber SDK does not have any "offline" API, as you say you must connect first before getting access to the device/line information. The next CUCM release 10.0 will expose a "user data services" REST API to retrieve this kind of information.
In the meantime you could download manually the device configuration from the CUCM TFTP server, parse the returned XML and read the <line> element(s). Each line has a <name> child node which contains the DN. Device configuration can be retrieved over TFTP or HTTP at these URLs:
tftp://cucm/devicename.cnf.xml
http://cucm:6970/devicename.cnf.xml
Hope this helps, Thomas

Thanks Thomas. That's really helpful.

David