Chandrakant Solanki
2011-Jan-10 05:05 UTC
[asterisk-users] environment variable + res_mysql.conf
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..?? -- Regards, Chandrakant Solanki -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110110/51355245/attachment.htm>
Tilghman Lesher
2011-Jan-10 20:07 UTC
[asterisk-users] environment variable + res_mysql.conf
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