On Thu, 2006-03-23 at 19:25 +0100, Henning Holtschneider wrote:
> Hello everybody,
> 
> I've got Asterisk 1.2.4 running with two Junghanns QuadBRI cards using the 
> qozap driver from bristuff 0.3.0-PRE-1l. One of the cards is running in TE 
> mode, the other one in NT mode.
> 
> Whenever I call into an empty MeetMe conference room on one of the NT ports 
> or 
> via SIP and hang up the call during the "you are currently the only 
> participant in this conference" greeting, the Asterisk server freezes. I can 
> still ping the machine, but all userspace processes, system logging, kernel 
> logging etc. are hung. The machine takes about 15 minutes to recover from 
> this state. At that point, the system load has risen to about 15-20.
> 
> If I call into the server on one of the TE ports while the system is frozen, 
> it instantly un-freezes and resumes normal operation.
> 
> Does anyone else experience the same problem?

A test showed the same behavior at our Asterisk server. Some debugging
revealed that a tight loop in app_meetme.c:conf_flush() consumes the
whole CPU power (HANGUP/NULL frames are not handled correctly while
discarding frames of the channel). I've attached a very small patch
(just 2 lines added) that fixes this. The same bug is still present in
Asterisk 1.2.5

Regards,
        Mike
-- 
Dr. Michael Neuhauser                phone: +43 1 789 08 49 - 30
Firmix Software GmbH                   fax: +43 1 789 08 49 - 55
Vienna/Austria/Europe                      email: [EMAIL PROTECTED]
Embedded Linux Development and Services    http://www.firmix.at/
--- ../../bristuff-0.3.0-PRE-1k-orig/asterisk-1.2.4/apps/app_meetme.c	2006-02-03 17:53:19.000000000 +0100
+++ apps/app_meetme.c	2006-03-23 20:53:27.000000000 +0100
@@ -736,8 +736,10 @@ static void conf_flush(int fd, struct as
 		while (ast_waitfor(chan, 1)) {
 			f = ast_read(chan);
 			if (f)
 				ast_frfree(f);
+			else	/* channel was hung up */
+				break;
 		}
 	}
 
 	/* flush any data sitting in the pseudo channel */
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to