[asterisk-bugs] [Asterisk 0007706]: Redirecting Local channels to Meetme causes a crash when executing "core show channels"

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Sep 28 08:43:36 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=7706 
====================================================================== 
Reported By:                BigJimmy
Assigned To:                dwaynemh
====================================================================== 
Project:                    Asterisk
Issue ID:                   7706
Category:                   Channels/chan_local
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 59043 
Disclaimer on File?:        No 
Request Review:              
====================================================================== 
Date Submitted:             08-10-2006 14:42 CDT
Last Modified:              09-28-2007 08:43 CDT
====================================================================== 
Summary:                    Redirecting Local channels to Meetme causes a crash
when executing "core show channels"
Description: 
We have an Agent channel in a conversation with a local channel.  Using the
Redirect command from the manager, we take the local channel and send it to
a meetme app.  We then initate 2 calls with the Originate command which
adds the agent and the 3rd party to the conference.  We don't use the
ExtraChannel parameter of the Redirect command as we need to set different
options for the local channel.

Once the agent wishes to drop out of the call, they hit '*' to disconnect.
 They don't hear any hold music and the agent channel is no longer able to
receive calls.  Having a call sent to the agent causes asterisk to deadlock
almost completely.

This is reproducable in both versions 1.2.10 and trunk, however the debug
log is from trunk with DEBUG_CHANNEL_LOCKS, DEBUG_THREADS, DETECT_DEADLOCKS
and DONT_OPTIMIZE being set.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0009175 Segfault on transfers from an incoming ...
related to          0010636 Meetme with Redirect leaves channel aft...
related to          0010809 Asterisk segfaults after an attended tr...
====================================================================== 

---------------------------------------------------------------------- 
 BigJimmy - 09-28-07 08:43  
---------------------------------------------------------------------- 
I tried version 82309, but now when you redirect and Agent/ channel it
doesn't crash or deadlock, which is good, but you lose the agent channel.

Test scenario has an agent logged in on Zap/51 and a call on Zap/49
connected to Agent/1.  I redirect as below:

Action: Redirect
Channel: Agent/1
ExtraChannel: Zap/49-1
Exten: a555
Context: vericonf
Priority: 1

And I see this over the manager: (note the AgentLogoff event)

Response: Success
Message: Dual Redirect successful

Event: Unlink
Privilege: call,all
Channel1: Zap/49-1
Channel2: Agent/1
Uniqueid1: 1190987965.28
Uniqueid2: 1190987967.29
CallerID1: 200
CallerID2: 4001

Event: Hangup
Privilege: call,all
Channel: Agent/1
Uniqueid: 1190987967.29
Cause: 0
Cause-txt: Unknown

Event: Newexten
Privilege: call,all
Channel: Zap/49-1
Context: vericonf
Extension: a555
Priority: 1
Application: MeetMe
AppData: 555|dx
Uniqueid: 1190987965.28

Event: Newchannel
Privilege: call,all
Channel: Zap/pseudo-1466374569
State: Rsrvd
CallerIDNum: 200
CallerIDName: <unknown>
Uniqueid: 1190988034.30

Event: Agentlogoff
Privilege: agent,all
Agent: 1
Logintime: 71
Uniqueid: 1190987960.27

Event: Newexten
Privilege: call,all
Channel: Zap/51-1
Context: vericonf
Extension: a555
Priority: 1
Application: MeetMe
AppData: 555|dx
Uniqueid: 1190987960.27

Event: MeetmeJoin
Privilege: call,all
Channel: Zap/51-1
Uniqueid: 1190987960.27
Meetme: 555
Usernum: 2

Event: MeetmeJoin
Privilege: call,all
Channel: Zap/49-1
Uniqueid: 1190987965.28
Meetme: 555
Usernum: 1


If I do a single redirect with the agent channel (no ExtraChannel) I also
lose the Agent channel. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-28-07 08:43  BigJimmy       Note Added: 0071177                          
======================================================================




More information about the asterisk-bugs mailing list