04-05-2006 08:34 PM - edited 03-13-2019 12:48 PM
Hi,
How can I get the Phone IP address using the extension? For example, I have the extension 7001 and I want to get the IP address.
Thanks
04-06-2006 05:48 AM
There are a couple of things you're not saying and that are quite important. E.g. are you using extension mobility or not?
Here's one approach that'll always work, EM or not. List all the phones via AXL (listPhoneByName with name %), call a getPhone on each and from that you get the DNs off each phone.
Then from the phone name, access the DeviceListX.asp to go from phone name to IP address.
If in the getPhone response you have loginUserID set to something else than an empty string, it means an extension mobility user is logged into that phone. If that's the case, get the currentProfile from the phone - specifically the uuid. With that info, you call getDeviceProfile with the profile uuid as parameter, and in turn you get the profile of the currently logged in user, and the lines on the phone.
Naturally, there are other ways. E.g. an SQL query (get the db schema).. you'll find lines in the NumPlan table. Link that to the device table to find which devices have a given line. Then you have to make the difference between actual phones (they have SEP in the name for IP phones.. ATA boxes, VG Ports have other common prefixes.. and when it comes to RPs and CTI ports those can have whatever name you like ) and device profiles.
If you have no em, you can look up the SEP name in the DeviceListX.asp report. If you have em, it now comes down to lookup up the device to which a profile is currently tied to (or multiple if you allow multiple logins by the same user) and then look those up. By having a look at the db schema you'll be able to make the link.
Now, for AXL, get the SDK (http://www.cisco.com/cgi-bin/dev_support/access_level/product_support)
for anything else, you can find all the development documentation there is on a single page: http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_programming_reference_guides_list.html
05-31-2006 11:37 AM
Is there a way to get IP but one at time not a list of them
Does any one knows how to do what DeviceListX.asp using a ActiveX control do but in java?
best regards
05-31-2006 02:43 PM
I think you can use the AXL RIS interface,
from phonename...(or all devices)
But I reckon you should do a daily DevicelistX and store it in a database, ip-addresses of phones should not change anyway...
You can access it quite easy via java
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