[asterisk-bugs] [Asterisk 0013431]: Crash in ast_cdr_start() when Local channel is involved

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Sep 5 22:52:34 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13431 
====================================================================== 
Reported By:                mdu113
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13431
Category:                   CDR/General
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 141156 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-09-05 11:40 CDT
Last Modified:              2008-09-05 22:52 CDT
====================================================================== 
Summary:                    Crash in ast_cdr_start() when Local channel is
involved
Description: 
Scenario: a SIP call arrives and get split into several branches using
Local channel. A callee in one of the branch answers the call and then
hangs up. Asterisk crashes at point when callee hangs up and gdb suggests
(AFAIU) that crash happened while in the ast_cdr_start().
This happens only if hangup initiated by callee. If hangup initiated by
caller then everything's fine.

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0013364 CDRs produced on blind transfer are inc...
====================================================================== 

---------------------------------------------------------------------- 
 (0092130) jpeeler (administrator) - 2008-09-05 22:52
 http://bugs.digium.com/view.php?id=13431#c92130 
---------------------------------------------------------------------- 
This can be duplicated without dialing multiple local channels. It looks
like the scenario goes like this:

exten => 17189282005,1,Dial(Local/111 at fork-xyz)

SIP/poly_650_01 calls extension 17189282005.

(chan, peer  chan, peer)
SIP/poly_650_01 <-> Local/111 at fork-xyz-94a6,1 <->
Local/111 at fork-xyz-94a6,2 <-> SIP/xyz011101

The two local channels are hung up leaving:
SIP/poly_650_01 <-> SIP/xyz011101

I haven't looked much closer, but the orig_chan_cdr in ast_bridge_call
looks very suspect. One of the peers is definitely not valid since it was
one of the local channels. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-05 22:52 jpeeler        Note Added: 0092130                          
======================================================================




More information about the asterisk-bugs mailing list