Re: [asterisk-users] OT - How to organize TFTP root directory ?

2009-10-24 Thread Tzafrir Cohen
On Thu, Oct 22, 2009 at 10:50:29PM +0200, Benny Amorsen wrote: > Olivier writes: > > > Most (if not all) IP phones support provisioning through DHCP/TFTP. > > The trouble is some phones seem to require to store their config files in > > TFTP root directory. > > A lot of IP phones support HTTP in

Re: [asterisk-users] OT - How to organize TFTP root directory ?

2009-10-24 Thread Steve Edwards
On Sat, 24 Oct 2009, Dave Platt wrote: > xinetd will let you do multiple bindings of a single port, with a single > instance of xinetd running. > > You would define two service entries in the config file, with the same > service name, different ids (e.g. "tftp1" and "tftp2"), and different > "b

Re: [asterisk-users] OT - How to organize TFTP root directory ?

2009-10-24 Thread Olivier
2009/10/24 Dave Platt > > xinetd will let you do multiple bindings of a single port, with a > single instance of xinetd running. > ... > > > As far as I know, standard BSD (and Linux) inetd doesn't have > this capability. > Good to know ! Thanks for the pointer !! Testing xinetd is on my todo l

Re: [asterisk-users] OT - How to organize TFTP root directory ?

2009-10-24 Thread Dave Platt
> Great idea ! > I didn't know it could be possible to run several instances of xinetd, each > binded to a specific IP address. > Is this specific to xinetd or does openbsd-inetd also support this feature ? > Anyway, I'll check this in openbsd-inetd doc myself and (hopefully) report > my findings

Re: [asterisk-users] OT - How to organize TFTP root directory ?

2009-10-24 Thread Olivier
2009/10/24 Warren Selby > What I do is run virtual interfaces on one box, and run multiple instances > of atftpd inside xinetd, Great idea ! I didn't know it could be possible to run several instances of xinetd, each binded to a specific IP address. Is this specific to xinetd or does openbsd-in

Re: [asterisk-users] OT - How to organize TFTP root directory ?

2009-10-23 Thread Warren Selby
What I do is run virtual interfaces on one box, and run multiple instances of atftpd inside xinetd, each one bound to a different IP and a different root directory. Thus, my file structure looks like this - /home/phones/ /home/phones/cisco/ /home/phones/cisco/7960 (root directory for one of the a

Re: [asterisk-users] OT - How to organize TFTP root directory ?

2009-10-23 Thread Steve Edwards
> Steve Edwards writes: > >> atftpd can do PCRE substitutions to transform a requested file name >> into something else. I've not used this facility, but I'm guessing you >> could transform: >> >> SIPDefault.cnf -> cisco/SIPDefault.cnf >> sip.cfg -> polycom/sip.cfg >> spa841.cfg -

Re: [asterisk-users] OT - How to organize TFTP root directory ?

2009-10-23 Thread Benny Amorsen
Steve Edwards writes: > atftpd can do PCRE substitutions to transform a requested file name into > something else. I've not used this facility, but I'm guessing you could > transform: > > SIPDefault.cnf -> cisco/SIPDefault.cnf > sip.cfg -> polycom/sip.cfg > spa841.cfg -> sipur

Re: [asterisk-users] OT - How to organize TFTP root directory ?

2009-10-22 Thread Steve Edwards
On Thu, 22 Oct 2009, Benny Amorsen wrote: > A lot of IP phones support HTTP instead of TFTP. This helps, because it > is fairly easy to write a script which dynamically generates the > configuration. > > Someone really ought to write a TFTP daemon with the same feature... Or > a TFTP plugin for ap

Re: [asterisk-users] OT - How to organize TFTP root directory ?

2009-10-22 Thread Benny Amorsen
Olivier writes: > Most (if not all) IP phones support provisioning through DHCP/TFTP. > The trouble is some phones seem to require to store their config files in > TFTP root directory. A lot of IP phones support HTTP instead of TFTP. This helps, because it is fairly easy to write a script which

Re: [asterisk-users] OT - How to organize TFTP root directory ?

2009-10-22 Thread Olivier
2009/10/22 Jared Smith > On Thu, 2009-10-22 at 11:15 -0400, Dave Fullerton wrote: > > #2 might be possible, but there's a lot of "depends on" factors. > > > > The ISC dhcpd often packaged in linux distributions has the ability to > > specify different dhcp options to different "pools" of addresse

Re: [asterisk-users] OT - How to organize TFTP root directory ?

2009-10-22 Thread Jared Smith
On Thu, 2009-10-22 at 11:15 -0400, Dave Fullerton wrote: > #2 might be possible, but there's a lot of "depends on" factors. > > The ISC dhcpd often packaged in linux distributions has the ability to > specify different dhcp options to different "pools" of addresses. You > can then assign clients

Re: [asterisk-users] OT - How to organize TFTP root directory ?

2009-10-22 Thread Dave Fullerton
Olivier wrote: > Hi, > > Most (if not all) IP phones support provisioning through DHCP/TFTP. > The trouble is some phones seem to require to store their config files in > TFTP root directory. > This makes this TFTP root directory a bit messy. > > What are the best practices or tricks to manage th

[asterisk-users] OT - How to organize TFTP root directory ?

2009-10-22 Thread Olivier
Hi, Most (if not all) IP phones support provisioning through DHCP/TFTP. The trouble is some phones seem to require to store their config files in TFTP root directory. This makes this TFTP root directory a bit messy. What are the best practices or tricks to manage this TFTP root directory ? I was