Re: [Asterisk-Users] Pass variable to context (NOT macro)

2005-10-17 Thread Eric \"ManxPower\" Wieling
Bob Goddard wrote: On Monday 17 Oct 2005 04:11, Kevin P. Fleming wrote: Samy Antoun wrote: [context1] exten => s,1,Answer exten => s,2,SetVar(MYVAR=1) exten => s,3,Goto(context2,s,1) [context2] exten => s,1,NoOp(${MYVAR}) The NoOp in context2 will return 1? Variables are set on the channel

Re: [Asterisk-Users] Pass variable to context (NOT macro)

2005-10-17 Thread Bob Goddard
On Monday 17 Oct 2005 04:11, Kevin P. Fleming wrote: > Samy Antoun wrote: > > [context1] > > exten => s,1,Answer > > exten => s,2,SetVar(MYVAR=1) > > exten => s,3,Goto(context2,s,1) > > [context2] > > exten => s,1,NoOp(${MYVAR}) > > > > The NoOp in context2 will return 1? > > Variables are set on t

Re: [Asterisk-Users] Pass variable to context (NOT macro)

2005-10-17 Thread Eric \"ManxPower\" Wieling
Samy Antoun wrote: --- "Eric \"ManxPower\" Wieling" <[EMAIL PROTECTED]> wrote: That is the default. Once you set a variable it should exist for the life of the channel. Now, if you are wanting to access that variable when one channel spawns another channel (like chan_local does), then prefix

Re: [Asterisk-Users] Pass variable to context (NOT macro)

2005-10-16 Thread Kevin P. Fleming
Samy Antoun wrote: [context1] exten => s,1,Answer exten => s,2,SetVar(MYVAR=1) exten => s,3,Goto(context2,s,1) [context2] exten => s,1,NoOp(${MYVAR}) The NoOp in context2 will return 1? Variables are set on the channel itself, they aren't related to contexts at all.

Re: [Asterisk-Users] Pass variable to context (NOT macro)

2005-10-16 Thread Samy Antoun
--- "Eric \"ManxPower\" Wieling" <[EMAIL PROTECTED]> wrote: > That is the default. Once you set a variable it should exist for the > life of the channel. Now, if you are wanting to access that variable > when one channel spawns another channel (like chan_local does), then > prefix the name of th

Re: [Asterisk-Users] Pass variable to context (NOT macro)

2005-10-16 Thread Eric \"ManxPower\" Wieling
Samy Antoun wrote: Hi, Is there anyway to pass a variable from one context to another (NOT macro and NOT global) That is the default. Once you set a variable it should exist for the life of the channel. Now, if you are wanting to access that variable when one channel spawns another channel

RE: [Asterisk-Users] Pass variable to context (NOT macro)

2005-10-16 Thread Nir Simionovich
Hi Samy, Well, I've ran into the same issue a while back, and ended up solving it by using an AGI script to Actually performa a manager based originate with variables. This was I actually dialed a specific extension In a specific context, with pre-loading the variables I needed for the target c