[asterisk-users] OT - How to organize TFTP root directory ?
Benny Amorsen
benny+usenet at amorsen.dk
Fri Oct 23 04:16:55 CDT 2009
Steve Edwards <asterisk.org at sedwards.com> 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 -> sipura/spa841.cfg
Cute, but all that accomplishes is renaming. I want to run a script
which returns a different configuration based on the file name (and
possibly the client IP address). Unfortunately there is also no
UserAgent-header in TFTP...
/Benny
More information about the asterisk-users
mailing list