Amaury BOSSE
2005-Dec-05 03:56 UTC
[Asterisk-Users] Include a variable from another file in config files
I would like to know if it is possible to include a variable in sip_nat.conf. I have a file with my network configuration and I want to parse it and to use LAN IP in sip_nat.conf. Is there a way to parse a file and include variables in a .conf file. Amaury -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051205/f3a15765/attachment.htm
Giovanni Miano
2005-Dec-05 04:35 UTC
[Asterisk-Users] Include a variable from another file in config files
You can use shell script to generate sip_nat.conf file 2005/12/5, Amaury BOSSE <a.bosse@courantmultimedia.fr>:> > I would like to know if it is possible to include a variable in > sip_nat.conf. > > I have a file with my network configuration and I want to parse it and to > use LAN IP in sip_nat.conf. > > Is there a way to parse a file and include variables in a .conf file. > > > > Amaury > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > >-- Giovanni Miano -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051205/64587a58/attachment.htm
Administrator TOOTAI
2005-Dec-05 04:43 UTC
[Asterisk-Users] Include a variable from another file in config files
Amaury BOSSE a ?crit :> I would like to know if it is possible to include a variable in > sip_nat.conf. > > I have a file with my network configuration and I want to parse it and > to use LAN IP in sip_nat.conf. > > Is there a way to parse a file and include variables in a .conf file. > > > > Amaury >In your sip.conf #include /path/to/the/file/you/want/to/include In this file Asterisk will find the command, eg localnet=<your LAN IP> -- Daniel