Issue Details (XML | Word | Printable)

Key: XX-1152
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Pawel Pierscionek
Reporter: Pawel Pierscionek
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
sipXecs

Provisioning filename for Snom phones should not include model number with firmware >= 4.1

Created: 2006-08-06 06:53   Updated: 2009-04-24 19:57
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.0

Environment: sipX 3.4 release


 Description  « Hide
I am testing provisioning of Snom 300, Snom 360 and Polycoms sharing same DHCP server.

I can have Polycoms and Snom300 provisioning after phone reset to factory default
with this dhcp.conf config.

 option tftp-server-name "10.2.0.4";

 class "snom" {
      match if substring (hardware, 1, 3) = 00:04:13;
      option tftp-server-name "http://10.2.0.4:8090/phone/profile/docroot";
      option bootfile-name "/phone/profile/docroot/snom360-{mac}.htm";
 }

Unfortunately I can not have it for both Snom300 and Snom360 as the default behaviour for these phones
is to ask for 'model-{mac}' only if the option 67 is NOT PRESENT and option 66 contains url limited only
to http://hostname:port/ - without the /phone/profile/docroot suffix.

There is no {model} tag in Snom phones - so I cannot have both 300 and 360 provisioned without manually changing
their factory setup. :( Snom is not reporting model number in DHCP queries so option 67 cannot be set dynamically in
mixed model environment.

The prefix of provisioning filename should either be configurable or be a fixed string which can be later set in option 67.
Now it is based on a model of a Snom phone which requires manual setting of settings_url.

The change should be compatible with all Snoms that are shipping right now - and with the ones that had been already
provisioned successfully at least once.

I have Snoms with firmware 4.1, 5.5 and 6.2 - all exhibiting this behaviour.


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Pawel Pierscionek added a comment - 2006-08-07 05:41
my cut&paste mistake - the config that works for Polycoms and Snoms 300 is either

option tftp-server-name "10.2.0.4
class "snom" {
      match if substring (hardware, 1, 3) = 00:04:13;
      option tftp-server-name "http://10.2.0.4:8090/phone/profile/docroot";
      option bootfile-name "/snom300-{mac}.htm";
 }

or

option tftp-server-name "10.2.0.4
class "snom" {
      match if substring (hardware, 1, 3) = 00:04:13;
      option tftp-server-name "http://10.2.0.4:8090";
      option bootfile-name "/phone/profile/docroot/snom300-{mac}.htm";
}


Sven Fischer added a comment - 2006-08-08 03:24
This is also a valid setup for a snom phone:

option tftp-server-name "10.2.0.4
 class "snom" {
       match if substring (hardware, 1, 3) = 00:04:13;
       option tftp-server-name "http://10.2.0.4:8090/phone/profile/docroot/snom300-{mac}.htm";
  }

I left out

option bootfile-name

and put the whole URL into option tftp-server-name. Don't know if it helps here ?!

A better approach could be the following:

option tftp-server-name "10.2.0.4
 class "snom" {
       match if substring (hardware, 1, 4) = 00:04:13:25;
       option tftp-server-name "http://10.2.0.4:8090/phone/profile/docroot";
       option bootfile-name "/snom300-{mac}.htm";
  }

The above example matches snom300 phones only, because the fourth byte of the MAC tells everything about the phone model.

Here is a list:

22: snom190
23: snom360
24: snom320
25: snom300

Michal Bielicki added a comment - 2006-09-04 21:38
Fixed. Now its only macaddress.htm

Raghu Venkataramana added a comment - 2006-09-25 01:00
Verified using:
sipxconfig 3.5.5 0.unknown 2006-09-23T01:26:59 eagle.pingtel.com

Generated profile is <macid>.html