Action URI allows Sangoma phones to interact with web server application by receiving and handling an HTTP GET request. When receiving a GET request, the Sangoma Phone will perform the specified action and respond with a 200 OK message. If you want to dial a number you can use the format of:
Replace 4003 with your phone number you want to call.
A GET request may contain variable named as "key" and key value separated by "=". If you want to send a specific key press to the phone, use a URL of the format:
where the key value is taken from the following table (key values are case sensitive):
|key Value||Sangoma Phone Action|
Press the OK key.
Press the Enter soft key
Press the Speaker key.
Press the TRANSFER key or the Transfer soft key
Increase the volume.
Decrease the volume.
Press the MUTE key
Press the HOLD key or the Hold soft key.
Press the X key.
Return to a previous screen or cancel a call
Send the DTMF digit (0-9, * or #).
Press the line key
|Press a DSS Key|
Press the Conference soft key.
Press the soft key.
Press the MESSAGE key.
Press the HEADSET key.
Press the REDIALkey.
Press the Navigation keys.
Reboot the phone.
Perform Auto Provisioning
Activate the DND mode.
Deactivate the DND mode.
Assume you have a phone at IP address 192.168.0.123, with default credentials of admin/222222. From a browser, you can trigger the phone to dial a *43 echo test:
To toggle the speaker button on the phone (same key toggles on or off):
To manually toggle the speaker on, dial the *43 echo test, and then hang up, the load the following URLs in series:
Simple PHP code example: