Aastra Telecom C53I User Guide

Page of 602
How to Create an XML Application
G-36
41-001160-00, Rev 01  Release 2.0  
IP Phone Administrator Guide
Appendix G
AastraIPPhoneTextMenu (Icon Menu)
The AastraIPPhoneTextMenu (Icon Menu) object is identical to the 
 described on 
, except a small icon image appears 
after the menu number and before the text item. The Text Menu object allows 
application developers to create a numerical list of menu items on the IP phones. 
The AastraIPPhoneTextMenu (Icon Menu) object allows users to navigate the 
application, by linking HTTP requests and icons to menu items.
XML Example:
The XML script for the AastraIPPhoneTextMenu (Icon Menu) object is as 
follows:
<AastraIPPhoneTextMenu>
  <Title> Icon Menu </Title>
  <MenuItem base = http://someserver/,
            icon="1">
    <Prompt> Voicemail </Prompt>
    <URI>scripts/voicemail.php</URI>
  </MenuItem>
  <MenuItem icon="2">
    <Prompt> Horoscope</Prompt>
    <URI> scripts/horoscope.php </URI>
  </MenuItem>
  <IconList>
    <Icon index = "1"> Icon:Envelope </Icon>
    <Icon index = "2"> FFFF0000FFFF0000 </Icon>
  </IconList>
</AastraIPPhoneTextScreen>
The “icon=1” attribute in the above example tells the phone to display the icon 
specified in the IconList called “<Icon index = “1”> Icon:Envelope </Icon>”. 
For more information about the “IconList”, see 
 on 
.