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

Robert Rozman rozman at fri.uni-lj.si
Fri Mar 4 00:00:42 MST 2005


----- Original Message ----- 
From: "Eric Wieling" <eric at fnords.org>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 
<asterisk-users at lists.digium.com>
Sent: Friday, March 04, 2005 11:45 AM
Subject: Re: [Asterisk-Users] Why ${EXTEN} variable changes after Goto ?


> 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)
Hi,

thanks for help. I'd just like to be sure what happens if there is more than 
one concurrent calls. Is variable set up for each of them or is necessary to 
make variable that is somehow unique to each call ???

Regards,

Rob. 




More information about the asterisk-users mailing list