How to install an XML application on a SIP IP Phone?

Version 1
    This document was generated from CDN thread

    Created by: michael plagge on 14-03-2012 12:29:45 PM
    Hello everybody,
     
    to put the pieces together, I am now looking for an example of installing an XML application (URL) on an IP Phone that runs SIP firmware.
     
    As far as I found out, these phones get their configuration during startup from a TFTP server by retrieving the XML configuration file SEP<MAC>.cnf.xml. Is there any documentation that covers the part that is responsible for defining URLs to XML applications that can be explicitely invoked by the user?
     
    Thanks a lot for the obvious pointers...
    Michael

    Subject: RE: How to install an XML application on a SIP IP Phone?
    Replied by: Breno Lucena on 14-03-2012 02:49:08 PM
    Hi Plagge,

    Are you talking about IP Phone Services?

    - If your answer is Yes, you just have to publish you application on a AppWebServer and after that you´ll need to subscribe the service to you device ou device profile.

    I really hope it helps you.

    Regards.

    Breno Lucena

    Subject: RE: How to install an XML application on a SIP IP Phone?
    Replied by: michael plagge on 14-03-2012 02:58:51 PM
    Yes, I want to deploy IP Phone Services. But my situation is that I do not connect the phones to a CUCM. I am just using a SIP configuration (for demo purposes).

    How can I subscribe to such a service? I am able to provide an application at a certain HTTP url that serves appropriate XML content, but I do not know how to "connect" / subscribe the phone to it (without the configuration options of a CUCM).

    Subject: RE: How to install an XML application on a SIP IP Phone?
    Replied by: Breno Lucena on 14-03-2012 03:22:47 PM
    Unfortunately , I don´t have this answer.

    By the way, I believe if you get the device or device profile XML you´ll be able to subscribe or unsubscribe it.

    Regards.

    Breno Lucena

    Subject: RE: How to install an XML application on a SIP IP Phone?
    Replied by: Sergei Gorbunov on 14-03-2012 11:46:45 PM
    I think there is no way to "subscribe" phone to services without CCM connect. But you can try run a service by sending <CiscoIPPhoneExecute> command to the phone via HTTP PUSH. I am not trying this myself, but may be this should work. There is one thing that may do not permit this - authentication of HTTP PUSH'es. Really, i think that is not possible to run a phone services without CCM connect.

    Subject: RE: How to install an XML application on a SIP IP Phone?
    Replied by: michael plagge on 16-03-2012 02:54:59 PM
    Finally I found the solution!

    What made it somehow tricky was my misunderstanding of the Cisco terminology: I was actually looking for services instead of applications... While I still do not know what the "Applications" menu stands for, I now know how to enable the "Services" function!

    What has to be done? It is so simple (since you know how those under-documentated thinks work ;-))

    1. In the SEP<MAC>.cnf.xml file provided by the TFTP server: Put a useful address in <servicesURL>
    2. Provide valid XML application code to the URL that <servicesURL> points to.

    Example:

     1
     2<?php
     3    header("Content-type: text/xml");
     4    header("Connection: close");
     5    header("Expires: -1");
     6?>
     7<CiscoIPPhoneIconFileMenu>
     8  <Title>PBX-In-A-Box Cisco Services</Title>
     9  <Prompt>Select Your Choice From Above</Prompt>
    10 <MenuItem>
    11    <IconIndex>0</IconIndex>
    12    <Name>About XML Services</Name>
    13  <URL>http://www.pbxinabox.com/cgi-bin/about.pl</URL>
    14  </MenuItem>
    15  <IconItem>
    16    <Index>0</Index>
    17    <URL>http://www.pbxinabox.com/aboutbox.png</URL>
    18  </IconItem>
    19<MenuItem>
    20</CiscoIPPhoneIconFileMenu>


    Wishing everybody happy XML applications development for SIP phones without the usage of CUCM!