Damon Estep
2006-Jan-31 08:23 UTC
[Asterisk-Users] dialing 2 channels atthesametimewithdifferentcaller ID number?
> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Damon Estep > Sent: Tuesday, January 31, 2006 8:09 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: RE: [Asterisk-Users] dialing 2 channels > atthesametimewithdifferentcaller ID number? > > > > > Yes you must prefix a variabel with __ that's (2) _ underscores so > that > > it cross channels. > > > > Aah, the magic formula - documented where? :) > > Thanks a million, have a great day. > > DamonMan, if I could only learn to read... I "looked" at this page 5 times and never saw the plain as day answer to my question.>From the wiki;"Inheritance of Channel Variables Prepending a single _ character to a variables name in SetVar will cause that variable to be inherited by channels created by the main channel. eg. when using Dial(Local/...); once inherited these variables will not be further inherited. Prepending two _ characters will cause them to be inherited indefinitelty. (Only works in CVS HEAD, not yet implemented in Asterisk 1.0.9.) Note that for retrieval purposes these variable names do not need to include the underscores. [TestInherit] exten => 100,1,SetVar(__FOO=5) exten => 100,2,Dial(Local/test@CheckInherit) exten => test,1,NoOp(${FOO}) will result in FOO being inherited. Without the underscores, the new local channel would start with a clean slate."
Damon Estep
2006-Jan-31 19:52 UTC
[Asterisk-Users] dialing 2 channels atthesametimewithdifferentcaller ID number?
> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Damon Estep > Sent: Tuesday, January 31, 2006 7:45 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: RE: [Asterisk-Users] dialing 2 channels > atthesametimewithdifferentcaller ID number? > > Damon Said; > > > > > Channel variable will not pass from original macro to local > channel... > > > > > > Did I miss something? > > > > > > > > > > Alex Lopez said; > > > Yes you must prefix a variabel with __ that's (2) _ underscores so > that > > it cross channels. > > > > Man, this is killing me... > > I SET THE VARIABLE WITH THE 2 UNDERSCORES > > -- Executing Set("Zap/18-1", "__CALLEDNUM=3035551212") in newstack> > VARIABLE CONFIRMED SET > > > -- Executing Dial("Zap/18-1", > "sip/3035551212&local/7205551313@alternate/n|30|tr") in new stack > > Noop(${__CALLEDNUM}) ON LOCAL CHANNEL OUTPUTS; > > -- Executing NoOp("Local/7205551313@alternate-da22,2", "") in new > stack > > SHOULD HAVE BEEN > > -- Executing NoOp("Local/7205551313@alternate-da22,2", "3035551212")in> new stack > > IF VARIABLE PASSED TO LOCAL/ CHANNEL > > ANY OTHER IDEAS? > > THANKS FOR STICKING WITH THIS! > >OK, nevermind, I am being an idiot The 2 underscores are used when setting the variable, but MUST be dropped when READING the variable Wiki needs an edit "Note that for retrieval purposes these variable names do not need to include the underscores." SHOULD READ "Note that for retrieval purposes these variable names MUST NOT include the underscores."
Maybe Matching Threads
- dialing 2 channels at thesametimewithdifferentcaller ID number?
- dialing 2 channelsatthesametimewithdifferentcaller ID number?
- dialing 2 channels at the sametimewithdifferentcaller ID number?
- Postgresql and shell script
- SV: GotoIf number exists in file. How can i do this?