> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:asterisk-users- > [EMAIL PROTECTED] 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 new stack > > VARIABLE CONFIRMED SET > > > -- Executing Dial("Zap/18-1", > "sip/3035551212&local/[EMAIL PROTECTED]/n|30|tr") in new stack > > Noop(${__CALLEDNUM}) ON LOCAL CHANNEL OUTPUTS; > > -- Executing NoOp("Local/[EMAIL PROTECTED],2", "") in new > stack > > SHOULD HAVE BEEN > > -- Executing NoOp("Local/[EMAIL PROTECTED],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." _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
