[asterisk-bugs] [Asterisk 0018130]: [regression] DTMF on agent channel causes high CPU

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jan 12 12:10:44 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18130 
====================================================================== 
Reported By:                rgj
Assigned To:                jpeeler
====================================================================== 
Project:                    Asterisk
Issue ID:                   18130
Category:                   General
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     acknowledged
Target Version:             1.4.40
Asterisk Version:           SVN 
JIRA:                       SWP-2368 
Regression:                 Yes 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-10-13 06:34 CDT
Last Modified:              2011-01-12 12:10 CST
====================================================================== 
Summary:                    [regression] DTMF on agent channel causes high CPU
Description: 
We've recently updated Asterisk to the latest 1.4 version. 
Since then, pressing a DTMF key on an agent channel causes CPU load on a
specific thread to rise with about 10%. Every time a DMTF key is pressed
the CPU load goes up - and it never goes back down again until the agent
logs out.

This results in our entire server going to 0% idle within 20 key presses.

Is there a way to disable DMTF while this bug is being solved so we can at
least make it through?
====================================================================== 

---------------------------------------------------------------------- 
 (0130421) svnbot (reporter) - 2011-01-12 12:10
 https://issues.asterisk.org/view.php?id=18130#c130421 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 301502

U   branches/1.4/main/channel.c

------------------------------------------------------------------------
r301502 | jpeeler | 2011-01-12 12:10:43 -0600 (Wed, 12 Jan 2011) | 12
lines

Fix CPU spike when pressing DTMF after agent login.

The problem here is that DTMF was being continuously deferred and requeued
since ast_safe_sleep is called in a loop. There are serveral other places
in the
code that sleeps and then loops in a similar fashion. Because of this fact
I
opted to not defer DTMF any more, which will not affect the original fix:

https://reviewboard.asterisk.org/r/674

(closes issue https://issues.asterisk.org/view.php?id=18130)
Reported by: rgj

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=301502 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-12 12:10 svnbot         Note Added: 0130421                          
======================================================================




More information about the asterisk-bugs mailing list