Content
Language files
Starting with version 10.1.41.0, SIP error response phrases can be added as language phrases into Language files. The following language file is currently supported:
Phone User Interface language files (<phrases> tag):
- phrase tag defines one Phone User Interface phrase
- "i string" represents the running <index> of the phrases
- "n string" represents the internally used (english) variable <name> used for the translation
- "t string" represents the <translation>
- language tag defines the language name
- "i string" represents the <index> of the language name, usually equal 0
- "t string" represents the <language name>, should match the name string used in (<gui-languages> tag)
The following SIP response phrases are currently supported:
I. e.: <phrase n="lang_sip_response_code_400" t="Bad Request"/>
Example steps
For this example we would like to change the text for SIP error reply 488, from standard text "Not Acceptable Here" to "My Text for 488". Here are the steps to achieve this:
- You need a working web server. If you don't already have one, install a TFTP or HTTP server.
If you don't know which TFTP/HTTP server software to take, some ideas: Apache/XAMPP, Lighttpd, SPLiT (https://github.com/pbertera/SPLiT/releases) - Make sure the phone is running firmware version 10.1.41.0 or above
- Download the customization file that matches your firmware version and phone, from the Download center which can be found here: Deskphones Firmware
For this example we used Snom D385 with 10.1.41.0, so we need customization file snomD385-10.1.41.0-customizing.tar.gz - Extract the customization file and look for the GUI language file matching your language in the "snomlang" directory. For this example we used English, so we need file gui_lang_EN.xml
- Open gui_lang_EN.xml and scroll down towards the end of the file.
- Â Look for line: <phrase n="lang_sip_response_code_488" t=""/>
- and replace it with: <phrase n="lang_sip_response_code_488" t="My Text for 488"/>
- Save your changes to file gui_lang_EN.xml
On your TFTP/HTTP server, under PATH, place your customized file gui_lang_EN.xml and make sure it is reachable under this path (http://SERVER_IP/PATH/gui_lang_EN.xml)
Create intermediary language file gui_lang.xml, which is the container file for the language file/s. This file must look as below, make sure you replace the URL path inside this file with your own HTTP/TFTP link:
Create the initial provisioning file or, if you are already using provisioning, add the following to your existing initial provisioning file:
 Save the file. Note the name of this file, for this example we will call it settings.xml
- Check your files on the web server. You should have at least 3 files now:
- initial provisioning file settings.xml (which contains link to intermediary language file)
- intermediary language file gui_lang.xml (which contains link to final language file)
- final language file gui_lang_EN.xml, where you have done the actual change to the language phrase
- On the phone, under Advanced → Update → Setting URL, enter the link to the initial provisioning file (example: http://SERVER_IP/PATH/settings.xml)
- Save and reboot the phone
- After the reboot, if you make an outgoing call and receive SIP Error message 488, the phone will show the custom text (Note: 34015 is the called number, it will appear after the custom text):
Further Information
Related articles