[Home]

Summary:ASTERISK-06356: Local channels do not change to their connected sip trunk upon receiving Answer
Reporter:King (kho)Labels:
Date Opened:2006-02-18 07:51:31.000-0600Date Closed:2006-05-12 11:08:17
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_local
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I am using the VICIDIAL and is having a problem where the call originated
through the manager interface using a local channel does not masq back
to the connected sip trunk. Below is the CLI output:

 == Manager 'sendcron' logged on from 127.0.0.1
   -- Executing Dial("Local/91000@default-e99d,2", "SIP/91000@vicidial|55|o") in new stack
   -- Called 91000@vicidial
   -- SIP/vicidial-b518 answered Local/91000@default-e99d,2
      > Channel Local/91000@default-e99d,1 was answered.
   -- Executing AGI("Local/91000@default-e99d,1", "call_log.agi|8365") in new stack
   -- Launched AGI Script /var/lib/asterisk/agi-bin/call_log.agi
   -- AGI Script call_log.agi completed, returning 0
   -- Executing Wait("Local/91000@default-e99d,1", "1") in new stack
   -- Executing AGI("Local/91000@default-e99d,1", "agi-VDADtransfer.agi|8365") in new stack
   -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDADtransfer.agi
   -- AGI Script agi-VDADtransfer.agi completed, returning 0
   -- Executing AGI("Local/91000@default-e99d,1", "agi-VDADtransfer.agi|8365") in new stack
   -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDADtransfer.agi
   -- AGI Script agi-VDADtransfer.agi completed, returning 0
   -- Executing Hangup("Local/91000@default-e99d,1", "") in new stack
 == Spawn extension (default, 8365, 6) exited non-zero on 'Local/91000@default-e99d,1'
   -- Executing DeadAGI("Local/91000@default-e99d,1", "call_log.agi|h") in new stack
   -- Launched AGI Script /var/lib/asterisk/agi-bin/call_log.agi
   -- AGI Script call_log.agi completed, returning 0
 == Spawn extension (default, 91000, 1) exited non-zero on 'Local/91000@default-e99d,2'
   -- Executing DeadAGI("Local/91000@default-e99d,2", "call_log.agi|h") in new stack
   -- Launched AGI Script /var/lib/asterisk/agi-bin/call_log.agi
   -- AGI Script call_log.agi completed, returning 0
Comments:By: King (kho) 2006-02-18 08:07:44.000-0600

Under "Category" I have incorrectly selected "chan_agent" but could not find any way to change it back to "chan_local". Could someone with the "power" to fix the mislabel.

By: Joshua C. Colp (jcolp) 2006-03-22 19:04:35.000-0600

I'm mildly confused over this bug because I don't see another channel... so a native bridge can happen... can you explain it more perhaps?

By: King (kho) 2006-03-22 22:08:31.000-0600

The call is dial using the manager originate command where the channel is the local channel Local/91000@default and the context, exten, and priority parameters are "default", "8365", and "1", respectively. The dialplan is as follows:

[default]
exten => _9XXXX,1,Dial(SIP/${EXTEN}@${SIPtrunk},55,o)
exten => _9XXXX,n,Congestion

; VICIDIAL_auto_dialer transfer script:
exten => 8365,1,AGI(call_log.agi,${EXTEN})
exten => 8365,2,wait(1)
exten => 8365,3,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,4,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,5,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,6,Hangup

The problem is after the local channel dialed 91000 through SIP and connected, it remains as a local channel. Please note that I don't have "/n" specified with the local channel.

By: Nir Simionovich (atelis) 2006-04-11 16:03:11

Can you show the actual originate request? your report sounds very much like my report, only from a different angle

By: Serge Vecher (serge-v) 2006-05-04 10:37:59

where are we with this issue?

By: Serge Vecher (serge-v) 2006-05-12 11:08:17

if the problem still occurs in the latest 1.2 branch code (rev > 26000), please reopen the bug with updated debugging information.

thanks.