cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
395
Views
0
Helpful
1
Replies

Qt: Cisco ip phone serivices Authentication URL response

Erikssonua
Level 1
Level 1

Hello

I wrote a program with Qt to work with cisco ip phone services. I'm using QNetworkAccessManager to post XML objects to phones and QTcpServer's socket with QTextStream to respond to authentication requests (simply writing http headers with "AUTHORIZED" to text stream). The code:

QString cTime = currTime.currentDateTimeUtc().toString("ddd, dd MMM yyyy hh:mm:ss");

QTextStream os(socket); os << "HTTP/1.1 200 OK\r\n"

"Content-Type: text/plain\r\n"

"Date: " + cTime + " GMT\r\n"

"Connection: close\r\n"

"\r\n"

"AUTHORIZED";

The problem is the phones don't accept that response and return <CiscoIPPhoneError Number="4" />.

I used node.js for that before and simply wrote "AUTHORIZED" to http.serverResponse object, but I'm confused now why it doesn't work with Qt

_

1 Reply 1

Geevarghese Cheria
Cisco Employee
Cisco Employee

Hi Maksimenko,

Hope you have resolved the issue by Clearing "Secure Authentication URL" in CUCM. Thanks for the info which could be useful for someone with similar issue.

Reference -

https://supportforums.cisco.com/discussion/12234441/qt-cisco-ip-phone-serivices-authentication-url-response

Thanks and Regards,
Geevarghese