[asterisk-users] Automatic provisioning of Sipura handsets (was: A linksys SPA921 behind NAT and firewall)

Per Jessen per at computer.org
Sun Oct 21 06:42:42 CDT 2007


Anselm Martin Hoffmeister wrote:

> Am Samstag, den 20.10.2007, 22:58 -0700 schrieb Philip Prindeville:
>> I'd like to be able to templatize a server, add a bunch of new
>> handsets into sip.conf and extensions.conf, and then plug the phones
>> into a network and have some DHCP and/or TFTP "glue" logic that sees
>> the DHCP or TFTP request, and from it generates a boot file (an .XML
>> file) and a response parameter list for DHCP... populates a file into
>> the /tftpboot/ directory, etc.
>> 
>> How viable is this?
> 
> The problem there is that you have a very small "windows". AFAIK there
> are no tftp servers that can generate files on-the-fly, so your script
> would have to generate the XML within less than a second, reliably,
> and do all the necessary asterisk changes within another second or
> two, and I doubt this will be possible _that_ quick.

Perhaps you could trigger the creation of the config, xml etc. on the
first TFTP request - on the retry the files would then be ready to go.

> Of course you can use ISC dhcpd for tailoring answers to your needs
> (dynamic setting of config file etc), but IMO this will only work well
> if the phones support http config download, 

The SPA-9x1 does support http download, but I don't see how you could
change the initial TFTP request to HTTP without manually configuring
the phone.  Even then I'm not sure it would work - I certainly haven't
managed to make any of my SPAs do an auto-config over HTTP. 


/Per Jessen, Zürich

-- 
http://www.spamchek.com/ - your spam is our business.




More information about the asterisk-users mailing list