Alexander Lopez
2006-Jan-31 08:02 UTC
[Asterisk-Users] dialing 2 channels at the sametimewithdifferentcaller 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 1:48 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: RE: [Asterisk-Users] dialing 2 channels at the > sametimewithdifferentcaller ID number? > > > > > -----Original Message----- > > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users- > > bounces@lists.digium.com] On Behalf Of Damon Estep > > Sent: Monday, January 30, 2006 11:20 PM > > To: Asterisk Users Mailing List - Non-Commercial Discussion > > Subject: RE: [Asterisk-Users] dialing 2 channels at the same > > timewithdifferentcaller ID number? > > > > >Exten => _NXXNXXXXXX,2,Set(__ORIGCID=CALLERID(number)) > > >exten => > > _NXXNXXXXXX,2,dial(sip/${EXTEN}&local/${cellphone}@alternate1/n,r} > > > > > >[alternate1] > > > > > >exten => _NXXNXXXXXX,1,macro(alternate-number|${__ORIGCID}) > > > > > >[macro-alternate-number] > > > > > >exten => s,1,set(CALLERID(number)=${ARG1}) exten => > > >s,2,dial(SIP/${MACRO_EXTEN}@peer) > > > > This sets _ORIGCID = CALLERID(number), I think you meant > > > > Set(_ORIGCID=${EXTEN}) > > > > ?? > > > > I will give it a try. > > > > -- Accepting call from '3035551212' to '3035551313' on > channel 0/19, span 1 > > THIS "exten => 3037687402,1,set(CALLEDNUM=${EXTEN})" > RESULTS IN THIS "-- Executing Set("Zap/19-1", > "CALLEDNUM=3035551313") in new stack" > > OK SO FAR, VARIABLE SET > > > -- Executing Dial("Zap/19-1", > "local/7205551212@alternate1/n") in new stack > -- Called 7205551212@alternate1/n > > THIS "exten => _NXXNXXXXXX,1,macro(alternate-number|${CALLEDNUM})" > RESULTS IN THIS "-- Executing > Macro("Local/7205551212@alternate1-a15c,2", > "alternate-number|") in new stack" > > PROBLEM! ${CALLEDNUM} is no longer = 3035551313 > > Channel variable will not pass from original macro to local channel... > > Did I miss something? > >Yes you must prefix a variabel with __ that's (2) _ underscores so that it cross channels.> _______________________________________________ > --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 >