[Asterisk-Users] Pass variable to context (NOT macro)

Kevin P. Fleming kpfleming at digium.com
Sun Oct 16 20:11:22 MST 2005


Samy Antoun wrote:

> [context1]
> exten => s,1,Answer
> exten => s,2,SetVar(MYVAR=1)
> exten => s,3,Goto(context2,s,1)
> [context2]
> exten => s,1,NoOp(${MYVAR})
> 
> The NoOp in context2 will return 1?

Variables are set on the channel itself, they aren't related to contexts 
at all.



More information about the asterisk-users mailing list