Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

getting ip address

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?

thanks,

paul.

13 REPLIES

Re: getting ip address

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.

Community Member

Re: getting ip address

And what is the name of the table for AXL?

Community Member

Re: getting ip address

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.

C

Re: getting ip address

@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..

Community Member

Re: getting ip address

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:pw@ip/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

Community Member

Re: getting ip address

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?

Re: getting ip address

Community Member

Re: getting ip address

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)?

Re: getting ip address

Bookmark this site: http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_programming_reference_guides_list.html

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.

http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/devguide/5_0_4/ccmdev.html

Community Member

Re: getting ip address

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 :

http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Unified%20Communications%20and%20Video&topic=IP%20Phone%20Services%20for%20Developers&topicID=.ee94c94&fromOutline=&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.2cbff352

Community Member

Re: getting ip address

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

Thank you

Community Member

Re: getting ip address

I have find the solution, if someone have questions...

Community Member

Re: getting ip address

Hi, I have the same query, can you email me your solution to paul.harris@ciplets.com

Thanks

Paul

333
Views
0
Helpful
13
Replies
CreatePlease to create content