[asterisk-bugs] [Asterisk 0014309]: [patch] SIP/realtime problems => 100 % CPU
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Sep 29 17:30:45 CDT 2009
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=14309
======================================================================
Reported By: pkempgen
Assigned To: tilghman
======================================================================
Project: Asterisk
Issue ID: 14309
Category: Channels/chan_sip/General
Reproducibility: always
Severity: major
Priority: normal
Status: closed
Target Version: 1.4.27
Asterisk Version: SVN
JIRA:
Regression: Yes
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2009-01-22 07:50 CST
Last Modified: 2009-09-29 17:30 CDT
======================================================================
Summary: [patch] SIP/realtime problems => 100 % CPU
Description:
As reported on
http://lists.digium.com/pipermail/asterisk-users/2009-January/225274.html
:
> Carlos Chavez schrieb:
>> Since 1.4.22 realtime status for sip peers seems to be broken. If I
do
>> a "sip show peers" from the CLI I get this:
>>
>> 2001/2001 192.168.2.234 D 5060
UNKNOWN
>> Cached RT
>>
>> It is arbitrary which peers will say OK and which will say UNKNOWN
and
>> it changes over time.
>
>> This used to work fine until 1.4.21
>> so why did it break and why wasn't it fixed on 1.4.23? This only
>> happens when using realtime peers, static peers will always show the
>> proper status.
>
> It might be related to this issue (thread in German)
>
http://www.mail-archive.com/gemeinschaft-users@lists.amooma.de/msg00083.html
>
http://www.mail-archive.com/gemeinschaft-users@lists.amooma.de/msg00152.html
>
http://www.mail-archive.com/gemeinschaft-users@lists.amooma.de/msg00153.html
> etc.
>
> Several people, including me, have confirmed that since Asterisk
> 1.4.22 you get hundreds (probably depends on the number of SIP
> peers/users) of SQL queries per second and the CLI is being flooded
> with
> ---cut---
> [Oct 8 12:22:56] NOTICE[2487]: chan_sip.c:16223 sip_poke_noanswer:
Peer
> '8280' is now UNREACHABLE! Last qualify: 0
> ---cut---
> leading to 100 % CPU usage.
>
> 1.4.21.2 didn't have the problem.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0004362 [patch] new config option 'rtautoreg'
related to 0012921 Asterisk 1.4.21 breaks realtime sip on ...
related to 0015950 Options flood to sip user, after adding...
======================================================================
----------------------------------------------------------------------
(0111563) svnbot (reporter) - 2009-09-29 17:30
https://issues.asterisk.org/view.php?id=14309#c111563
----------------------------------------------------------------------
Repository: asterisk
Revision: 221027
_U branches/1.6.2/
U branches/1.6.2/channels/chan_sip.c
------------------------------------------------------------------------
r221027 | tilghman | 2009-09-29 17:30:42 -0500 (Tue, 29 Sep 2009) | 23
lines
Merged revisions 220906 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r220906 | tilghman | 2009-09-29 14:57:37 -0500 (Tue, 29 Sep 2009) | 16
lines
Merged revisions 220873 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r220873 | tilghman | 2009-09-29 12:59:26 -0500 (Tue, 29 Sep 2009) | 9
lines
Reduce CPU usage related to building a peer merely for devicestates.
This fixes a 100% CPU problem in the SIP driver, found by profiling
the driver while the problem was occurring.
(closes issue https://issues.asterisk.org/view.php?id=14309)
Reported by: pkempgen
Patches:
20090924__issue14309.diff.txt uploaded by tilghman (license 14)
Tested by: pkempgen, vrban
........
................
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=221027
Issue History
Date Modified Username Field Change
======================================================================
2009-09-29 17:30 svnbot Checkin
2009-09-29 17:30 svnbot Note Added: 0111563
======================================================================
More information about the asterisk-bugs
mailing list