Guardian Telecom Inc.
Setup & Configuration
VoIP Telephones
Page 27
Table 9 - Event Configuration
Web Page Item
Description
Enable Event
Generation:
When this option is selected the device will initialize the event generation engine. This mechanism
can be used to send xml formatted http POST packets to an external server in response to triggers
in the operation of the device.
Remote Event
Server
Remote Event Server
IP:
This is the address of the remote TCP server for receiving POST events. This field can accept
addresses in dotted decimal notation or canonical names of up to 64 characters in length.
Remote Event Server
Port:
The Remote Event Server Port is used to set the port number that the remote server is listening on.
Remote Event Server
URL:
POST requests have to be sent to a target script at the given IP address. This field defaults to
‘xml_engine’ and can accept up to 127 characters.
Events
Examples
Enable Button
Events:
When this option is enabled, an event will be sent to the remote server
every time a button is pressed.
POST xmlparse_engine HTTP/1 .1
Host: 10.0.3.79
User-Agent: Guardian 1.0.0
Content-Length: 196
Content-Type: application/x-www-form-urlencoded
<7xml version=” 1.0” encoding=”lSO-8859-1 “7>
<guardian NAME=GuardianVoIP Device MAC=’0020f70015b6’>
<event,.BUTTONdevent>
</guardian>
Enable Call Active
Events:
When this option is enabled, an event will be sent to the remote server
when a call becomes active.
POST xmlparse_engine HTTP/1 .1
Host: 10.0.3.79
User-Agent: Guardian 1.0.0
Content-Length: 201
Content-Type: application/x-www-form-urlencoded
<7xml version=’l .0,’ encoding=’lSO-8859-1 ‘7>
<guardian NAME=Guardian VoIP Device MAC=’0020f70015b6’>
<event>CALL_ACTlVEdeient>
</guardian>
Enable Call
Terminated Events:
When this option is enabled, an event will be sent to the remote server when a call is terminated.
POST xmlparse_engine HTTP/1 .1
Host: 10.0.3.79
User-Agent: Guardian 1.0.0
Content-Length: 205
Content-Type: application/x-www-form-urlencoded
<7xml version=”l .0,’ encoding=”ISO-8859-1 “7>
<guardian NAME=’Guardian VoIP Device MAC=’0020f70015b6’>
<event>CALL_TERMI NATEDdevent>
</guardian>