CGI/Execute - CiscoIPPhoneError Number ="0"

Version 1
    This document was generated from CDN thread

    Created by: Laurent TRELET on 19-03-2009 04:22:35 PM
    Hello,
     
    I am developping a little application (c#) in order to execute PUSH XML. The objective is to display a simple texte message on a phone. I send a HTTP POST request on the URL :  http://ipPhone/CGI/Execute  .  (CUCM 6.1 | firm 8-4-2 on 7961).
    I am coding with c# and i draw my inspiration from this page : http://blog.crowe.co.nz/archive/2008/10.aspx  to build my request. I tried a lot of different requests format according to the cisco Documentation but I have one problem.
     
    I am surprised because, the IpPhone response after my request is the folowing :
    <CiscoIPPhoneError Number="0" />
     
    In the doc, i can read help and description for error code 1, 2, 3 or 4 but not 0.
     
    When I changed my credentials, I have an Error 4, and I understand. When I send the right credentials, The error is again "0". So i don't think it is an auth error.
     
    Does anybody can help me with this error code ? Do you have examples of code doing PUSH XML on a IpPhone ?
    I can share my code if you want.
     
    thank you in advance.
     
    Regards.
     
     

    Subject: RE: CGI/Execute - CiscoIPPhoneError Number ="0"
    Replied by: Laurent TRELET on 19-03-2009 05:45:28 PM
    Erratum, sorry, I've just fixed my issue.
    The problem was in my code. Don't send the request at http://ipPhone/CGI/Execute/ but at http://ipPhone/CGI/Execute  (case sensitive...).
     
    Regards.

    Subject: RE: CGI/Execute - CiscoIPPhoneError Number ="0"
    Replied by: Tony Tjo on 24-03-2009 12:20:25 PM
    Hi Laurent,
     
    I don't know the difference of the 2 links.
     
     
    http://ipPhone/CGI/Execute/ but at http://ipPhone/CGI/Execute 
     
     
    The last "/" character?
     
    Tony

    Subject: RE: CGI/Execute - CiscoIPPhoneError Number ="0"
    Replied by: Stephan Steiner on 25-03-2009 11:03:09 AM
    The last character makes a world of a difference.
     
    Posting to http://ip/CGI/Execute means you post to the "application" named Execute in http://ip/CGI/
     
    whereas posting to http://ip/CGI/Execute/ means you post to the default handler for the path http://ip/CGI/Execute/

    Subject: RE: CGI/Execute - CiscoIPPhoneError Number ="0"
    Replied by: Ananthakumar k on 29-10-2009 09:50:59 AM
    I am also getting simi;ar error. I have put the correct URL http://IPaddress/CGI/Execute
    My authentication is correct.  I am using  Cisco 7940 G phone, Using .Net application to push a XML message.
    Can any one of you help please.

    Subject: RE: CGI/Execute - CiscoIPPhoneError Number ="0"
    Replied by: David Staudt on 29-10-2009 12:58:19 PM
    Error 0 can occur if the phone's configured authentication URL is not reachable (from the phone.)  Commonly this can happen if the authentication URL (see CCMAdmin enterprise service parameters) includes a hostname for the UCM instead of an IP address.
     
    Of inestimable help in debugging IP Phone Services is looking at the HTTP traffic to/from the phone.  I recommend using Wireshark for this - load it on a PC connected to the phone's extra switch port and get a raw packet capture (you can filter by HTTP).  If you need help interpreting the capture, you can attach here.