Discussion:
Snom 320 phones not pulling configs
Kurt Albershardt
2012-07-11 01:55:00 UTC
Permalink
Plugged in three Snom 320 phones after configuring MAC addresses and extensions in sipx 4.6

sipx is not handling DHCP, so I entered the config URL via each phone's HTTP interface.
Phones reboot, but no config gets loaded.

When I do a wget on http://sipx.domain.com:8090/phone/profile/ddocroot/0004133842e0.xml I get a 404

Web UI shows MAC as 0004133842E0 so I tried http://sipx.domain.com:8090/phone/profile/ddocroot/0004133842E0.xml just in case, but same result.

I presume these profiles are stored in the db and not in the filesystem.

Where to look next?


--thanks
Michael Picher
2012-07-11 09:08:46 UTC
Permalink
And you poured over the snom info in the wiki?
Post by Kurt Albershardt
Plugged in three Snom 320 phones after configuring MAC addresses and extensions in sipx 4.6
sipx is not handling DHCP, so I entered the config URL via each phone's HTTP interface.
Phones reboot, but no config gets loaded.
When I do a wget on
http://sipx.domain.com:8090/phone/profile/ddocroot/0004133842e0.xml I get
a 404
Web UI shows MAC as 0004133842E0 so I tried
http://sipx.domain.com:8090/phone/profile/ddocroot/0004133842E0.xml just
in case, but same result.
I presume these profiles are stored in the db and not in the filesystem.
Where to look next?
--thanks
_______________________________________________
sipx-users mailing list
List Archive: http://list.sipfoundry.org/archive/sipx-users/
--
Michael Picher, Director of Technical Services
eZuce, Inc.

300 Brickstone Square****

Suite 201****

Andover, MA. 01810
O.978-296-1005 X2015
M.207-956-0262
@mpicher <http://twitter.com/mpicher>
linkedin <http://www.linkedin.com/profile/view?id=35504760&trk=tab_pro>
www.ezuce.com

------------------------------------------------------------------------------------------------------------
There are 10 kinds of people in the world, those who understand binary and
those who don't.
Douglas Hubler
2012-07-11 09:33:12 UTC
Permalink
Post by Kurt Albershardt
Plugged in three Snom 320 phones after configuring MAC addresses and extensions in sipx 4.6
sipx is not handling DHCP, so I entered the config URL via each phone's HTTP interface.
Phones reboot, but no config gets loaded.
When I do a wget on http://sipx.domain.com:8090/phone/profile/ddocroot/0004133842e0.xml I get a 404
Web UI shows MAC as 0004133842E0 so I tried http://sipx.domain.com:8090/phone/profile/ddocroot/0004133842E0.xml just in case, but same result.
Try
http://your-fqdn/phone/profile/...

Local file
/var/sipxdata/configserver/phone/profile/...

DHCP is not enabled by default, but even if you enabled it, I'm not
sure if adds the correct option header to support snom.
Joegen Baclor
2012-07-11 10:25:17 UTC
Permalink
I got a snom pulling config from 4.4 here. I simply followed what's on
the wiki.
Post by Douglas Hubler
Post by Kurt Albershardt
Plugged in three Snom 320 phones after configuring MAC addresses and extensions in sipx 4.6
sipx is not handling DHCP, so I entered the config URL via each phone's HTTP interface.
Phones reboot, but no config gets loaded.
When I do a wget on http://sipx.domain.com:8090/phone/profile/ddocroot/0004133842e0.xml I get a 404
Web UI shows MAC as 0004133842E0 so I tried http://sipx.domain.com:8090/phone/profile/ddocroot/0004133842E0.xml just in case, but same result.
Try
http://your-fqdn/phone/profile/...
Local file
/var/sipxdata/configserver/phone/profile/...
DHCP is not enabled by default, but even if you enabled it, I'm not
sure if adds the correct option header to support snom.
_______________________________________________
sipx-users mailing list
List Archive: http://list.sipfoundry.org/archive/sipx-users/
Kurt Albershardt
2012-07-11 15:31:49 UTC
Permalink
Post by Michael Picher
And you poured over the snom info in the wiki?
Yes - just fumblefingered the URL.
Post by Michael Picher
Local file
/var/sipxdata/configserver/phone/profile/...
Thanks for the pointer - they are there:

[***@sipx ~]# ls -l /var/sipxdata/configserver/phone/profile/docroot/
total 168
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 00041338400C.xml
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 000413384285.xml
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 0004133842E0.xml
Post by Michael Picher
Try
http://your-fqdn/phone/profile/...
Works (on both port 80 and 8090) - somehow I doubled that "d" with one of my copy-and-paste operations.
Post by Michael Picher
DHCP is not enabled by default, but even if you enabled it, I'm not
sure if adds the correct option header to support snom.
Good to know - I'm still wrapping my head around what should best be handled outside sipx and what it really wants to own. For this particular setup, there are so few IP phones it's easy enough to preconfigure them one by one over HTTP.
Kurt Albershardt
2012-07-11 15:40:59 UTC
Permalink
Post by Kurt Albershardt
total 168
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 00041338400C.xml
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 000413384285.xml
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 0004133842E0.xml
As it turns out, I mis-read a "B" as an "8" when entering the MAC of the second phone above.

Went into 'Phones" in the GUI and changed the MAC to the correct 0004133842b5, then hit "OK" and "Send Profiles"
Saw "You are about to generate new configuration profiles for 1 device. Press OK to proceed."
then "1 profile will be generated. Go to Job Status page to monitor operation progress."

Job Status says:

Projection for: 0004133842b5 7/11/12 3:31 PM 7/11/12 3:31 PM Failed Invocation of method 'getValue' in class org.sipfoundry.sipxconfig.setting.ConditionalSettingImpl threw exception java.lang.NullPointerException @ snom/snom.vm[17,63]
Restarting: 0004133842b5 7/11/12 3:31 PM 7/11/12 3:31 PM Failed Timed out waiting for response


I've manually renamed the file to the correct MAC for now, but something seems amiss with regard to changing MACs in the GUI.
Kurt Albershardt
2012-07-11 15:47:45 UTC
Permalink
Post by Kurt Albershardt
As it turns out, I mis-read a "B" as an "8" when entering the MAC of the second phone above.
Went into 'Phones" in the GUI and changed the MAC to the correct 0004133842b5, then hit "OK" and "Send Profiles"
Saw "You are about to generate new configuration profiles for 1 device. Press OK to proceed."
then "1 profile will be generated. Go to Job Status page to monitor operation progress."
Restarting: 0004133842b5 7/11/12 3:31 PM 7/11/12 3:31 PM Failed Timed out waiting for response
Left out the directory listing (after this and before I renamed the config file):

***@sipx docroot]# ls -l
total 168
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 00041338400C.xml
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 000413384285.xml
-rw-r--r-- 1 sipx sipx 0 Jul 11 09:37 0004133842B5.xml
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 0004133842E0.xml
Tony Graziano
2012-07-11 19:19:30 UTC
Permalink
the system will project the config file with the mac address that was
configured. Don't manipulate the file name. Delete the phone and
create it with the proper mac address and project the file or you will
never get updates.
Post by Kurt Albershardt
Post by Kurt Albershardt
As it turns out, I mis-read a "B" as an "8" when entering the MAC of the second phone above.
Went into 'Phones" in the GUI and changed the MAC to the correct 0004133842b5, then hit "OK" and "Send Profiles"
Saw "You are about to generate new configuration profiles for 1 device. Press OK to proceed."
then "1 profile will be generated. Go to Job Status page to monitor operation progress."
Restarting: 0004133842b5 7/11/12 3:31 PM 7/11/12 3:31 PM Failed Timed out waiting for response
total 168
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 00041338400C.xml
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 000413384285.xml
-rw-r--r-- 1 sipx sipx 0 Jul 11 09:37 0004133842B5.xml
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 0004133842E0.xml
_______________________________________________
sipx-users mailing list
List Archive: http://list.sipfoundry.org/archive/sipx-users/
--
~~~~~~~~~~~~~~~~~~
Tony Graziano, Manager
Telephone: 434.984.8430
sip: ***@voice.myitdepartment.net
Fax: 434.465.6833
~~~~~~~~~~~~~~~~~~
Linked-In Profile:
http://www.linkedin.com/pub/tony-graziano/14/4a6/7a4
Ask about our Internet Fax services!
~~~~~~~~~~~~~~~~~~

Using or developing for sipXecs from SIPFoundry? Ask me about sipX-CoLab 2013!
--
LAN/Telephony/Security and Control Systems Helpdesk:
Telephone: 434.984.8426
sip: ***@voice.myitdepartment.net

Helpdesk Customers: http://myhelp.myitdepartment.net
Blog: http://blog.myitdepartment.net
Kurt Albershardt
2012-07-11 19:24:26 UTC
Permalink
OK, will do.

If this is the case, then might I suggest making the MAC field non-editable once the record is created? This would force a delete and re-create.
Post by Tony Graziano
the system will project the config file with the mac address that was
configured. Don't manipulate the file name. Delete the phone and
create it with the proper mac address and project the file or you will
never get updates.
Post by Kurt Albershardt
Post by Kurt Albershardt
As it turns out, I mis-read a "B" as an "8" when entering the MAC of the second phone above.
Went into 'Phones" in the GUI and changed the MAC to the correct 0004133842b5, then hit "OK" and "Send Profiles"
Saw "You are about to generate new configuration profiles for 1 device. Press OK to proceed."
then "1 profile will be generated. Go to Job Status page to monitor operation progress."
Restarting: 0004133842b5 7/11/12 3:31 PM 7/11/12 3:31 PM Failed Timed out waiting for response
total 168
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 00041338400C.xml
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 000413384285.xml
-rw-r--r-- 1 sipx sipx 0 Jul 11 09:37 0004133842B5.xml
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 0004133842E0.xml
Tony Graziano
2012-07-11 19:31:13 UTC
Permalink
I use phones that auto discover so ou dont input the mac wrong. I hear
what you are saying, but I'm just trying to provide guidance on the
least problematic way to do things. BTW - If the line is not
registered, DO NOT check the box to restart it. It can't send a
restart to a phone thats not registered. That's not a flaw its just
how it "should work". (Hey, that phone didnt restart. Hey, why isn't
it registered."
Post by Kurt Albershardt
OK, will do.
If this is the case, then might I suggest making the MAC field non-editable once the record is created? This would force a delete and re-create.
Post by Tony Graziano
the system will project the config file with the mac address that was
configured. Don't manipulate the file name. Delete the phone and
create it with the proper mac address and project the file or you will
never get updates.
Post by Kurt Albershardt
Post by Kurt Albershardt
As it turns out, I mis-read a "B" as an "8" when entering the MAC of the second phone above.
Went into 'Phones" in the GUI and changed the MAC to the correct 0004133842b5, then hit "OK" and "Send Profiles"
Saw "You are about to generate new configuration profiles for 1 device. Press OK to proceed."
then "1 profile will be generated. Go to Job Status page to monitor operation progress."
Restarting: 0004133842b5 7/11/12 3:31 PM 7/11/12 3:31 PM Failed Timed out waiting for response
total 168
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 00041338400C.xml
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 000413384285.xml
-rw-r--r-- 1 sipx sipx 0 Jul 11 09:37 0004133842B5.xml
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 0004133842E0.xml
_______________________________________________
sipx-users mailing list
List Archive: http://list.sipfoundry.org/archive/sipx-users/
--
~~~~~~~~~~~~~~~~~~
Tony Graziano, Manager
Telephone: 434.984.8430
sip: ***@voice.myitdepartment.net
Fax: 434.465.6833
~~~~~~~~~~~~~~~~~~
Linked-In Profile:
http://www.linkedin.com/pub/tony-graziano/14/4a6/7a4
Ask about our Internet Fax services!
~~~~~~~~~~~~~~~~~~

Using or developing for sipXecs from SIPFoundry? Ask me about sipX-CoLab 2013!
--
LAN/Telephony/Security and Control Systems Helpdesk:
Telephone: 434.984.8426
sip: ***@voice.myitdepartment.net

Helpdesk Customers: http://myhelp.myitdepartment.net
Blog: http://blog.myitdepartment.net
Kurt Albershardt
2012-07-11 19:47:04 UTC
Permalink
Post by Tony Graziano
BTW - If the line is not
registered, DO NOT check the box to restart it. It can't send a
restart to a phone thats not registered. That's not a flaw its just
how it "should work". (Hey, that phone didnt restart. Hey, why isn't
it registered."
Check.

Generating a new config still doesn't want to work.

I deleted the phone and verified that it removed the file from disk:
[***@sipx ~]# ls -l /var/sipxdata/configserver/phone/profile/docroot/
total 112
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 00041338400C.xml
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 0004133842E0.xml

then re-added using the correct MAC and generated (without sending) and got:

Projection for: 0004133842b5 7/11/12 1:42 PM 7/11/12 1:42 PM Failed Invocation of method 'getValue' in class org.sipfoundry.sipxconfig.setting.ConditionalSettingImpl threw exception java.lang.NullPointerException @ snom/snom.vm[17,63]

so:

[***@sipx ~]# ls -l /var/sipxdata/configserver/phone/profile/docroot/
total 112
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 00041338400C.xml
-rw-r--r-- 1 sipx sipx 0 Jul 11 13:42 0004133842B5.xml
-rw-r--r-- 1 sipx sipx 51932 Jul 10 17:51 0004133842E0.xml

Loading...