getting ip address

Unanswered Question
Feb 1st, 2008

I'm asking this question on behalf of my developer.

Using the current JTAPI calls/classes how do you get the ip address of an ip phone?



I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
stephan.steiner Mon, 02/04/2008 - 06:00

You can't.. you need to do an AXL Serviceability (CCM 5 and higher) or http get request to the DeviceListX report on CCM 4.3 and lower to go from the device name to the IP address.

However, why do you need the IP address from within JTAPI? If you want to push something to a phone, you can do that via tapi thus bypassing the push authentication.

ckatene Mon, 02/04/2008 - 20:45

When the phone you are controlling becomes involved in a call, your application will receive a CiscoRTPInputStarted event. From memory, you can extract the RTPInputProperties, which include the phone's IP address.

Actually, It may be CiscoRTPOutputStarted/RTPOutputProperties - can't remember exactly.


stephan.steiner Wed, 05/21/2008 - 01:27

@Flexcomm99: IP Adresses are not stored in any database table.. so I think what you were trying to do (do an AXL request to extract the IP address) won't work. As I said, you need AXL serviceability. The IP Address is stored in an in memory database which can only be accessed via DeviceListX (CCM up to 4.3.x) or AXL Serviceability webservice (CCM 5 and up - the service you want to query is called RisPort).. and while AXL Serviceability also allows to make SQL queries, those queries are sent to the "physical" database so you cannot query the in memory database either..

Flexcom99 Tue, 05/27/2008 - 00:43

It is to send a message by exemple, and there are not event to extract the IP.

In the asp push2phone in the IPCiscoService, we need the IP to send a message. The IP was known in a callmanager 4.x and not in a callmanager 5.x

I try to use devicelistX, but i don't unterstand how to use it.

I post http://login:[email protected]/CCMAdmin/reports/devicelistx.asp

in a browser and i have the error 404. Is it ok?

Do I use the same method that I use with axl?

thank for your answer

Flexcom99 Tue, 05/27/2008 - 05:36

I try to use risport but i have a problem with the Soap Message.

Does it exist a toolkit or an exemple to do the class to send a request as AXLsqlToolKit?

Flexcom99 Tue, 05/27/2008 - 23:51

I'm sorry, I couldn't edit my first message to correct it.

Thanks for you help, I have a last question, how do you send the request to the server(Callmanager)?

stephan.steiner Wed, 05/28/2008 - 01:17

Bookmark this site:

It contains links to all programming guides for callmanager, amongst others the callmanager developer guide for ccm 5 which explains how to use the various xml apis the callmanager offers.

Flexcom99 Fri, 05/30/2008 - 05:18

In the documentation, there is no exemple in Java.

If someone can post an exemple in Java to send a soad or tell me what is the problem in my code (cf attachement).

the String sAXLRequest is exactly the file what is joined here :

Flexcom99 Tue, 06/03/2008 - 23:01

Somebody can help me, it is the last point of my project.

Thank you


This Discussion