[Asterisk-Users] dialing 2 channels at the same timewithdifferentcaller ID number?

Damon Estep damon at suburbanbroadband.net
Mon Jan 30 23:48:27 MST 2006



> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at 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 at alternate1/n") in
new stack
    -- Called 7205551212 at alternate1/n

THIS "exten => _NXXNXXXXXX,1,macro(alternate-number|${CALLEDNUM})"
RESULTS IN THIS "-- Executing
Macro("Local/7205551212 at 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?





More information about the asterisk-users mailing list