03-30-2004 10:46 AM - edited 03-13-2019 04:28 AM
hello..
does anyone knows how to start an app that can monitor the state of a group of lines?..mainly what i want to do is to install the app on the managers phones, so that they can monitor if the line of other managers are onhook or off hook, before they make the call..
i see a lot of applets on the CCO..but dont know which ones to use..
thanks
06-10-2004 10:10 PM
Hi
I was browsing through the forum.
I am also planning to write an application in Java probably using Ciso Jtapi to monitor the IP Phones status.
Can you help me with the some direction or codes.
I have written a small application which captures the events of the IPPhones. But unable to understand how to map it with line number and IP Address of the phone.
Thanks
06-10-2004 11:20 PM
@vipinkalra2000: If you haven't already, have a look at the CallerInfo Server example in the IP Phone Services SDK.. it monitors all phones and sends push messages to a phone when it goes off-hook to connect an incoming call. That should give you an idea on how to map events to the particular phones.
I'm not sure about associating lines to phones in JTAPI though.. I had a quick look at the JTAPI JavaDoc, and Cisco's extensions but I did not find anything. However, you can use the existing methods in the SDK to get all the phone names, then for each phones get the lines that are associated to it. I have a small prototype for an app that can be used to set any phone's forwarding properties, which does about the same thing. Here's a code snippet:
getter.axlQuery("listPhoneByName", "
getter.axlQuery("getPhone", "
getter.axlQuery("getLine","
getter.axlQuery("getLine","
String query = "
query += "
getter.axlQuery("updateLine",query);
getter is basically a class derived from AXLProvder in the SDK. My first line enumerates all the phones, I parse those XML objects, and read out the GUIDs of the lines associated to it, then I get each line object to check if it already has a forward set (that part of the code isn't listed), and finally I call the AXL updateLine method to set a forward.
Except for the updateLine method, everything is read only and there are no performance issues there (writing on the other hand is another issue.. there's a limit to how many write operations you can make per minute but I don't recall the exact value).
I hope that helps
06-10-2004 11:35 PM
Hi Stephan
Thanks for the reply.
I am not aware of the SDK u are talking here.
Can you please give me some links to understand the same.
Thanks.
-vk
06-11-2004 02:24 AM
Cisco has a non public developer section on their webpage, where you can download developer documents and tools as well as APIs. Here's the URL: http://www.cisco.com/cgi-bin/dev_support/access_level/product_support
Access to this section requires a CCO account, which you can create by clicking on Register at the top of cisco's site (it's right there along with "Home", "Log in", etc). Registration is free and doesn't require any company affiliation, though sometime, being a member of a Cisco partner organization will give you access to more, but the SDK is available to anyone who has an account.
Anyway, once you're in, you'll see 4 dropdown lists. The first one is "VOICE TECHNOLOGY/AVVID". IN there you'll find "CallManager - IP Phone Services SDK". Selecting that option will take you to a page where you can download the SDK. Install it and you'll find a series of ASP and JSP samples, as well as a couple of java classes both compiled and in source code, with a JavaDoc documentation. Take some time to read through the examples.. I found them to be very useful (and they're well documented).
06-11-2004 03:10 AM
Hi Stephan,
Thanks for the info.
At the first sight it looks like, through the SDK we can make the application that can be deployed on IP Phone .. Am I right ?
Does this SDK has the features to hook on to call manager and take the information of the devices registerd to it?
Please advice.
-vk
06-12-2004 01:45 PM
Hi,
I don't know if it can be of any interest to you guys, but I have written a piece of script using ASP and Javascript to do just that : monitor phone status. It's not real time, the script refreshes the info every ten seconds. It also checks if the line has been forwarded, and finally it reads a text file with the list of DN you want to monitor.
I'm not a programer and I can't write any Java.
If you are interested in this code, I would for sure share it and appreciate any help as I came accross strange bugs.
If you are not, I am interrested if the Java code you are maybe writing (your post seems to imply you can easily get real time info about the phone status), would you mind sharing your work ?
Thanks.
Thierry
06-13-2004 10:33 PM
Request for u r email ID.
I tried posting the code over here but the character limit exceed.
-vk
06-13-2004 10:58 PM
06-13-2004 11:19 PM
Check u r email.
-vk
06-13-2004 11:30 PM
Well, I did receive your e-mail and I replied already. Thanks
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