Content
The Snom phones have a built-in minibrowser template that can be used for simple minibrowser tasks such as displaying a custom text on the phone screen (templates.xml). There is a URL that can be used to call the template file in order to trigger the display of custom text on the phone screen.
file:///xml/gui/templates.xml#sub=*[@id="text_template"]&<parameters>
Another option would be to use an HTTP request, however this is usually not needed: http(s)://<PHONE_IP>/xml/gui/templates.xml#sub=*[@id="text_template"]&<parameters>
For basic usage, the required parameters are: text_content (the page content) and text_title (the page title). See the example below on how to use them.
We can use this for example for disabling the Transfer button. The goal would be: instead of transferring the call, display "This action is not allowed" when the user presses the Transfer button. To do this, we will re-program the button dkey_transfer to call templates.xml with parameters:
Here are the steps:
Provision the dkey_transfer to call: file:///xml/gui/templates.xml#sub=*[@id="text_template"]&var:text_content=This%20action%20is%20not%20allowed&var:text_title=Not%20Allowed
You can do this:
by adding the following line to your provisioning file:
<dkey_transfer perm="RW">url file:///xml/gui/templates.xml#sub=*[@id="text_template"]&var:text_content=This%20action%20is%20not%20allowed&var:text_title=Not%20Allowed>
Or alternatively you can also change this setting by using HTTP request
http(s)://<Phone_IP>/settings.htm?settings=save&dkey_transfer=url%20file:///xml/gui/templates.xml%23sub=*[@id=%22text_template%22]%26var:text_title=Not%2520Allowed%26var:text_content=This%2520action%2520is%2520not%2520allowed
Note that in the above HTTP request we had to do some extra encoding: replaced empty space with %20, replaced # with %23, replaced " with %22, replaced & with %26, rplaced % with %25 . Since this HTTP request is quite complex and error prone, option a. is recommended.
Goal: when SIP registration fails, display message "Please contact the IT Department, Room 123 Second Floor"
Further Information
Related articles