[asterisk-users] environment variable + res_mysql.conf
Tilghman Lesher
tilghman at meg.abyt.es
Mon Jan 10 14:07:08 CST 2011
On Sunday 09 January 2011 23:05:14 Chandrakant Solanki wrote:
> Hi All.
>
> I have export some db parameter in /etc/bashrc as follows ...
>
> export DB_NAME=xyz
> export DB_IP=1x.1x.1x.1x
> export DB_PWD=dkjfaoi
>
> Now, I want use these all environment variable into
> /etc/asterisk/res_mysql.conf file.
>
> Is there any way to do this..??
No, we do not support variable interpolation in that file. You could,
however, turn on execincludes in asterisk.conf and execute a command
that referred to the environment variables, then output a valid
configuration syntax.
--
Tilghman
More information about the asterisk-users
mailing list