[asterisk-bugs] [Asterisk 0018015]: Asterisk random crashed 4 times one day

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Oct 14 07:00:09 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18015 
====================================================================== 
Reported By:                knkcn
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18015
Category:                   Core/Channels
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.8.0-beta5 
JIRA:                       SWP-2322 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-09-18 06:27 CDT
Last Modified:              2010-10-14 06:59 CDT
====================================================================== 
Summary:                    Asterisk random crashed 4 times one day
Description: 
It is difficult to reproduce the random crashs. But from the CEL events and
crash core time we can guess the crash scenes.

The 1st and 2nd crash occured when a queue finished. These crashs seems
have relationship with CDR. After I set the cdr enabled=no the crash
doesn't occur again.

The 3rd crash occured when a dial-out channel started. The 4th crash is
similar with the 3rd, but the crash core generation time is 10 seconds late
to the channel start event. I guess it occured when the channel was
answered. 
====================================================================== 

---------------------------------------------------------------------- 
 (0128012) knkcn (reporter) - 2010-10-14 06:59
 https://issues.asterisk.org/view.php?id=18015#c128012 
---------------------------------------------------------------------- 
I think all the issues have been resolved by asterisk-1.8.0rc2. After * was
upgrate to rc2, I got a "You can not bridge a Local channel to itself!"
error. Then I modified the dialplan. 

The original dialplan :
[callin]
...
same => n,Set(__INCH=${CHANNEL})
...
same => n,Queue(sysagent,t,,,${QST}) ;sysagent member likes
Local/csy013901234567 at sysagent
...
[sysagent]
exten => _csy.,1,Set(_SACHAN=${CHANNEL})
same => n,Dial(SIP/outbound/${EXTEN:3},${QAT},G(sysagent^LO^1))

exten => _L.,1,Goto(${DIALEDPEERNUMBER},sacalling)
same => n,Goto(${DIALEDPEERNUMBER},sacalled)

exten => _o.,1,NOOP(${EXTEN})
same => n(sacalling),Answer()
same => n,Playback(/home/51766/sounds/sys_service)
same => n,Musiconhold()
same => n,Hangup()
same => n(sacalled),CELGenUserEvent(Answer)
same => n,Playback(/home/51766/sounds/call_sa_cause${CSYC})
same =>
n,MixMonitor(/home/51766/tmpfswav/${CDAT}/${INCI}${CHANNEL:4}.wav,b,/home/51766/bin/mv.sh
^{MIXMONITOR_FILENAME})   
same => n,Set(AUDIOHOOK_INHERIT(MixMonitor)=yes)
same => n,SIPDtmfMode(inband)
same => n,CELGenUserEvent(BridgeStart)
same => n,Bridge(${SACHAN})

The modified lines are:
same => n,Queue(sysagent,t,,,${QST}) -> same =>
n,Queue(sysagent,,,,${QST})
same => n,Bridge(${SACHAN}) -> same => n,Bridge(${INCH},T)

Now it works well!

BTW. I use local channel and Dial application with G option to realize
playback sounds file to caller and callee at the same time. Is there any
better way to do it? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-10-14 07:00 knkcn          Note Added: 0128012                          
======================================================================




More information about the asterisk-bugs mailing list