Damon Estep
2006-Jan-30 23:48 UTC
[Asterisk-Users] dialing 2 channels at the same timewithdifferentcaller 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?
Reasonably Related Threads
- dialing 2 channels at the sametimewithdifferentcaller ID number?
- Local Channel Call Looping
- dialing 2 channels atthesametimewithdifferentcaller ID number?
- dialing 2 channels at thesametimewithdifferentcaller ID number?
- dialing 2 channelsatthesametimewithdifferentcaller ID number?