📜 ⬆️ ⬇️

Creating custom IP auto-configuration patterns for 3CX V15 phones

In this article we will look at a very useful technology - custom IP phone templates 3CX. The 3CX autotuning templates allow you to automatically and consistently configure a large fleet of IP phones in your organization. However, 3CX comes with ready-made templates customized by 3CX developers to suit most consumers. If your organization has any special requirements for the configuration of IP phones, for example, its own “layout” of programmable buttons under the phone’s display, configuration of ringing tones, specific SIP parameters, etc. - modify the stock template to suit your needs. How to do this is described below.

Beginning of work


First of all, make a copy of the stock template 3CX. And continue to work with a copy.



  1. In the 3CX control interface, go to Settings - Templates .
  2. In the drop-down list, select the stock template for auto-configuring the IP phone to be changed (1)
  3. Make sure that the phone model for which the user pattern will be created (2) is indicated inside the template file.
  4. At the top, click the Copy button (3), enter a new template name, and click OK . This name will be attached to the name of the stock template. You will see the full name of the custom template in the drop-down list, as shown below.


Alteration


Please note that in order to apply changes to the template, you need to restart the Management Console Service (MC01) . This is caused by the loss of connections in MyPhone / Web Client clients, which are responsible for the status and indication of user presence. Therefore, it is recommended to debug the templates on the 3CX test system and the test group of IP phones - not in the working environment.
')
The parameters transmitted to the phone begin with this line in the <![CDATA[

All parameters specified above this line are necessary for the operation of the 3CX control interface, and they should not be changed. An error in these lines may result in the user template not being visible in the drop-down list in the 3CX control interface. The parameters for the extension in the interface will also be unavailable. In this case, you will need to restore the last working copy of the contents of the template file or completely remove this extension number (user).

General recommendations



Validation of changes


There are several ways to make sure that the changes you make will be correctly processed by the IP phone.



If the IP phone is currently connected to 3CX, select it in the interface (section Phones ) and click the + Config button. This forces the configuration specified in the pattern to the phone.



You can also go to the Provisioning tab and copy the autotune URL. Instead of {mac}, specify the MAC address of the IP phone. For example, a URL might be http://mypbx.3cx.eu/provisioning/ads234cfsda/cfg123456787890 . Paste it into any browser, and you will receive a ready-made XML configuration file for a specific IP phone. Some browsers immediately display the contents of the file, if it has the correct XML format. To see the content in text form, right-click and select Show Source .

Apply custom pattern to IP phone


Application to an unconfigured or reset IP phone


  1. In the 3CX interface, go to the Phones section.
  2. Highlight the new phone you want to configure.
  3. Select Add / Assign Ext , depending on what you need.
  4. In the Phone Provisioning tab, copy the phone's MAC address.
  5. In the same tab, in the drop-down list of your phones, delete the attached phone by clicking the Delete button on the right.
  6. At the top, click the Add button.
  7. In the drop-down list, select your custom template.
  8. Paste the previously copied MAC address of the phone.
  9. Click OK twice to save the user settings.
  10. Go to the Phones section, select the phone and click Reprovisioning .

Application to configured and connected IP phone


  1. In the 3CX management interface, go to the Extensions section, click on the number (user) for which you want to apply the template, and go to the Phone Provisioning tab.
  2. In the drop-down list with your phones, select the IP phone to which you want to apply a custom template.
  3. Copy the MAC address of the phone.
  4. Delete the attached phone by clicking the Delete button on the right.
  5. At the top, click the Add button.
  6. In the drop-down list, select your custom template.
  7. Paste the previously copied MAC address of the phone.
  8. Click OK twice to save the user settings.
  9. Go to the Phones section, select the phone and click Reprovisioning .

Pattern Features


Depending on the changes made to the templates, you may need to completely reset the IP phone before auto-tuning the user template.

Yealink Custom Templates


Unlike other manufacturers, Yealink for autotuning uses 2 configuration files. Because of this, the template has two sections <! [CDATA [, which generate two autotune files for each phone.


In order for the custom Yealink template to work correctly, you must manually edit the template before applying the template:





y file.png

Universal Templates


It is strongly not recommended to explicitly specify in the template such parameters as port numbers, IP address or FQDN of the 3CX server, user credentials, etc. If the template does not contain such hard-coded information, it can be called universal (portable). It can be transferred to another installation of the 3CX system. This is very useful for integrators who modify patterns to solve specific user tasks. Universal templates should be placed in the folder
  C: \ ProgramData \ 3CX \ Instance1 \ Data \ Http \ Interface \ provisioning \ XXXXXXXXXX \ CustomTemplates \ phones 

When updating the system, files in this directory are saved (backed up and then restored). Do not use the file name of the custom template matching the name of the stock template . Stock templates are overwritten with every 3CX update. Thus, your custom templates will be overwritten without warning.

If the CustomTemplate \ phones path is missing, create these folders (case sensitive) and restart the MC01 service.

3CX custom template support


3CX supplies stock templates for all supported IP phones, as well as for some legacy IP phones. Patterns for outdated phones allow them to be automatically correctly configured and provide many of the latest features of 3CX. However, modifying stock templates deprives you of official 3CX support, as described here . If you have problems with a specific IP phone, before opening the application, you should reset it to the default settings and configure the stock template. After this, repeat the actions that caused the problem, and only after that open the application in 3CX technical support.

In other words, 3CX does not provide any additional support for custom templates, with the exception of this manual. In addition, if you have created a custom template, you must constantly monitor updates to the corresponding stock template. Since the stock patterns correspond to the IP phones' firmware, an outdated user pattern may cause the IP phone to work incorrectly with the updated firmware.

Source: https://habr.com/ru/post/328070/


All Articles