[asterisk-bugs] [Asterisk 0011696]: Asterisk hanging whole system on certain configuration

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Jan 7 13:45:30 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11696 
====================================================================== 
Reported By:                dmartin
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   11696
Category:                   Core-General
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.16.2 
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             01-06-2008 13:18 CST
Last Modified:              01-07-2008 13:45 CST
====================================================================== 
Summary:                    Asterisk hanging whole system on certain
configuration
Description: 
Hi,

I'm using Asterisk 1.4.16.2 from Debian (Sid) on a Sparc machine.

With this configuration, taken from extensions.conf, the whole system
stops responding at all but ICMP pings (no ssh, telnet, nor serial console,
and can't look for any debug).

---------------
[services]
exten => 298,1,Ringing
exten => 298,2,Wait(8)
exten => 298,3,Answer
exten =>
298,4,Monitor(wav,/pool/exports/recv/sw-${CALLERID(num)}-${EPOCH})
exten => 298,5,Playback(/var/lib/asterisk/sounds/custom/sn)
exten => 298,6,Hangup

exten => 55610,1,Dial(Local/298,90,tr)
---------------

If I call 55610, the system hangs. If I call 298, it doesn't hang. If I
comment the line Monitor(...) from 298 definition, the system doesn't hang
either. In all cases when the system doesn't call, the extension works
fine.

If I change the extension 55610 to:

exten => 55610,1,Goto(services,298,1)

It works without a flaw, and no hangs.

Maybe it's a thing of Local/* ? Or the Monitor() application ? Or the
${CALLERID(num)} usage on a mix of these ? That's why I clasiffied bug on
General.

I'm sure that if I apply limits to the proccess (ie, limit cpu time or
proccesses), then the kernel would kill  Asterisk and come back to a usable
state, but I won't do it for this report since the only fact that Asterisk
hang a system should be sufficient to report this.

====================================================================== 

---------------------------------------------------------------------- 
 tzafrir - 01-07-08 13:45  
---------------------------------------------------------------------- 
Issues with the Debian packages should be reported to the Debian Bug
Tracking System. Please use:  reportbug asterisk

However in your case it apears to be some sort of dialplan loop. Unless
you really mean that Asterisk crashes (and doesn't simply get into a
loop).

This is simple to test: 

1. disable -p as shown above. Verify that by running 'ps ax | grep
asterisk' and check that the option -p is not used.

2. Run asterisk -rvvv

3. Start your test. You should see a trace of the dialplan that Asterisk
goes through.

4. If you rem-out the 'monitor' line, you will also not proceed to
Playback and Hangup. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-07-08 13:45  tzafrir        Note Added: 0076440                          
======================================================================




More information about the asterisk-bugs mailing list