beautypg.com

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

Page 32

background image

FIRMWARE VERSION 1.0.4.23 GXP21xx XML APPLICATION GUIDE Page 32 of 36

ELEMENET DETAILS

Object

Position

Type

Values

Comments

Events

Element

Optional

-

Event

Child element

Mandatory -

Defines each event

ELEMENT

In one XML document, multiple elements could be used. However, the state for each event must

be different so that the action is unique for that state.

ELEMENET DETAILS

Object

Position

Type

Values

Comments

Event

Element

Mandatory

-

state

Attribute

Mandatory

string

Please refer to "ATTRIBUTE state"

section for values and meaning

Action

Child element

Mandatory

-

action

Attribute Mandatory

string

commandArgs

Attribute Optional

string

Example:

When event "onhook" is triggered during the XML application, a HTTP request to the specified will

be sent out. Then the screen will display the XML document in that link.

Event state

">

Action name

" commandArgs="

Action argument

">