« Back to IP Phone Services Questions

Notification functionality for phones registered with CUCM 8.x

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hello,
 
I am working on a project where we are sending text notifications to Cisco IP phones
via a SOAP POST XML request to the phone (/CGI/Execute).

This XML application deployed in CUCM 7.x works without any issue, but
for CUCM 8.x I see ConnectException when I try to getOutputStream as shown in code below:


final String url = "http://" + ipAddress + "/CGI/Execute";
URL netUrl = new URL(url);

connection = (HttpURLConnection) netUrl.openConnection();
// We are able to get the connection for 9971 series (cucm 8.xx)

                  connection.setRequestMethod("POST");
                  connection.setRequestProperty("Content-type", "application/x-www-form-urlencoded");
                  connection.setRequestProperty("Authorization", "Basic " + enc);
                  connection.setUseCaches(false);
                  connection.setRequestProperty("Accept", "text/xml");
                  connection.setDoInput(true);
                  connection.setDoOutput(true);
//This line throws the ConnectException for cucm 8.x but workd fine for cucm 7.xx
                  OutputStream outputStream = connection.getOutputStream();

I also tried testing with

curl <phone ip_address>

and I see Connection Exception once the phone is registered to cucm 8.x and curl works fine once we

unregister the phone from 8.x and register it with 7.x

Regards
Surbhi

Have you made sure the web server on the phone is active? What connection error code do you get?

Regards,
Erik

The web server should be active 'cause when I register this phone with cucm 7.x the Notification works fine

I tried sending Notification using a different machine with cucm 8.x and didn't the connection error there, but I see
following AUTH FAILURE
4001: Cisco IP Phone authentication failure [SEP649EF3C204EE (10.194.154.231)

I tried testing the credentials using folllowing url and they seem correct
http://10.194.150.128/ccmcip/authenticate.jsp?UserID=sk&Password=12345&devicename=SEP649EF3C204EE
AUTHORIZED

The error code is 401 (log trace)
WARN DialPreferenceDevice:359 - Received Unauthorized status response code (401) for device: DialPreferenceDevice[deviceName=SEP649EF3C204EE,deviceModel=585,ipAddress=10.194.154.231,audioListening=false,responseStatus=ResponseStatus]