Tim Posted May 27, 2008 Report Share Posted May 27, 2008 We are using the PnP provisioning where possible for our clients. We have run into one problem so far with this. How can you configure parameters such as auto_dial through the PnP provisioning system? Normally I would use a Perl script to accomplish this through the web interface of the phones, but with the interfaces password protected, it is difficult to do this in any automated way. Tim Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted May 27, 2008 Report Share Posted May 27, 2008 We are using the PnP provisioning where possible for our clients. We have run into one problem so far with this. How can you configure parameters such as auto_dial through the PnP provisioning system? Normally I would use a Perl script to accomplish this through the web interface of the phones, but with the interfaces password protected, it is difficult to do this in any automated way. Well, in those cases you should look into the generated directory and pull out the files that you want to modify and move them into the tftp directory. Then you can edit them there and add or change parameters. Quote Link to comment Share on other sites More sharing options...
Valerio Posted June 12, 2008 Report Share Posted June 12, 2008 Hi I have the same problem, I need to provide the parameters shown in the picture. I have tried addind then in the PnP section as shown in the picture but it does not work. I have tried creating a snom_3xx_phone.xml file and putting it in the TFTP directory and it does not work. I have tried creating a snom_3xx_phone.xml file and putting it in the HTML directory and the phone gets only the parameters in the file but not all the user info it normally gets during provisioning. What I am doing wrong ???? thanks, Valerio Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted June 13, 2008 Report Share Posted June 13, 2008 We are using the PnP provisioning where possible for our clients. We have run into one problem so far with this. How can you configure parameters such as auto_dial through the PnP provisioning system? Normally I would use a Perl script to accomplish this through the web interface of the phones, but with the interfaces password protected, it is difficult to do this in any automated way. Well, you can't do that through the web interface. But you can take the files out of the "generated/{MAC}" directory and put them into the "tftp" directory and edit them there. Quote Link to comment Share on other sites More sharing options...
Valerio Posted June 13, 2008 Report Share Posted June 13, 2008 so if I understand well I have to create a {MAC} directory under tftp for evey phone end edit each snom_3xx_phone.xml inside each directory individually ? Quote Link to comment Share on other sites More sharing options...
Valerio Posted June 13, 2008 Report Share Posted June 13, 2008 I have tried coping the {MAC} directory under tftp and under http but it does not work!!!! looking at the phone log I can see that it tries to load a file -{MAC}.xml that according to the order in which it is loaded should contain the custom settings....but the phone gets a http error 302 I have tried creating such file under tftp and http in the main folders and under the {MAC} folders but the phone never find it !!!! How can I pass custom settings to the phones ?????? please help !!!!! 6]24/12/2001 00:00:08: I take GUI language English from: /mnt/snomlang/gui_lang_EN.xml [6]24/12/2001 00:00:09: I take WEB language English from: /mnt/snomlang/web_lang_EN.xml [5]24/12/2001 00:00:09: read_xml_settings: found dial-plan XML header [9]24/12/2001 00:00:17: initiate_pnp_settings[8]24/12/2001 00:00:17: Random Seed: 1925290349 [8]24/12/2001 00:00:17: Connect host: 127.0.0.1 [5]24/12/2001 00:00:17: Fetching URL: https://192.168.230.3:443/provisioning/snom...00413292D3C.htm [8]24/12/2001 00:00:17: route_pending_packet 1000000: entry=url udp 192.168.230.3:5060 [8]24/12/2001 00:00:17: route_pending_packet 1000000: entry=udp 192.168.230.3 5060 [8]24/12/2001 00:00:17: Send Packet 200 [7]24/12/2001 00:00:18: Conf setup: finished false: code: 200, host: 192.168.230.3:443, file: /provisioning/snom360-000413292D3C.htm [5]24/12/2001 00:00:18: read_xml_settings: found setting-files XML header [5]24/12/2001 00:00:18: read_xml_settings: added URL: https://192.168.230.3:443/provisioning/snom...l?model=snom360 [5]24/12/2001 00:00:18: read_xml_settings: added URL: https://192.168.230.3:443/provisioning/-000413292D3C.xml [5]24/12/2001 00:00:18: read_xml_settings: added URL: https://192.168.230.3:443/provisioning/snom...00413292D3C.xml [5]24/12/2001 00:00:18: read_xml_settings: added URL: http://192.168.230.3:80/provisioning/snom_web_lang.xml [5]24/12/2001 00:00:18: read_xml_settings: added URL: http://192.168.230.3:80/provisioning/snom_gui_lang.xml [5]24/12/2001 00:00:18: Conf setup: found xml style settings [5]24/12/2001 00:00:18: Fetching URL: https://192.168.230.3:443/provisioning/snom...l?model=snom360 [7]24/12/2001 00:00:18: Conf setup: finished false: code: 200, host: 192.168.230.3:443, file: /provisioning/snom_3xx_phone-000413292D3C.xml?model=snom360 [5]24/12/2001 00:00:18: read_xml_settings: found phone-settings XML header [5]24/12/2001 00:00:18: Conf setup: found xml style settings [5]24/12/2001 00:00:18: Fetching URL: https://192.168.230.3:443/provisioning/-000413292D3C.xml [7]24/12/2001 00:00:19: Conf setup: finished false: code: 302, host: 192.168.230.3:443, file: /provisioning/-000413292D3C.xml ^^^^ [5]24/12/2001 00:00:19: Fetching URL: https://192.168.230.3:443/provisioning/snom...00413292D3C.xml [7]24/12/2001 00:00:19: Conf setup: finished false: code: 200, host: 192.168.230.3:443, file: /provisioning/snom_3xx_fkeys-000413292D3C.xml [5]24/12/2001 00:00:19: read_xml_settings: found function-keys XML header [5]24/12/2001 00:00:19: Conf setup: found xml style settings [5]24/12/2001 00:00:19: Fetching URL: http://192.168.230.3:80/provisioning/snom_web_lang.xml [7]24/12/2001 00:00:19: Conf setup: finished false: code: 200, host: 192.168.230.3:80, file: /provisioning/snom_web_lang.xml [5]24/12/2001 00:00:19: read_xml_settings: found web-languages XML header [5]24/12/2001 00:00:19: Conf setup: found xml style settings [5]24/12/2001 00:00:19: Fetching URL: http://192.168.230.3:80/provisioning/snom_gui_lang.xml [7]24/12/2001 00:00:19: Conf setup: finished false: code: 200, host: 192.168.230.3:80, file: /provisioning/snom_gui_lang.xml [5]24/12/2001 00:00:19: read_xml_settings: found gui-languages XML header [5]24/12/2001 00:00:19: Conf setup: found xml style settings [5]24/12/2001 00:00:19: Fetching URL: http://127.0.0.1/dummy.htm [7]24/12/2001 00:00:19: Conf setup: all setting urls attempted [7]24/12/2001 00:00:19: Conf setup: finished false: code: 500, host: 127.0.0.1:80, file: /dummy.htm [7]24/12/2001 00:00:19: Conf setup: finished true Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted June 13, 2008 Report Share Posted June 13, 2008 I have tried coping the {MAC} directory under tftp and under http but it does not work!!!! Copy a file from generated/{MAC}/file to tftp/file. The {MAC} should go away, so that the file is directly in the tftp directory. Quote Link to comment Share on other sites More sharing options...
Valerio Posted June 15, 2008 Report Share Posted June 15, 2008 That still does not work, have copied the file "snom_3xx_phone.xml" from one of the MAC directory and copied it to TFTP. I have removed all the extension specific info and the file only contains <?xml version="1.0" encoding="utf-8"?> <phone-settings> <utc_offset perm="RW">3600</utc_offset> <timezone perm="RW">ITA+1</timezone> <user_server_type idx="1" perm="RW">pbxnsip</user_server_type> <dst perm="RW">3600 3.5.7 2:0:0 10.5.7 2:0:0</dst> <with_flash perm="RW">off</with_flash> <language perm="RW">Italiano</language> <web_language perm="RW">Italiano</web_language> <tone_scheme perm="RW">Italia</tone_scheme> <time_24_format perm="RW">on</time_24_format> <date_us_format perm="RW">off</date_us_format> <codec_tos perm="RW">184</codec_tos> </phone-settings> I have reset one of the phone to factory default, rebooted and the custom settings are not applied it gets the standard provisionig as per the log file I included in previous post!!!! Phone firmware is 7.1.30 and pbxnsip is 2.1.10.2474. Please help. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted June 16, 2008 Report Share Posted June 16, 2008 Well, that does not help because the file has no reference to the MAC. Better do the following: Put the following file into the html directory and name it "snom_3xx.xml": <?xml version="1.0" encoding="utf-8"?> <setting-files> <file url="{https-url}/snom_3xx_phone-{mac}.xml?model={attribute model}" /> <file url="{https-url}/snom_3xx_fkeys-{mac}.xml" /> <file url="{http-url}/snom_general.xml" /> <file url="{http-url snom}/web_lang.xml" /> <file url="{http-url snom}/gui_lang.xml" /> </setting-files> Then you can put another file into the html directory and call it "snom_general.xml", where you can put whatever you want to put in all of the 320/360/370 phones. Quote Link to comment Share on other sites More sharing options...
mabbott Posted September 22, 2008 Report Share Posted September 22, 2008 I am trying to provision some additional settings using this method, but when the phone requests the xml file, it gets redirected to the login page. Is there a way to get around this redirection? I am using 3.0.0.2998 Better do the following: Put the following file into the html directory and name it "snom_3xx.xml": <?xml version="1.0" encoding="utf-8"?> <setting-files> <file url="{https-url}/snom_3xx_phone-{mac}.xml?model={attribute model}" /> <file url="{https-url}/snom_3xx_fkeys-{mac}.xml" /> <file url="{http-url}/snom_general.xml" /> <file url="{http-url snom}/web_lang.xml" /> <file url="{http-url snom}/gui_lang.xml" /> </setting-files> Then you can put another file into the html directory and call it "snom_general.xml", where you can put whatever you want to put in all of the 320/360/370 phones. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted September 22, 2008 Report Share Posted September 22, 2008 I am trying to provision some additional settings using this method, but when the phone requests the xml file, it gets redirected to the login page. Is there a way to get around this redirection? I am using 3.0.0.2998 The entry in pnp.xml was missing. Take the attached one or wait for the next release. pnp.xml Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.