[asterisk-bugs] [Asterisk 0016158]: High CPU usage, choppy sound

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Nov 18 11:10:09 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16158 
====================================================================== 
Reported By:                mustardman
Assigned To:                lmadsen
====================================================================== 
Project:                    Asterisk
Issue ID:                   16158
Category:                   Channels/chan_sip/General
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.1.9 
JIRA:                       SWP-382 
Regression:                 Yes 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-30 19:45 CDT
Last Modified:              2009-11-18 11:10 CST
====================================================================== 
Summary:                    High CPU usage, choppy sound
Description: 
After upgrading from Asterisk 1.6.1.6 to 1.6.1.8 I seem to have a random
problem with high CPU usage.  When making a SIP to SIP call or SIP to
System call Asterisk process CPU usage goes much higher than normal and the
sound get's choppy.  This is somewhat random but occurs fairly regularly,
maybe 50% of the time.

If it happens it happens as soon as a call is answered.  CPU usage
sometimes stays high for minutes and will suddenly go low even though I
didn't do anything.  More often than not it only stays high for a short
period of time and then goes back to normal.

I am running 64bit CentOS 5.4.  Log files and Asterisk CLI -vvvvvvvvvvr
look clean.  

Not sure if this is useful but I will attached a gdb.txt file taken while
it is happening
====================================================================== 

---------------------------------------------------------------------- 
 (0113940) lmadsen (administrator) - 2009-11-18 11:10
 https://issues.asterisk.org/view.php?id=16158#c113940 
---------------------------------------------------------------------- 
Hmmm... well it works as advertised, but I expected REPLACE() to replace a
string with another string.

i.e. I could replace 'abc' with 'ABC'.

Here is the output for REPLACE() in some tests (working as expected)

- Executing [100 at phones:2] Set("SIP/0004f2040001-00000000",
"originalVariable=123abc789xyzHELLO") in new stack
    -- Executing [100 at phones:3] NoOp("SIP/0004f2040001-00000000",
"Standard test on numbers: Get '444abc789xyzHELLO'") in new stack
    -- Executing [100 at phones:4] NoOp("SIP/0004f2040001-00000000",
"Standard test on string: Get '123yyy789xyzHELLO'") in new stack
    -- Executing [100 at phones:5] NoOp("SIP/0004f2040001-00000000", "String
replace: Get '123abc789xyzhhhhh'") in new stack
    -- Executing [100 at phones:6] NoOp("SIP/0004f2040001-00000000", "Case
match: Get '123abc789xyzHELLO'") in new stack
    -- Executing [100 at phones:7] NoOp("SIP/0004f2040001-00000000", "Case
replace: Get '123Abc789xyzHELLO'") in new stack 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-18 11:10 lmadsen        Note Added: 0113940                          
======================================================================




More information about the asterisk-bugs mailing list