Am 24.02.2012 um 15:18 schrieb Neuer User: >> I gave it a try, and both pcre and lighttpd w/pcre builds properly. I > did not test mod_rewrite functionality though. >> >> May I ask what you need mod_rewrite for ? Would it be of general > interest ? > > I want to provision some aastra phones. The asterisk provisioning system > is not very well documented, but from what I understand it does not > allow for more diverse configuration files, e.g. different softkeys per > phone. > > So, I would like to use some simple php scripts to generate the > configuration files. But for this I need a rewrite rule, because the > aastra phones (like all others that I know) use static URLs like > > http://192.168.0.1/phoneprov/0011223344.cfg > > I would rewrite this to something like this > > http://192.168.0.1/phoneprov.php?mac=0011223344 > > Which a php script can use to generate the configuration file. > > Whether this is of general interest, I don't know? > >> If you are developing custom PHP stuff, you may as well be building > your own custom images. > > Well yes, that could be an alternative. I would need to setuop the build > system and understand how it works. > > But actually, the mod_rewrite is the only thing I need to change so far. > Would it be possible for you to send me the necessary files, if you have > already built them? > > Thanks a lot! > > Michael
You can do the same rewrite in Asterisk phoneprov.conf. I did that already for Yealink phones: [yealink2x] ${MAC}.cfg => yealink/yealink_t2x-mac.cfg staticdir => yealink/ static_file => y000000000000.cfg You need to change the dnsmasq config to redirect the TFTP server to the Asterisk directory. In this example the Yealink T28P uses a general y000…cfg and a MAC-specific <MAC>.cfg The standard settings for the phone are taken from users.conf. But no softkeys etc. But you can at least do the file redirection. Michael http://www.mksolutions.info
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.