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
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";
}