[Asterisk-Users] Why ${EXTEN} variable changes after Goto ?

Eric Wieling
Fri, 04 Mar 2005 03:45:12 -0000

On Thursday 03 March 2005 04:11 pm, Robert Rozman wrote:
> Hi,
>
> I'm trying to implement dynamic routing of incoming calls to local
> extension if previous outgoing call was unanswered.
> But after I do Goto to s-NOANSWER, variable ${EXTEN} changes to
> 's-NOANSWER'. I guess this is normal, but I don't understand
why ? How to
> workaround on this one ?

exten => 42,1,SetVar(SAVED_EXTEN=${EXTEN})
exten => 42,2,Goto(marvin,27,1)