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. _______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users