Hi,

  Ok, here is the scenario. I have a script that makes a call to user A (over a 
trunk SIP or ZAP), if user A press 1, he is connected to user B (via a Dial
command). User B can then press *1 to transfer the user A to a conference room 
(applicationmap). When user B press the *1, the applicationmap does it's trick
and fires-up the following context:

        [macro-first-leg]
        exten => s,1,Set(MYCONF=${DB(TEST/CONFCOUNT)})
        exten => s,n,Set(DYNAMIC_FEATURES=nway-start#nway-2start)
        exten => s,n,Set(DB(TEST/CONFCOUNT)=$[${MYCONF}+1])
        exten => s,n,Playback(conf-youareinconfnum)
        exten => s,n,SayDigits(${MYCONF}
        exten => s,n,NoOp(Channel = ${CHANNEL})
        exten => s,n,NoOp(BRIDGEPEER = ${BRIDGEPEER})
        exten => s,n,ChannelRedirect(${BRIDGEPEER},goto-conference,${MYCONF},1)
        exten => s,n,Hangup()

  Now for some reason, when the ChannelRedirect is executed, I have the 
following in the full log:

        [Mar  9 21:44:18] VERBOSE[1260] logger.c:     -- Executing [EMAIL PROTECTED]:6] 
NoOp("SIP/300-086d2a20", "Channel = SIP/300-086d2a20") in new stack
        [Mar  9 21:44:18] DEBUG[1260] app_macro.c: Executed application: NoOp
        [Mar  9 21:44:18] DEBUG[1260] pbx.c: Launching 'NoOp'
        [Mar  9 21:44:18] VERBOSE[1260] logger.c:     -- Executing [EMAIL PROTECTED]:7] 
NoOp("SIP/300-086d2a20", "BRIDGEPEER = SIP/swiftvox3-08703f90") in new stack
        [Mar  9 21:44:18] DEBUG[1260] app_macro.c: Executed application: NoOp
        [Mar  9 21:44:18] DEBUG[1260] pbx.c: Launching 'ChannelRedirect'
        [Mar  9 21:44:18] VERBOSE[1260] logger.c:     -- Executing [EMAIL PROTECTED]:8] 
ChannelRedirect("SIP/300-086d2a20",
"SIP/swiftvox3-08703f90|goto-conference|16|1") in new stack
        [Mar  9 21:44:18] DEBUG[1260] app_channelredirect.c: Attempting async 
goto (SIP/swiftvox3-08703f90) to goto-conference|16|1
        [Mar  9 21:44:18] DEBUG[1260] channel.c: Soft-Hanging up channel 
'SIP/swiftvox3-08703f90'
        [Mar  9 21:44:18] DEBUG[1260] app_macro.c: Executed application: 
ChannelRedirect
        [Mar  9 21:44:18] DEBUG[1260] pbx.c: Launching 'Hangup'
        [Mar  9 21:44:18] VERBOSE[1260] logger.c:     -- Executing [EMAIL PROTECTED]:9] 
Hangup("SIP/300-086d2a20", "") in new stack
        [Mar  9 21:44:18] DEBUG[1260] app_macro.c: Spawn extension 
(macro-first-leg,s,9) exited non-zero on 'SIP/300-086d2a20' in macro 'first-leg'
        [Mar  9 21:44:18] DEBUG[1260] channel.c: Hanging up channel 
'SIP/300-086d2a20'

  And User B is disconnected... The goto-conference context is the following:

        [goto-conference]
        exten => _X,1,Answer()
        exten => _X,n,MeetMe(${EXTEN},d)
        exten => _X,n,Hangup()
        exten => _XX,1,Answer()
        exten => _XX,n,MeetMe(${EXTEN},d)
        exten => _XX,n,Hangup()
        exten => _XXX,1,Answer()
        exten => _XXX,n,MeetMe(${EXTEN},d)
        exten => _XXX,n,Hangup()

  In the above log:
        User A is SIP/300
        User B is channel SIP/swiftvox3-08703f90 which was a call over a SIP 
trunk placed by a call file

  The log above is will full core debug output. Don't know how to troubleshoot 
this one. Any ideas?

  Strange, before pressing send I did some more tests and ${CHANNEL} and 
${BRIDGEPEER} is not constant. Tried doing a GotoIf to make sure I feed always 
the
trunk side to ChannelRedirect bu no mater was ChannelRedirect either hangup or 
transfer User A to the goto-conference context. Now I'mmore troubled than 
ever...

  Any hints or suggestions welcome.

Andre

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to