Monday, April 20, 2009

Cisco CiscoIPPhoneDirectory with Next key

The Cisco CiscoIPPhoneDirectory service only supports 32 entries. Below is a simple example of implementing a "Next" softkey to access a second list without requiring a "Refresh" header. The second list of numbers would be served by http://yourwebserver/SecondCiscoIPPhoneDirectoryPage.xml in this example.

*** XML sample starts here ***

<CiscoIPPhoneDirectory>
<Title>Special Directory</Title>
<Prompt>Special Directory</Prompt>

<DirectoryEntry>
<Name>A Sample Phone Number</Name>
<Telephone>918005551212</Telephone>
</DirectoryEntry>

<DirectoryEntry>
<Name>Another Sample Phone Number</Name>
<Telephone>918885551212</Telephone>
</DirectoryEntry>

<SoftKeyItem>
<Name>Dial</Name>
<URL>SoftKey:Dial</URL>
<Position>1</Position>
</SoftKeyItem>

<SoftKeyItem>
<Name>EditDial</Name>
<URL>SoftKey:EditDial</URL>
<Position>2</Position>
</SoftKeyItem>

<SoftKeyItem>
<Name>Next Page</Name>
<URL>http://yourwebserver/SecondCiscoIPPhoneDirectoryPage.xml</URL>
<Position>3</Position>
</SoftKeyItem>

<SoftKeyItem>
<Name>Exit</Name>
<URL>SoftKey:Exit</URL>
<Position>4</Position>
</SoftKeyItem>

</CiscoIPPhoneDirectory>

*** XML sample ends here ***

4 comments:

  1. Anonymous1:11 AM

    Thank you!!! This is just what I needed! Using a Cisco SPA525G

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Anonymous11:19 AM

    Brilliant!!

    ReplyDelete
    Replies
    1. If you are implementing multiple directory pages, you may find an Exit key handy as well.

      See http://webmaxtor.blogspot.com/2009/04/cisco-ipphonedirectory-exit-softkey.html

      Delete