04-21-2004 10:48 PM - edited 03-13-2019 04:44 AM
is it possible, and how?
thanks a lot
04-26-2004 05:18 AM
04-26-2004 10:45 PM
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
04-26-2004 11:18 PM
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
04-27-2004 06:34 AM
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!
04-27-2004 12:50 PM
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
04-27-2004 09:59 PM
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???
04-28-2004 10:29 AM
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.
04-30-2004 12:18 AM
@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.
04-30-2004 02:36 AM
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?
05-04-2004 09:11 PM
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.
05-04-2004 10:24 PM
:-)
no, i have not it from IPNetworkers forum. you have outstripped me. thats all and dont getting down youre worthness.
Nice day, Bedla
05-04-2004 10:28 PM
Oops, you're right, I just checked the timestamps. My apologies.
05-05-2004 04:44 AM
OK :-)
I know that it looks like stolen forum post.
05-05-2004 10:40 AM
test
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide