Guardian Telecom Inc.
Setup & Configuration
VoIP Telephones
Page 37
8. Discovery Process
Apart from the main application, the device runs a process in the background that listens to discovery requests and can make
changes to the network settings when requested by the client application.
8.1. Accessing webpage functionality without a browser
In addition to the web pages hosted by the internal web server, there is a headless HTML command interface. This
command.cgi interface is meant to be used via scripting and can do things like trigger the relay, reboot the board, or start
and stop calls.
The examples below use the free unix utility wget but any program that can send authenticated http POST commands
should work.
Device Action
HTTP Post Command
a
To trigger the relay (for the
configured delay)
wget --user admin --password admin --post-data "test_relay=yes"
"http://10.0.3.78/cgi-bin/command.cgi" > /dev/null
To cause the Device to place a
call to extension 130
wget --user admin --password admin --post-data "call=130" "http://
10.0.3.78/cgi-bin/command.cgi" > /dev/null
To terminate an active call
wget --user admin --password admin --post-data "terminate=yes"
"http://10.0.3.78/cgi-bin/command.cgi" > /dev/null
To force the Device to reboot
wget --user admin --password admin --post-data "reboot=yes" "http://
10.0.3.78/cgi-bin/command.cgi" > /dev/null
To play the test audio file
wget --user admin --password admin --post-data "test_audio=yes"
"http://10.0.3.78/cgi-bin/command.cgi" > /dev/null
To cause the Device to speak
it’s IP address
wget --user admin --password admin --post-data "speak_ip_address=yes"
"http://10.0.3.78/cgi-bin/command.cgi" > /dev/null
Table 13 - Command Interface Post Commands
Type and enter all of each http POST command on one line.
8.2. RESET Switch
• The RESET switch is used to get the IP address of the device or reset to factory defaults.
• Press and release the RESET switch within a
5
second window and it will speak the IP address through the on
board speaker.
• Press and hold the RESET switch for
5
seconds and it will indicate it’s restoring defaults and rebooting the
board.
8.3. Testing the hardware
The hardware can be tested using a utility started manually in the debug console. This is called the
t test
because it is
initiated by pressing the
t
button at the console.
The
t test
will show a menu that will change when the user presses buttons or activates inputs.