Send Message to Cisco IP phone (7960)

Version 1
    This document was generated from CDN thread

    Created by: Rashmi Shamsundar on 26-10-2010 06:35:06 AM
    Hi All,
     
     
               Cn anyone tell me how to send text message to a Cisco phone. I have the below code. I send it to my Call manager server but the response i get is blank.
     
             // Form the http header
            String sAXLSOAPRequest = "POST " + LINK + " HTTP/1.0 \r\n";
            sAXLSOAPRequest += "Content-type: " + CONTENT_TYPE + " \r\n";
            sAXLSOAPRequest += "Authorization: Basic " + getAuthorization() + "\r\n";
            sAXLSOAPRequest += "UserAgent: POST-Test \r\n";
            sAXLSOAPRequest += "Content-length: "+getMessageCommand().length();
     
           // message string
           String sMessageRequest = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?> \r\n";
            sMessageRequest += "<CiscoIPPhoneText>";
            sMessageRequest += "<Title>Test Message</Title>";
            sMessageRequest += "<Prompt>Received?</Prompt>";
            sMessageRequest += "<Text>Message Text</Text>";
           
            sMessageRequest += "<SoftKeyItem>";
            sMessageRequest += "<Name>Accept</Name>";
            sMessageRequest += "<URL>Dial:SEP001795347402</URL>";
            sMessageRequest += "<SoftKeyItem>";
            sMessageRequest += "</CiscoIPPhoneText>";

            return sMessageRequest;
     
     I ma not able to identify the problem here.

    Subject: Re: New Message from Rashmi Shamsundar in Administration XML (AXL) - Admini
    Replied by: Johannes Krohn on 26-10-2010 07:37:49 AM
    Hi,

    pls. check the IPPS Application Development Notes relevant for your release
    (http://developer.cisco.com/web/ipps/docs). There you will find a detailed
    description of the concept of IP Phone services. An important aspect
    specific to your question is that the phone(!) acts as a stateless web
    server and will interpret the IPPS XML objects. Basically the phone will
    either access a phone service (HTTP GET) or you POST some content to the
    phone(!) web server. It´s not CUCM interpreting the IPPS XML objects.

    Regards,
        Hannes

    Subject: Re: New Message from Rashmi Shamsundar in Administration XML (AXL) - Admini
    Replied by: Johannes Krohn on 27-10-2010 06:41:11 AM
    Hi,

    username and password provided in the Authorization header of the request
    are validated using the Authentication URL defined in Communications Manager
    Admin. By default this URL point to the Communications Manager Server where
    the default validation process checks whether the phone has been associated
    with the user provided and the password is validated against the user´s
    password. The user can be an end user or an application user.

    This is what you need to do:
    * create Application user ³dummy² and assign password ³xyz²
    * associate the phone with that user
    * use user ³dummy² and password ³xyz² to authenticate your request

    Keep in mind that there is a limit of 2500 phones that can be associated
    with a single user. If you need to exceed this limit you can offload the
    authentication from Communications Manager by configuring a custom
    Authentication URL in Communications Manager Administration. This URL can
    then point to a web server, where you implement your custom authentication
    process; e.g. check for a fixed username/password combination and point back
    to the standard authentication URL for usernames not matching the usernames
    to be handled by the custom authentication process.

    Regards,
        Hannes

    Subject: RE: Re: New Message from Rashmi Shamsundar in Administration XML (AXL) - Ad
    Replied by: Rashmi Shamsundar on 27-10-2010 01:33:45 AM
    Hi,

    pls. check the IPPS Application Development Notes relevant for your release
    (http://developer.cisco.com/web/ipps/docs). There you will find a detailed
    description of the concept of IP Phone services. An important aspect
    specific to your question is that the phone(!) acts as a stateless web
    server and will interpret the IPPS XML objects. Basically the phone will
    either access a phone service (HTTP GET) or you POST some content to the
    phone(!) web server. It´s not CUCM interpreting the IPPS XML objects.

    Regards,
        Hannes

     
     
     
    Thanks Hannes,
     
                 Now I am able to access the phone via a Http request. But when I try to send a message using the xml format, I get back an error saying Unauthorized. I know the password is "cisco" by default. But I am not able to find out the username. Without this authentication I am not able to send the message to the CIsco IP Phone. I use the default username "admin" but it still doesnt work. Is there a way i can verify the username and password.
     
    Thanks!