[Asterisk-Users] Re: Why ${EXTEN} variable changes after Goto ?
Tony Mountifield
tony at softins.clara.co.uk
Fri Mar 4 05:22:10 MST 2005
In article <002001c52087$e3a78e90$6500a8c0 at Lapitopi>,
Robert Rozman <rozman at fri.uni-lj.si> wrote:
>
> > exten => 42,1,SetVar(SAVED_EXTEN=${EXTEN})
> > exten => 42,2,Goto(marvin,27,1)
>
> 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 ???
http://www.voip-info.org/wiki-Asterisk+cmd+SetVar tells you the answer is that
each call gets its own variable space.
There is also a global variable space which you can write to using SetGlobalVar.
Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
More information about the asterisk-users
mailing list