you put some definitions in
[globals] section in extensions.conf

later you just use SetGlobalVar variable to change the
values of global variables and then you just take
the value of a variable like this: ${variable} or
like this ${${variable}} or like this ${extension_${EXTEN}} etc.

a trivial example:
[global]
start=1

[local]
exten => s,1,SetGlobalVar,start=1
exten => s,2,Dial,Zap/${start}

is the same as
exten => s,1,Dial,Zap/1

regards
Martin



On Mon, 10 Mar 2003, Rattana BIV wrote:

> Hi,
>
> How can we use Environnement variable in extension.conf ?
>
>
> regards
> rattana
>
>
> _______________________________________________
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
>

_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to