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

Eric Wieling eric at fnords.org
Fri Mar 4 03:45:12 MST 2005


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)



More information about the asterisk-users mailing list