Cisco Support Community
Community Member

Get IP Address


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.



Re: Get IP Address

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 (

for anything else, you can find all the development documentation there is on a single page:

Community Member

Re: Get IP Address

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

Re: Get IP Address

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

CreatePlease to create content