cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
442
Views
3
Helpful
4
Replies

How to determine device ip or phone number

moatazmedhat
Level 1
Level 1

Hi, I'm new to XML services, got a question please, consider the case that I need displaying the phone number on the phone screen, how to determine the ip of the phone or its number from within an xml service?

would appreciate help, thank you

4 Replies 4

gpulos
Level 8
Level 8

you could probably write an XML that digs into the CCM SQL database to get the Phone DN and IP associated to it.

there was a post about some SQL tables that hold this info. i do forget the tables off the top of my head but will research and post if i find them.

also, search this forum for SQL tables posts. there have been a few.

Thank you for reply,

I think that what you are describing is how to get the phone number given the ip or vice versa.

My problem is, any telephone should have its own ip, how can I get it?

In other words, I need to display a content dependent on the phone itself (for example either its ip or number), so, how from a service can I determine the ip of the phone being serviced?

Thank you very much, would appreciate any solutions.

There are two ways you can get the IP address:

1. Get the IP from the request object. In Java do the following:

req.getRemoteAddr();

2. Get the Device List from the call manager, parse it, and cross reference with DEVICE NAME. See Cisco IP Phone Services Application

Development Notes - Release 4.1(3) - Chapter 8 - DeviceListX Report)

Is this what you are looking for?

stahkaoja
Level 1
Level 1

In VBScript:

Set thisIP = Request.ServerVariables("REMOTE_HOST")

In JavaScript:

var thisIP = Request.ServerVariables("REMOTE_HOST");