cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1311
Views
0
Helpful
16
Replies

how to get phone ip without using devicelistx.asp?

bedla.czech
Level 1
Level 1

is it possible, and how?

thanks a lot

16 Replies 16

bedla.czech
Level 1
Level 1

i have found solution. i only have removed timeout restrictions from devicelistx.asp. every thing works fine :-)

i would like to know what you mean - i don't understand what you mean about timeout restrictions, and i'm unable to access your attachment.

how did you do it?

callum

ok,

attachment can be downloaded when you are logged into forum.

time out restrictions means that original devicelistx.asp script has 5 minutes timeout. So you cannot access this script in this 5 minutes without getting error message and if you access this script in first minute you can receive error message "1001 - Too many simultaneous requests for Device List. Please wait at least 60 seconds and try again."

I was looking solution that solves problem that devicelist is not realtime :-).

And i thing that my solution solves this problem.

Have a nice day, Bedla

Just a note: the timeout was in the script to prevent it from possibly impacting CallManager performance. So by removing the timeout from the script, you may impact CallManager performance negatively.

The suggested solution (from Cisco) is to cache the values from devicelistx yourself. That is, create a sort of middleware between your app and devicelistx. Then you can call your middleware page as often as you want, and the middleware can refresh every 5 minutes.

Just a thought!

you mean you just rewrote the asp script to turn off the timeout check? that is a terrible solution! how on earth can you expect your installation to be supportable if you disable the safety mechanisms?

c

yes, i know that this is a crap. but how to do it without using devicelist.asp??? how to get a real time ip list???

yes, i know exactly how frustrated you are. the other way i have found is to use jtapi, register to receive events and you can determine the ip address from the RTP stream event reported when the phone is used.

I have an app that regularly polls the devicelistx report, reads the results into an in-memory database, and can be queried using simple URL requests.

http://www.nzice.com/PhoneMessenger&DeviceListServer.PDF

@bedla: check my last post in the ITPNetworkers forum.. I think that should help you. In fact, I've used AXL to get a list of phones before (buried somewhere in my "trial and error" code). I'm using the Cisco IP Phone SDK classes and my AXL Query looks like this:

getter.axlQuery("listPhoneByDescription", "%");

getter is a class implementing parts of Cisco's AXLProvider.. the axlQuery method has the same arguments but mine is dumber. Using the wildcard % you should get all phones.

stephan: i have tried your solution but it doesnt return ip address.

so, i have looking for again and found maybe final solution :-)

on ccm iis server is file /CCMAdmin/getdeviceip.asp you can call is with parametr devicename and result is xml response with ip addres of given device.

example: http://192.168.0.251/CCMAdmin/getdeviceip.asp?devicename=SEP000B46D9C424

maybe it is more secure solution, what is youre opinion?

The poster probably got this from the IPTNetworkers forum where I posted this information in a duplicate thread he started, so I'll copy my reply here:

---

You were a little light on details as to why you can't use devicelistx.asp. If you're unable to call HTTP-based methods against your CallManager, you're out of luck with devicelistx.asp and AXL both, so you would have to use [J]TAPI or something similar.

If you're okay with HTTP and some light XML parsing, try this on for size:

http://your.callmanager.net/ccmadmin/getdeviceip.asp?devicename=SEP00059A3C7800

It should return a response that looks something like this:

or an appropriate error if the device was not found or you messed up the syntax. The response status relates to whether it was found in the database only, not whether the device is registered (CallManager will remember the device's last IP while running). If your problem with devicelistx.asp was that it didn't show all phones without hacking it up, hopefully this will help. I don't think you're even limited to looking up phones with this. If you need a device listing first to go fishing for device names, use /ccmadmin/numplandump.asp.

Some caveats: I know of no documentation or support for this interface, I've just stumbled across it in the past. It may tear up your homework, eat your goldfish or insult your mother. Do not fold, spindle or mutilate. No warranties, express or implied. May not perform correctly with your version of CallManager or may not even be present.

If this isn't what you're looking for, you need to be clearer about what you are looking for.

:-)

no, i have not it from IPNetworkers forum. you have outstripped me. thats all and dont getting down youre worthness.

Nice day, Bedla

Oops, you're right, I just checked the timestamps. My apologies.

OK :-)

I know that it looks like stolen forum post.

test