[Asterisk-Users] snom mass deployment (probably off topic)

Daniel Bingham dan at apci.net
Thu May 5 20:40:33 MST 2005


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 at apci.net


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [ mailto:asterisk-users-bounces at lists.digium.com <mailto:asterisk-users-bounces at lists.digium.com> ] On Behalf Of David John Walsh
Sent: Thursday, May 05, 2005 8:18 PM
To: asterisk-users at 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 at 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> 





More information about the asterisk-users mailing list