Language files

Starting with version 10.1.41.0SIP error response phrases can be added as language phrases into Language files. The following language file is currently supported:


  1. Phone User Interface language files (<phrases> tag):

    <?xml version="1.0" encoding="utf-8"?>
     <phrases>
      <phrase i="<index>" n="<name>" t="<translation>"/>
      ...
      <phrase i="<index>" n="<name>" t="<translation>"/>
      <language i="<index>" t="<language name>"/>
     </phrases>


  2. phrase tag defines one Phone User Interface phrase
  3. language tag defines the language name

The following SIP response phrases are currently supported:


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:

  1. 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)


  2. Make sure the phone is running firmware version 10.1.41.0 or above

  3. 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

  4. 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

  5. Open gui_lang_EN.xml and scroll down towards the end of the file.
    1.  Look for line: <phrase n="lang_sip_response_code_488" t=""/>
    2. and replace it with: <phrase n="lang_sip_response_code_488" t="My Text for 488"/>

  6. Save your changes to file gui_lang_EN.xml

  7. 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)

  8. 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:

    <?xml version="1.0" encoding="utf-8" ?>
    <gui-languages>
       <language url="http://SERVER_IP/PATH/gui_lang_EN.xml" name="English" />
    </gui-languages>


  9. Create the initial provisioning file or, if you are already using provisioning, add the following to your existing initial provisioning file:

    <setting-files> 
       <file url="http://SERVER_IP/PATH/gui_lang.xml"/>
    </setting-files>
    

     Save the file. Note the name of this file, for this example we will call it settings.xml


  10. Check your files on the web server. You should have at least 3 files now:
    1. initial provisioning file settings.xml (which contains link to intermediary language file)
    2. intermediary language file gui_lang.xml (which contains link to final language file)
    3. final language file gui_lang_EN.xml, where you have done the actual change to the language phrase

  11. On the phone, under Advanced → Update → Setting URL, enter the link to the initial provisioning file (example:  http://SERVER_IP/PATH/settings.xml)

  12. Save and reboot the phone

  13. 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):