Cisco IP Phone App Primer

Cisco IP phones have the ability to access XML based apps, these tend to be used for fairly generic things such as providing weather details. The content is delivered via HTTP, the URL to the services is provided in the phone configuration file, using the <servicesURL> element, for example:


The index file served, needs to specify XML as the content-type, here is a sample using PHP.

    Header("Content-type: text/xml");

  <Title>Cisco XML Services Apps</Title>
  <Prompt>Select a menu item</Prompt>
   <Name>Phone IP Address</Name>

At this point the user can select the Phone IP Address menu item, which will load the ip.php file. Here is some more sample code, this will return the IP address of the phone making the query.

    Header("Content-type: text/xml");

  <Title>IP address details</Title>
  <Prompt>The prompt text goes here</Prompt>
    $ip = $_SERVER['REMOTE_ADDR'];
    echo "IP: " . $ip;

To set the phone to auto-refresh the page, a Refresh header can be added. The refresh value specified should be in seconds.

    Header("Content-type: text/xml");
    Header("Refresh: 10");

The development guide can be found here.

If you enjoyed this post consider sharing it on , , , or , and .