Events> elemenet details, Event> element, Event> elemenet details – Grandstream GXP21xx XML Application Guide User Manual
Page 32

FIRMWARE VERSION 1.0.4.23 GXP21xx XML APPLICATION GUIDE Page 32 of 36
<Events> ELEMENET DETAILS
Object
Position
Type
Values
Comments
Events
Element
Optional
-
Event
Child element
Mandatory -
Defines each event
<Event> ELEMENT
In one XML document, multiple <Event> elements could be used. However, the state for each event must
be different so that the action is unique for that state.
<Event> ELEMENET DETAILS
Object
Position
Type
Values
Comments
Event
Element
Mandatory
-
state
<Event> Attribute
Mandatory
string
Please refer to "ATTRIBUTE state"
section for values and meaning
Action
Child element
Mandatory
-
action
<Action> Attribute Mandatory
string
commandArgs
<Action> Attribute Optional
string
Example:
When event "onhook" is triggered during the XML application, a HTTP request to the specified <URL> will
be sent out. Then the screen will display the XML document in that link.
<Event state="
Event state
">
<Action action="
Action name
" commandArgs="
Action argument
"></Action>
</Event>
<Events>
<Event state="onhook">
<Action action="UseURL" commandArgs="http://192.168.40.144/Survey/helpinfo.php"
</Event>
</Events>