[Asterisk-Users] Include a variable from another file in config files

Administrator TOOTAI admin at tootai.net
Mon Dec 5 04:43:07 MST 2005


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



More information about the asterisk-users mailing list