Plantronics + Polycom. Now together as Poly Logo

Receiving Telephony Events From Sound Point IP 650

SOLVED
jdvorak
Occasional Advisor

Receiving Telephony Events From Sound Point IP 650

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

Message 1 of 13
1 ACCEPTED SOLUTION

Accepted Solutions
SteffenBaierUK
Polycom Employee & Community Manager

Re: Receiving Telephony Events From Sound Point IP 650

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

----------------
The title Polycom Employee & Community Manager is a community setting and does not reflect my role. I am just a simple volunteer in the community like everybody else. All posts and words are my own & do not represent the views of Employer.

----------------

Notice: This community forum is not an official Poly support resource, thus responses from Poly employees, partners, and customers alike are best-effort in attempts to share learned knowledge. If you need immediate and/or official assistance please open a service ticket through your proper support channels.
Please also ensure you always check the VoIP , Video Endpoint , Skype for Business , PSTN or RPM FAQ's

View solution in original post

Message 11 of 13
12 REPLIES 12
SteffenBaierUK
Polycom Employee & Community Manager

Re: Receiving Telephony Events From Sound Point IP 650

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

----------------
The title Polycom Employee & Community Manager is a community setting and does not reflect my role. I am just a simple volunteer in the community like everybody else. All posts and words are my own & do not represent the views of Employer.

----------------

Notice: This community forum is not an official Poly support resource, thus responses from Poly employees, partners, and customers alike are best-effort in attempts to share learned knowledge. If you need immediate and/or official assistance please open a service ticket through your proper support channels.
Please also ensure you always check the VoIP , Video Endpoint , Skype for Business , PSTN or RPM FAQ's
Message 2 of 13
jdvorak
Occasional Advisor

Re: Receiving Telephony Events From Sound Point IP 650

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

Message 3 of 13
SteffenBaierUK
Polycom Employee & Community Manager

Re: Receiving Telephony Events From Sound Point IP 650

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 

----------------
The title Polycom Employee & Community Manager is a community setting and does not reflect my role. I am just a simple volunteer in the community like everybody else. All posts and words are my own & do not represent the views of Employer.

----------------

Notice: This community forum is not an official Poly support resource, thus responses from Poly employees, partners, and customers alike are best-effort in attempts to share learned knowledge. If you need immediate and/or official assistance please open a service ticket through your proper support channels.
Please also ensure you always check the VoIP , Video Endpoint , Skype for Business , PSTN or RPM FAQ's
Message 4 of 13
PolyFerSan
Polycom Employee

Re: Receiving Telephony Events From Sound Point IP 650

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

 

 

Message 5 of 13
jdvorak
Occasional Advisor

Re: Receiving Telephony Events From Sound Point IP 650

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

Message 6 of 13
PolyFerSan
Polycom Employee

Re: Receiving Telephony Events From Sound Point IP 650

I believe all notification events require the phone to have a line extension registered. Could this be the issue?

Message 7 of 13
jdvorak
Occasional Advisor

Re: Receiving Telephony Events From Sound Point IP 650

Yes, Line 1 is registered with an extension.

Message 8 of 13
SteffenBaierUK
Polycom Employee & Community Manager

Re: Receiving Telephony Events From Sound Point IP 650

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

----------------
The title Polycom Employee & Community Manager is a community setting and does not reflect my role. I am just a simple volunteer in the community like everybody else. All posts and words are my own & do not represent the views of Employer.

----------------

Notice: This community forum is not an official Poly support resource, thus responses from Poly employees, partners, and customers alike are best-effort in attempts to share learned knowledge. If you need immediate and/or official assistance please open a service ticket through your proper support channels.
Please also ensure you always check the VoIP , Video Endpoint , Skype for Business , PSTN or RPM FAQ's
Message 9 of 13
jdvorak
Occasional Advisor

Re: Receiving Telephony Events From Sound Point IP 650

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

Message 10 of 13