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

Markus Hakansson mh at samurajdata.se
Mon May 9 06:42:13 MST 2005


mån 2005-05-09 klockan 15.28 skrev Mark Wormgoor:
> 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()


	Sincerely,
	Markus Hakansson





More information about the asterisk-users mailing list