David John Walsh
2005-May-05  18:18 UTC
[Asterisk-Users] snom mass deployment (probably off topic)
Hello
Although not stictly a asterisk issue, any help would be apreciated.
Firstly a few notes on the snom 360, which I have had on a test bed
for the last week.  Its a great phone, with a good user interface,
both physically and its web based one.
At its lastest firmware it does have a few quirks, with regards to the
way it handles usernames and passwords on the physical interface. 
These have been passed back, and hopefully will be addressed.
Its worst feature as I see it is twofold, with regards to its power
fail features.  If it loses power for more than a few minuites it
loses its settings - not the best thing in a world where routers and
firewalls can be given power back days later and be fine.
It has an interesting configuration mode, it tries to contact snom,
who then (if told about it) goes to their national distrubtor who then
either has your config or passes it on again
The settings file is well documented, and you can pull them direct
from phone in a ready to go way.
-------
I now have my configs in the file name format of snom360-{mac}.htm 
(where {mac} is the MAC address of the phone in question)
The phone initally tries to goto
provisioning.snom.com/snom360/snom360.html   this sends it onto
http://snom.com/snom360/snom360.php?mac={mac}
Assuming that I perform some creative dns records on my dns server,
would someone be kind enough to write some sample php code to take the
url
http://snom.com/snom360/snom360.php?mac={mac}
and provide the url http://asterisk-demo/snom/snom360-{mac}.html
The code the url needs to go in is as follows:
# Redirect all phones to the php script
setting_server: http://asterisk-demo/snom/snom360-{mac}.html
I'm useless with php and most launguages, so thank you to any help
this request generates
David
Daniel Bingham
2005-May-05  20:40 UTC
[Asterisk-Users] snom mass deployment (probably off topic)
Hi David,
First, thanks for the reply to my questions about the Snom 360.  I may have a
few followup questions when I get a little more time.
As for the 360 getting the configuration directly from Snom's servers, I
find that very backwards.  What if your phones have no gateway to the internet? 
It sounds like they are working around not having any flash memory, but it's
a poor workaround.  Your idea of using DNS to fool it into going to your servers
is a good one.  I assume you'll just put in a mapping for
provisioning.snom.com or just snom.com in your DNS server to the IP of your web
server.
If I understand correctly, you will be able to create an /snom360/snom360.php
script on your web server, which you would then like to redirect to the static
html files in the /snom directory.  Assuming the Snom supports redirects, the
PHP code is as simple as:
<?php header("Location: /snom/snom360-$_GET[mac].html") ?>
If the phone doesn't support redirects, it gets a little complex, in that
the script will need to open the file from the filesystem and return it
directly.
If I misunderstood or I didn't make sense, I'll be happy to try again.
Thanks,
Daniel Bingham
dan@apci.net
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com [
mailto:asterisk-users-bounces@lists.digium.com
<mailto:asterisk-users-bounces@lists.digium.com> ] On Behalf Of David John
Walsh
Sent: Thursday, May 05, 2005 8:18 PM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] snom mass deployment (probably off topic)
Hello
Although not stictly a asterisk issue, any help would be apreciated.
Firstly a few notes on the snom 360, which I have had on a test bed for the last
week.  Its a great phone, with a good user interface, both physically and its
web based one.
At its lastest firmware it does have a few quirks, with regards to the way it
handles usernames and passwords on the physical interface.
These have been passed back, and hopefully will be addressed.
Its worst feature as I see it is twofold, with regards to its power fail
features.  If it loses power for more than a few minuites it loses its settings
- not the best thing in a world where routers and firewalls can be given power
back days later and be fine.
It has an interesting configuration mode, it tries to contact snom, who then (if
told about it) goes to their national distrubtor who then either has your config
or passes it on again
The settings file is well documented, and you can pull them direct from phone in
a ready to go way.
-------
I now have my configs in the file name format of snom360-{mac}.htm (where {mac}
is the MAC address of the phone in question)
The phone initally tries to goto
provisioning.snom.com/snom360/snom360.html   this sends it onto
http://snom.com/snom360/snom360.php?mac=
<http://snom.com/snom360/snom360.php?mac=> {mac}
Assuming that I perform some creative dns records on my dns server, would
someone be kind enough to write some sample php code to take the url
http://snom.com/snom360/snom360.php?mac=
<http://snom.com/snom360/snom360.php?mac=> {mac}
and provide the url http://asterisk-demo/snom/snom360-
<http://asterisk-demo/snom/snom360-> {mac}.html
The code the url needs to go in is as follows:
# Redirect all phones to the php script
setting_server: http://asterisk-demo/snom/snom360-
<http://asterisk-demo/snom/snom360-> {mac}.html
I'm useless with php and most launguages, so thank you to any help this
request generates
David
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
<http://lists.digium.com/mailman/listinfo/asterisk-users>
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
<http://lists.digium.com/mailman/listinfo/asterisk-users>
Andrew Latham
2005-May-08  05:46 UTC
[Asterisk-Users] Re: snom mass deployment - settings via DHCP
snom site -> support -> whitepapers On 5/6/05, Stefan Tichy <asterisk@pi4tel.de> wrote:> Hello, > > On Fri, May 06, 2005 at 02:13:02PM +0200, Nils Ohlmeier wrote: > > Regarding the real topic: did you already read our white-papers about > > mass-deployment and setting up snom phones? > > http://www.snom.com/white_papers.html > > My Snom 190 gets several options via dhcp, but defining the setting > server URL does not work (in my environment) > > .. can be set ... automatically via DHCP (options 66 and 67) ... > > /etc/dhcp/dhcpd.conf > 66: tftp-server-name > 67: bootfile-name > > Is this correct? If not, do you have a working example? > > -- > Stefan Tichy <asterisk@pi4tel.de> > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- <sig> Andrew Latham - AKA: LATHAMA (lay-th-ham-eh) WWW: http://lathama.com Email: lathama@lathama.com - lathama@yahoo.com - lathama@gmail.com If any of the above are down we have bigger problems than my email! </sig>
David John Walsh
2005-May-08  08:40 UTC
[Asterisk-Users] Re: snom mass deployment - settings via DHCP
Stefan I have raised the same point (and requested a working example from snom) in the same way. The white paper does suggest this (As both you and Andrew Latham point out) but does indeed seem to be ineffective. David On 5/6/05, Stefan Tichy <asterisk@pi4tel.de> wrote:> Hello, > > On Fri, May 06, 2005 at 02:13:02PM +0200, Nils Ohlmeier wrote: > > Regarding the real topic: did you already read our white-papers about > > mass-deployment and setting up snom phones? > > http://www.snom.com/white_papers.html > > My Snom 190 gets several options via dhcp, but defining the setting > server URL does not work (in my environment) > > .. can be set ... automatically via DHCP (options 66 and 67) ... > > /etc/dhcp/dhcpd.conf > 66: tftp-server-name > 67: bootfile-name > > Is this correct? If not, do you have a working example? > > -- > Stefan Tichy <asterisk@pi4tel.de> > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Stefan Tichy
2005-May-11  09:36 UTC
[Asterisk-Users] Re: snom mass deployment - settings via DHCP
I have to adjust my last statement. If "Setting URL" field of advanced.htm webinterface is empty the value of tftp-server-name is used. option tftp-server-name "http://192.168.100.1"; On reboot the phone sends two requests to the specified IP: GET /download/snom190.htm GET /download/snom190-<mac>.htm bootfile-name does indeed seem to be ineffective. I tried using snom 190 with 3.60b firmware and a dhcp-3.0.1 server. -- Stefan Tichy <asterisk@pi4tel.de>
David,
this is my config via  DHCP:
67: Startupserver    webserver.mydomain.com
66: Startup file        snomstartup.cfg
File snomstartup.cfg
setting_server: 
http://webserver.mydomain.com/snom/conf/snomcfg.php?MAC={mac}
subscribe_config: on
File snomcfg.php
<?php
        $filename = '/var/www/html/snom/conf/snom360.php';
        readfile(htmlspecialchars($filename));
        $filename = '/var/www/html/snom/conf/snom-'.$MAC.'.cfg';
        readfile(htmlspecialchars($filename));
?>
Kib
David John Walsh wrote:
>Hello
>
>Although not stictly a asterisk issue, any help would be apreciated.
>
>Firstly a few notes on the snom 360, which I have had on a test bed
>for the last week.  Its a great phone, with a good user interface,
>both physically and its web based one.
>
>At its lastest firmware it does have a few quirks, with regards to the
>way it handles usernames and passwords on the physical interface. 
>These have been passed back, and hopefully will be addressed.
>
>Its worst feature as I see it is twofold, with regards to its power
>fail features.  If it loses power for more than a few minuites it
>loses its settings - not the best thing in a world where routers and
>firewalls can be given power back days later and be fine.
>
>It has an interesting configuration mode, it tries to contact snom,
>who then (if told about it) goes to their national distrubtor who then
>either has your config or passes it on again
>
>The settings file is well documented, and you can pull them direct
>from phone in a ready to go way.
>
>-------
>
>I now have my configs in the file name format of snom360-{mac}.htm 
>(where {mac} is the MAC address of the phone in question)
>
>The phone initally tries to goto
>provisioning.snom.com/snom360/snom360.html   this sends it onto
>http://snom.com/snom360/snom360.php?mac={mac}
>
>Assuming that I perform some creative dns records on my dns server,
>would someone be kind enough to write some sample php code to take the
>url
>
>http://snom.com/snom360/snom360.php?mac={mac}
>
>and provide the url http://asterisk-demo/snom/snom360-{mac}.html
>
>The code the url needs to go in is as follows:
>
># Redirect all phones to the php script
>setting_server: http://asterisk-demo/snom/snom360-{mac}.html
>
>I'm useless with php and most launguages, so thank you to any help
>this request generates
>
>David
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users@lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>  
>