IP Phone Administrator Guide How to Create an XML Application

Appendix G

CancelAction Attribute (configurable via XML objects only)

The XML “cancelAction” attribute allows you to specify a URI that a GET is executed on when the user presses the default CANCEL key.

Note: The URI must be fully qualified.

You can add this optional feature at the end of any of the XML objects. The format is:

<Hardkey action="Cancel"> <Label>Label to Display</Label> <URI>URI to Get</Label>

</Hardkey>

XML Example:

The following illustrates the AastraIPPhoneTextScreen object using the “Cancel” attribute:

<AastraIPPhoneTextScreen cancelAction=”http://10.50.10.117/ ft.xml”>

<Title>Test</Title>

<Text>This is a test of the cancel action</Text> </AastraIPPhoneTextScreen>

When this XML script is sent to the phone, and the user presses the default CANCEL key, the script executes a GET on http://10.50.10.117/ft.xml.

Note: If the “cancelAction” attribute was not used in the above script, then pressing the CANCEL key would simply cancel the current screen.

G-44

41-001160-00, Rev 01 Release 2.0

Page 584
Image 584
Aastra Telecom 57I C53I manual CancelAction Attribute configurable via XML objects only