Jump to content

.3981 using tftp for custom phone configs breaks standard provisioning


mattlandis

Recommended Posts

#1-After we use the below steps to setup a special setting for phones, then just plugging a new phone into the system to provision it no longer works. After doing the below steps we now need to login to the new phones and type the provisioning string into the phone. Why?

 

 

Steps config snom phone with special configs:

 

1-Make an xml file with the unique settings.

1b-Example xml file contents

 

<?xml version="1.0" encoding="utf-8" ?>

<phone-settings>

<cw_dialtone perm="">off</cw_dialtone>

</phone-settings>

 

change the settings between the phone-settings section.

1c- place the file in your tftp directory: C:\Program Files\pbxnsip\PBX\tftp

2-Name it model # followed by _custom.xml. example: snom_360_custom.xml.

3-Reboot the phone you want to get these settings.

 

 

#2-Which existing XML file could we edit with this setting to avoid using the tftp method?

snom_3xx_phone.xml?

 

Add in the <phone-settings> section:

<cw_dialtone perm="">off</cw_dialtone>

 

 

#3- Is there a reason that snom _370.xml (320, 360, 370...) does have the line:

<file url="{https-url}/tftp/snom_370_custom.xml" />

 

#5-could that dialtone on hold BE TURNED OFF BY DEFAULT? is there ANYONE that wants that?

 

#4-

Link to comment
Share on other sites

Well the point is that now the PnP files can be edited directly from the web interface, there is (almost) no need any more to do this in the file system. If you look carefully, you will actually notive that the database stores not just the web page, it also stores the domain and the username. In other words, we are for far away from provisioning different file versions per domain and per user. IMHO that is worth sacrifying some backward compatibility with the custom PnP files.

Link to comment
Share on other sites

In the latest version (.3981), you can navigate to "Admin->Web Page Control->Translation" page and select the template you like. Ex: snom_370.xml file and then modify it to have the custom file. Final version will look like this.

 

<?xml version="1.0" encoding="utf-8"?>

<setting-files>

<file url="{http-url}/snom_3xx_fw.xml?model=snom370" />

<file url="{https-url}/snom_3xx_phone.xml?model=snom370" />

<file url="{https-url}/snom_3xx_fkeys.xml?model=snom370" />

<file url="{https-url}/snom_web_lang.xml?model=snom370" />

<file url="{https-url}/snom_gui_lang.xml?model=snom370" />

<file url="{https-url tftp}/snom_370_custom.xml" />

</setting-files>

 

Once you save this file, you should have the old behavior back. Of course, you have to have the snom_370_custom.xml in the tftp folder.

Link to comment
Share on other sites

Can you speak on:

 

#1-After we use the below steps to setup a special setting for phones, then just plugging a new phone into the system to provision it no longer works. After doing the below steps we now need to login to the new phones and type the provisioning string into the phone. Why?

 

This is very consistent. as soon as this is done we need to type the provisioning string into the phone, when we should be able to just plug it into the network.

 

Why?

 

 

PS-solution to our problem:

add <cw_dialtone perm="">off</cw_dialtone> in the <phone-settings> section of the snom_3xx_phone.xml file. (from the snom ONE user interface of course)

 

is there any problems down the road/other problems that will arise using this method?

Link to comment
Share on other sites

There 2 ways you can set the settings on the phone during PnP.

 

1. Modify the snom_3xx_phone.xml file, as you did, using the PBX web interface. This modified file will automatically placed under "<pbx working dir>/webpages" folder. If you reboot the phone after the change, you will see the change on the phone.

 

2. Create the snom_370_custom.xml (for snom 370 phones) with the whatever custom setting you want. Keep this file under "<pbx working dir>/tftp". Then modify the snom_370.xml to have the snom_370_custom.xml line as explained in the previous post.

 

 

Either of the 2 methods should work.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...