Jump to content

v5.1.1 snom360 MAC based PnP not working, insists on authentication


RoadRunnR

Recommended Posts

Hi,

 

Just upgraded from 4.5 free edition to a paid 5.1.1 and auto provisioning seems to broken.

 

Our test snom360 is setup with a MAC in the extension, MAC is opened for provisioning without password. DHCP server option 66 points to the IP of the PBX.

We then reset the phone to factory defaults and rebooted, expecting it *just* work, but nothing.

 

The log shows that the phone contacted the pbx:

[3] 20130915112856: Received SUBSCRIBE for plug and play. SIP multicast support is set to handle plug and play.[8] 20130915112858: HTTP: Received request for file snom360.htm from 192.168.13.72
[7] 20130915112858: No need to write snom_360.xml to file system
[8] 20130915112858: HTTP: file snom360.htm based on template snom_360.xml is sent to 192.168.13.72
[8] 20130915112859: HTTP: Received request for file snom360-000413236BA0.htm from 192.168.13.72
[7] 20130915112859: HTTP: No Auth info in the request: Challenge 192.168.13.72
So, why is it asking for authentication when the MAC is trusted?
Also, the SIP PnP request seem to broken as well, returning "noresource":
[5] 20130915113353: SIP Tr udp:192.168.13.72:2048:
NOTIFY sip:192.168.13.72:2048 SIP/2.0
Via: SIP/2.0/UDP 192.168.13.8:5060;branch=z9hG4bK-848c47228f3b1af977a6386fd6553f81;rport
From: <sip:MAC%3a000413236BA0@pbx.local>;tag=133a5c2fd5
To: <sip:MAC%3a000413236BA0@pbx.local>;tag=83548586
Call-ID: 475330253@192.168.13.72
CSeq: 568772230 NOTIFY
Max-Forwards: 70
Subscription-State: terminated;reason=noresource
Event: ua-profile
Content-Type: application/url
Content-Length: 41

Any idea what's going on?

 

Thanks

Andreas

Link to comment
Share on other sites

The "noresource" is fine; that's just the way the SIP authors wanted it (read it as "no more resource").

 

When you open the device for PnP, by default it is open only for 10 minutes. You can change that in the provisioning settings. When you go the extension account view, you should see how many minutes and seconds are left for the provisioning (P 9:45 means 9 minutes and 45 seconds left).

Link to comment
Share on other sites

Hi,

 

Hi, Andreas

 

Please check this article on provisioning 3xx phones.

 

http://wiki.snomone.com/index.php?title=Plug_and_Play_for_snom_phones#Snom_3xx_series_Provisioning.

 

I have been through this process multiple times and it just does not work. The phone will reboot, wait about 2min with a loginuser prompt, then switch to a time zone selection screen and remain there forever. Going through the timezone selection will finally drop me to "Welcome! Press a key to log on." screen.

 

Phone software is 8.4.35.

 

extract from the phone's log - it is clear that the PBX is asking for credentials, I made double sure that the extension was opened for MAC based provisioning, it still insists on user credentials:

[5] 24/12/2001 00:00:22: read_setting_file_list: added URL: https://192.168.13.8:443/prov/snom_3xx_fw-000000000000.xml?model=snom360
[5] 24/12/2001 00:00:22: read_setting_file_list: added URL: https://192.168.13.8:443/prov/snom_3xx_phone-000000000000.xml?model=snom360
[5] 24/12/2001 00:00:22: read_setting_file_list: added URL: https://192.168.13.8:443/prov/snom_360_buttons-000000000000.xml?model=snom360
[5] 24/12/2001 00:00:22: read_setting_file_list: added URL: https://192.168.13.8:443/prov/snom_web_lang.xml?model=snom360
[5] 24/12/2001 00:00:22: read_setting_file_list: added URL: https://192.168.13.8:443/prov/snom_gui_lang.xml?model=snom360
[5] 24/12/2001 00:00:22: Conf setup: found xml style settings
[5] 24/12/2001 00:00:22: Fetching URL: https://192.168.13.8:443/prov/snom360-000413236BA0.htm
[3] 24/12/2001 00:00:22: TLS: Warning: Certificate verification omitted. TLS Server authentication is switched off!
[5] 24/12/2001 00:00:23: webclient::handle_challenge: http server is asking for credentials!
[5] 24/12/2001 00:00:23: webclient::handle_challenge: asking user for authorization data !
[5] 24/12/2001 00:01:01: send lldp advertisment
[5] 24/12/2001 00:02:01: send lldp advertisment
[5] 24/12/2001 00:02:23: webclient::restart_request: got authorization reply back from user !
[5] 24/12/2001 00:02:23: webclient::restart_request: user canceled challenge request !
[1] 24/12/2001 00:02:23: Conf setup: code: 401, host: 192.168.13.8:443, file: /prov/snom360-000413236BA0.htm
[5] 24/12/2001 00:02:23: Fetching URL: https://192.168.13.8:443/prov/snom_3xx_fw-000000000000.xml?model=snom360
[3] 24/12/2001 00:02:23: TLS: Warning: Certificate verification omitted. TLS Server authentication is switched off!
[1] 24/12/2001 00:02:24: Conf setup: code: 404, host: 192.168.13.8:443, file: /prov/snom_3xx_fw-000000000000.xml?model=snom360
[5] 24/12/2001 00:02:24: Fetching URL: https://192.168.13.8:443/prov/snom_3xx_phone-000000000000.xml?model=snom360
[3] 24/12/2001 00:02:24: TLS: Warning: Certificate verification omitted. TLS Server authentication is switched off!
[1] 24/12/2001 00:02:25: Conf setup: code: 404, host: 192.168.13.8:443, file: /prov/snom_3xx_phone-000000000000.xml?model=snom360
[5] 24/12/2001 00:02:25: Fetching URL: https://192.168.13.8:443/prov/snom_360_buttons-000000000000.xml?model=snom360
[3] 24/12/2001 00:02:25: TLS: Warning: Certificate verification omitted. TLS Server authentication is switched off!
[1] 24/12/2001 00:02:26: Conf setup: code: 404, host: 192.168.13.8:443, file: /prov/snom_360_buttons-000000000000.xml?model=snom360
[5] 24/12/2001 00:02:26: Fetching URL: https://192.168.13.8:443/prov/snom_web_lang.xml?model=snom360
[3] 24/12/2001 00:02:26: TLS: Warning: Certificate verification omitted. TLS Server authentication is switched off!
[5] 24/12/2001 00:02:26: read_xml_settings: found web-languages XML header
[5] 24/12/2001 00:02:26: read_xml_settings: found one byte encoding: 1
[5] 24/12/2001 00:02:26: Conf setup: found xml style settings
Link to comment
Share on other sites

It still looks like that the MAC 000413236BA0 was not assigned to an extension and the extension has been opened for provisioning the phone. The phone fetches the right file https://192.168.13.8:443/prov/snom360-000413236BA0.htm, but then that file does not make it. Can you double check if the MAC is assigned to the extension and that the extension list shows the remaining time that the phone can be provisioned?

 

Also, make sure that you don't have any old files in the html folder or in the webpage templates. If you have made changes in version 4, they would still be there in version 5.

 

You can always check in the "generated" folder on the PBX what has been generated on the fly for the PBX. I assume that that does not contain any files for the extension.

 

If it all does not help, give us remote access and we'll take a look.

Link to comment
Share on other sites

TFTP and PnP event level 8 log:

[8] 2013/09/17 09:20:57: HTTP: Received request for file snom360.htm from 192.168.13.72
[8] 2013/09/17 09:20:57: HTTP: file snom360.htm based on template snom_360.xml is sent to 192.168.13.72
[8] 2013/09/17 09:20:58: HTTP: Received request for file snom360-000413236BA0.htm from 192.168.13.72
[7] 2013/09/17 09:20:58: HTTP: No Auth info in the request: Challenge 192.168.13.72
[8] 2013/09/17 09:22:59: HTTP: Received request for file snom_3xx_fw-000000000000.xml from 192.168.13.72
[7] 2013/09/17 09:22:59: HTTP: Error finding snom_3xx_fw-000000000000.xml, Send back 404 Not Found to 192.168.13.72
[8] 2013/09/17 09:23:00: HTTP: Received request for file snom_3xx_phone-000000000000.xml from 192.168.13.72
[7] 2013/09/17 09:23:00: HTTP: Error finding snom_3xx_phone-000000000000.xml, Send back 404 Not Found to 192.168.13.72
[8] 2013/09/17 09:23:01: HTTP: Received request for file snom_360_buttons-000000000000.xml from 192.168.13.72
[7] 2013/09/17 09:23:01: HTTP: Error finding snom_360_buttons-000000000000.xml, Send back 404 Not Found to 192.168.13.72

the contents of the generated/pbx.../224 folder for this extension:

-rw-r--r-- 1 root root   71 Oct 26  2012 snom360-000413236BA0.htm
-rw-r--r-- 1 root root  465 Oct 26  2012 snom360.htm
-rw-r--r-- 1 root root  768 Oct 26  2012 snom_3xx_fkeys.xml
-rw-r--r-- 1 root root  183 Oct 26  2012 snom_3xx_fs.xml
-rw-r--r-- 1 root root  179 Oct 26  2012 snom_3xx_fw.xml
-rw-r--r-- 1 root root 5222 Oct 26  2012 snom_3xx_phone.xml
-rw-r--r-- 1 root root 1022 Oct 26  2012 snom_gui_lang.xml
-rw-r--r-- 1 root root 1575 Oct 26  2012 snom_web_lang.xml

I have now removed that extension completely from the pbx, delete the generate folder for it and recreated it. The extension folder in the generated directory has not been recreated.

 

I tripple checked the MAC, even cut&pasted it from the log, no change, the remaining time is fine also. The html folder contains only a snom_710.xml file.

 

@snom ONE: I can give you access if you send me a ssh public key, I'll drop you a PM when I have external forwarding for the webif setup

 

Thanks

Andreas

Link to comment
Share on other sites

Hi,

 

Thanks for the excellent help!

For everyone with the same problem: It turned out that the old version had some manual customization for snom 710 phones in the html and webpages sub-directory. That customization where not visible in web frontend (at least I couldn't find it) and had to be removed manually. After that everything works like a charm.

 

Andreas

Link to comment
Share on other sites

  • 1 month later...

Hi,

 

Thanks for the excellent help!

For everyone with the same problem: It turned out that the old version had some manual customization for snom 710 phones in the html and webpages sub-directory. That customization where not visible in web frontend (at least I couldn't find it) and had to be removed manually. After that everything works like a charm.

 

Andreas

Hi,

I have a similar problem. Can you let me know where to find the html and webpages sub directory. Also how to remove them.

Thanks

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