I am pretty sure the answer is yes. Umar
On Fri, 4 Mar 2005 00:33:46 +0100, Robert Rozman <[EMAIL PROTECTED]> wrote: > > ----- Original Message ----- > From: "Umar Sear" <[EMAIL PROTECTED]> > To: "Asterisk Users Mailing List - Non-Commercial Discussion" > <asterisk-users@lists.digium.com> > Sent: Thursday, March 03, 2005 11:01 PM > Subject: Re: [Asterisk-Users] Why ${EXTEN} variable changes after Goto ? > > > On Thu, 3 Mar 2005 22:11:23 +0100, Robert Rozman <[EMAIL PROTECTED]> > > 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 ? > >> > >> Thanks in advance, > >> > >> regards, > >> > >> Rob. > >> > >> [outbound-capi-ISDN] > >> exten => _0.,1,NoOp(Calling ISDN number ${EXTEN:1} on CAPI/7104370 from > >> ${CALLERIDNUM}) > >> exten => _0.,2,Dial,CAPI/7104370:b${EXTEN:1}|10|Tt > >> exten => _0.,3,Goto(s-${DIALSTATUS},1) > >> exten => _0.,103,NoOp(Calling ISDN number ${EXTEN:1} on CAPI/7104371) > >> exten => _0.,104,Dial,CAPI/7104371:b${EXTEN:1}|30|Tt > >> exten => _0.,105,Goto(s-${DIALSTATUS},1) > >> exten => _0.,205,Macro(outisbusy) > >> > >> exten => s-NOANSWER,1,NoOp(NOANSWER - Setting dynamic autoroute for ISDN > >> number ${EXTEN:1} to local ext. ${CALLERIDNUM}) > >> exten => s-NOANSWER,2,DBput(DYNAMIC/${EXTEN}=${CALLERIDNUM}) > >> exten => s-NOANSWER,3,Congestion > >> > >> exten => _s-.,1,Congestion > >> exten => _s-.,2,Macro(hangupcall) > >> > > > > Save the original extension to a variable like ... > > > > exten => _0.,1,SetVar(myvar=${EXTEN}) > Hi, > > thanks for info. But another question arises - will this variable be unique > if for instance two or more calls happen in the same time ? I guess this is > more general Asterisk behaviour question... > > Regards, > > Rob. > > > > _______________________________________________ > > Asterisk-Users mailing list > > Asterisk-Users@lists.digium.com > > http://lists.digium.com/mailman/listinfo/asterisk-users > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users