[asterisk-bugs] [Asterisk 0019310]: Crash when using PickupChan

Asterisk Bug Tracker noreply at bugs.digium.com
Tue May 17 17:09:40 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19310 
====================================================================== 
Reported By:                remiq
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   19310
Category:                   Applications/app_directed_pickup
Reproducibility:            sometimes
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.8 
SVN Revision (number only!): 315894 
Request Review:              
====================================================================== 
Date Submitted:             2011-05-17 14:33 CDT
Last Modified:              2011-05-17 17:09 CDT
====================================================================== 
Summary:                    Crash when using PickupChan
Description: 
Asterisk is crashing sometimes when using PickupChan application.  I
attached the backtrace and console messages before the crash.   
====================================================================== 

---------------------------------------------------------------------- 
 (0135071) lmadsen (administrator) - 2011-05-17 17:09
 https://issues.asterisk.org/view.php?id=19310#c135071 
---------------------------------------------------------------------- 
(06:04:44 PM) rmudgett: lmadsen, dvossel That crash is in Playback because
PickupChan has masqueraded the channel away.  The tech pointer is NULL.

(06:05:29 PM) dvossel: how is the sip_setoption function getting called on
a masqueraded channel

(06:06:16 PM) rmudgett: PickupChan returns zero so the dialplan keeps
executing.  The masquerade has been setup and happens while Playback is
setting up.

(06:06:43 PM) rmudgett: Thus Playback tries to playback a file on a
ZOMBIE.

(06:07:15 PM) dvossel: I thought ZOMBIES were hungup ?!

(06:07:16 PM) rmudgett: I think a quick fix might be to have PickupChan
return nonzero if the Pickup was successful.

(06:07:31 PM) rmudgett: ZOMBIES have not been destroyed yet.

(06:08:10 PM) dvossel: but if it gets hungup in pickupchan, then why does
it go to do the playback

(06:08:11 PM) rmudgett: Their guts have been extracted by the masquerade.
(06:08:30 PM) rmudgett: PicupChan returns zero not nonzero.
(06:09:12 PM) rmudgett: The main PBX execution loop does not check to see
if the channel is a ZOMBIE or setup for masquerade.
(06:09:21 PM) rmudgett: i think. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-17 17:09 lmadsen        Note Added: 0135071                          
======================================================================




More information about the asterisk-bugs mailing list