[Asterisk-Users] Setting variable for a context for all extensions?

Mark Wormgoor mark at wormgoor.com
Mon May 9 07:20:59 MST 2005


Hi,

>> >> Is it possible to set a variable for a context for all extensions?  I
>> >> haven't been able to find it.
>> >
>> > Try looking up the application "SetVar":
> ... snip  ...
>> > [Description]:
>> >    Setvar(#n=value): Sets channel specific variable n to value
>>
>> But how do I link SetVar() to all extensions in a config?
>> If I use exten => _.,1,SetVar() it will never continue on exten =>
>> 1234,1,Dial or exten => 1234,2,Dial.
>
> Not certain about this but couldn't this work:
> exten => _.,1,SetVar()
> exten => _.,2,Goto(${EXTEN},1)
>
> exten => 1234,1,Dial()

That's what I wanted... Should have thought of that myself.
Thanks!

Mark
-- 
***************************************************************
* |\    /|      |  /|  /       Mark Wormgoor                  *
* | \  / |      | / | /        mailto:mark at wormgoor.com       *
* |  \/  |ark   |/  |/ormgoor  http://www.wormgoor.com/mark/  *
***************************************************************



More information about the asterisk-users mailing list