-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Poly Phones
- Desk and IP Conference Phones
- Receiving Telephony Events From Sound Point IP 650

Create an account on the HP Community to personalize your profile and ask a question

11-08-2011 09:59 AM
I am developing applications for a Sound Point 650 Phone with Sip Sofware 3.2.5.
I have developed a Java servlet running in Tomcat 5.5 in order to interact with the web browser on the phone. Pushing web pages, URI Pushes, and handling form requests etc.
Now I want to receive Telephony Notification Events. I have turned on Telephony Event Notification in the config files as described in the Web Application Developers Guide.
What I do not understand is what kind of handler I need to create on the web server to catch and handle these events. I am giving the URL of my servlet, my understanding of the documentation is that the events would be posted to my servlet, but I am not receiving them? What am I missing.
Thanks.
Jerry
Solved! Go to Solution.
Accepted Solutions
11-09-2011 09:34 AM
Hello Jerry,
only a wireshark trace or modifying the log levels on the Phone could/would tell if the Phone sends the data to this URL or if Tomcat refuses to accept the Data.
This is more a support related issue and should be dealt with via the proper channels described in the FAQ and outside the scope of this community.
I have tested this before in my lab and this works in SIP 3.2.x, UCS 3.3.x and UCS 4.0.x without issues using the suggested Websnarf as an example.
Other Members in this forum have also tested this before =>here <=.
Best Regards
Steffen Baier
Polycom Global Services
Notice: I am an HP Poly employee but all replies within the community are done as a volunteer outside of my day role. This community forum is not an official HP Poly support resource, thus responses from HP Poly employees, partners, and customers alike are best-effort in attempts to share learned knowledge.
If you need immediate and/or official assistance for former Poly\Plantronics\Polycom please open a service ticket through your support channels
For HP products please check HP Support.
Please also ensure you always check the General VoIP , Video Endpoint , UC Platform (Microsoft) , PSTN
11-08-2011 10:05 AM
Hello jdvorak,
welcome to the Polycom Community.
The Phone is sending them in XML Format to Port 80 for example.
I tested this internally with a perl script called Websnarf that would just receive the Http and store the result.
UCS 4.0.0 has more events.
Best Regards
Steffen Baier
Polycom Global Services
Notice: I am an HP Poly employee but all replies within the community are done as a volunteer outside of my day role. This community forum is not an official HP Poly support resource, thus responses from HP Poly employees, partners, and customers alike are best-effort in attempts to share learned knowledge.
If you need immediate and/or official assistance for former Poly\Plantronics\Polycom please open a service ticket through your support channels
For HP products please check HP Support.
Please also ensure you always check the General VoIP , Video Endpoint , UC Platform (Microsoft) , PSTN

11-08-2011 11:37 AM
Thank you for the response, but I am still a bit confused. Let me please give more specifics.
The URL that is set as the home page for the phone's mini-browser is: "mb.main.home="http://xxx.xxx.xxx.xxx:8080/PolycomWeb/Polycom?startLogin" "Polycom" is the servlet that interfaces with the mini-browser. The home page is a login page, and this all works fine.
In the sip.cfg file I have set the following configuration for Telephony Event Notification:
<telNotification apps.telNotification.URL="http://xxx.xxx.xxx.xxx:8080/PolycomWeb/Polycom" apps.telNotification.incomingEvent="1" apps.telNotification.outgoingEvent="1" apps.telNotification.onhookEvent="1" apps.telNotification.offhookEvent="1" />
Is my understanding incorrect that when a Telephony Notification Event is posted by the phone, that it should arrive at the doPost() event of my servlet "Polycom", which is what the URL is pointing to?
Thanks,
Jerry
11-08-2011 12:05 PM
Hello Jerry,
the apps.telNotification.URL is the destination where the Phone sends the Data to.
I ran Websnarf on my URL to IP of my PC.
Once the phone had an event it would send it to my PC and Websnarf would capture the Data.
Best regards
Steffen Baier
Polycom Global Services
Notice: I am an HP Poly employee but all replies within the community are done as a volunteer outside of my day role. This community forum is not an official HP Poly support resource, thus responses from HP Poly employees, partners, and customers alike are best-effort in attempts to share learned knowledge.
If you need immediate and/or official assistance for former Poly\Plantronics\Polycom please open a service ticket through your support channels
For HP products please check HP Support.
Please also ensure you always check the General VoIP , Video Endpoint , UC Platform (Microsoft) , PSTN

11-08-2011 12:34 PM
Jerry,
The data from the telNotification event gets posted to the url at apps.telNotification.URL. This data is formed as XML but comes is transfered as a string and some parsing must be done. In my own (python based) applications I have a library called XML2Dict that I use to parse event notification XML.
The code looks something like this (for a line registration event):
#after saving 'post_data' from request.POST[0] post_data.encode('utf8') xml = XML2Dict() #parse data into dict obj xml_dict = xml.fromstring(post_data) #store key variables from xml dict PhoneIP = xml_dict.PolycomIPPhone.LineRegistrationEvent.PhoneIP MAC = xml_dict.PolycomIPPhone.LineRegistrationEvent.MACAddress

11-08-2011 01:24 PM
Thanks, your answer comfirms that the servlet that the URL is pointing to should get the post.
The question now is why is the servlet not receiving the events? As far as I can tell, the configuration is correct, and the servlet has no problems interfacing with the phone in any other way.
Jerry
11-09-2011 06:36 AM
Jerry,
have you got an application listening at Port 8080 on your PC ?
The apps.telNotification.URL="http://xxx.xxx.xxx.xxx:8080" would be the destination of these reports from the Phone and it should send these to that address/application.
Without seeing any logs to check if the Configuration is even applied is rather difficult.
I would suggest to ensure that these are set correctly and loaded and as a troubleshooting hint maybe upgrade to UCS 3.3.2 as this Software has enhanced Information regarding provisioning errors.
Please use the cfcUtility (FAQ) to convert the Old Configuration files.
Steffen Baier
Polycom Global Services
Notice: I am an HP Poly employee but all replies within the community are done as a volunteer outside of my day role. This community forum is not an official HP Poly support resource, thus responses from HP Poly employees, partners, and customers alike are best-effort in attempts to share learned knowledge.
If you need immediate and/or official assistance for former Poly\Plantronics\Polycom please open a service ticket through your support channels
For HP products please check HP Support.
Please also ensure you always check the General VoIP , Video Endpoint , UC Platform (Microsoft) , PSTN

11-09-2011 08:48 AM
Yes, Tomcat is listening at port 8080. The URL to the Tomcat servlet that I assigned for the telNotification is the same URL that I used for the phone mini browser home page, which works fine.
I checked the logs. The boot log says the phone was provisioned successfully with no errors. Since the "mb.main.home", "mb.idleDisplay.home", and "apps.push.serverRootURL" all are loaded properly, and are working correctly, I would wonder why the telNotification.URL would not load successfully.
Thanks.
Jerry