Summary:ASTERISK-15273: Asterisk lockup when caller hangs up in StartMusicOnHold()
Reporter:Alistair Cunningham (acunningham)Labels:
Date Opened:2009-12-03 18:06:27.000-0600Date Closed:2009-12-08 12:35:20.000-0600
Versions:Frequency of
Description:A call comes in to an AGI. That AGI does:

EXEC StartMusicOnHold "default"

then the caller hangs up. Asterisk leaves the channel up, even though it has replied "200 OK" to the calling SIP device. Then if you immediately do a "/etc/init.d/asterisk stop", you get:

Asterisk ended with exit status 137
Asterisk exited on signal 9.

If you leave the call to RTP timeout, Asterisk eventually kills the channel and returns to normal.
Comments:By: Alistair Cunningham (acunningham) 2009-12-03 18:26:29.000-0600

The same happens on

By: Alistair Cunningham (acunningham) 2009-12-03 20:06:37.000-0600

Downgraded to and the problem goes away. There's definitely a regression from 1.4 to 1.6 here. I'll try to create a simple sample AGI script to allow this to be easily reproduced.

By: Leif Madsen (lmadsen) 2009-12-04 08:27:22.000-0600

I think this may be a duplicate of issue ASTERISK-15271 but I'm just going to mark it as related for now.

By: Digium Subversion (svnbot) 2009-12-08 12:35:19.000-0600

Repository: asterisk
Revision: 233718

U   trunk/res/res_musiconhold.c

r233718 | tilghman | 2009-12-08 12:22:44 -0600 (Tue, 08 Dec 2009) | 8 lines

Find another ref leak and change how we manage module references.
(closes issue ASTERISK-15271, closes issue ASTERISK-15170, closes issue ASTERISK-15273)
Reported by: parisioa
      20091208__issue16388.diff.txt uploaded by tilghman (license 14)
Tested by: parisioa, tilghman
Review: https://reviewboard.asterisk.org/r/442/