Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cisco ip phone serivices Authentication URL response
Forum Updated to NodeBB v4.3 + New Features

Cisco ip phone serivices Authentication URL response

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xelixua
    wrote on last edited by
    #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).

    @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 Last reply
    0
    • X Offline
      X Offline
      xelixua
      wrote on last edited by
      #2

      Solved that.
      The problem was the "Secure Authentication URL" field was set along with "Authentication url". And what I thought to be GET from phone was "Client hello"...
      Cleared "Secure Authentication URL" in CUCM and it works now

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved