Re: [asterisk-users] environment variable + res_mysql.conf

2011-01-10 Thread Tilghman Lesher
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

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] environment variable + res_mysql.conf

2011-01-09 Thread Chandrakant Solanki
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
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users