[Asterisk-Users] variable in extension.conf

Martin Pycko martinp at digium.com
Mon Mar 10 11:59:54 MST 2003


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
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list