Bug 152700 - [patch] net/asterisk using 100% cpu with .call files
Summary: [patch] net/asterisk using 100% cpu with .call files
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-30 08:50 UTC by Alexander Brovikov
Modified: 2010-11-30 17:10 UTC (History)
0 users

See Also:


Attachments
asterisk.diff (7.30 KB, patch)
2010-11-30 10:37 UTC, Florian Smeets
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Brovikov 2010-11-30 08:50:09 UTC
When I try to initiate a call using .call-file, asterisk start eating 100% cpu.

Fix: 

I googled for solution and find bug @ digium:
https://bugs.digium.com/view.php?id=18089

This patch from there fixed my problem:
https://bugs.digium.com/file_download.php?file_id=27546&type=bug
How-To-Repeat: Initiate a call with call-file.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-11-30 08:50:12 UTC
Maintainer of net/asterisk,

Please note that PR ports/152700 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/152700

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2010-11-30 08:50:14 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Florian Smeets 2010-11-30 10:37:43 UTC
Hi Max,

can you please commit the attached patch to net/asterisk as a workaround
to digium bug 18089. This will be in 1.8.1.

Thanks,
Florian

-- 
Florian Smeets
Comment 4 fjoe 2010-11-30 15:55:20 UTC
Florian,

On Tue, Nov 30, 2010 at 4:37 PM, Florian Smeets <flo@smeets.im> wrote:


> can you please commit the attached patch to net/asterisk as a workaround
> to digium bug 18089. This will be in 1.8.1.
>

Are you sure that the reference to Digium bug id is correct?
https://issues.asterisk.org/view.php?id=18089

Max
Comment 5 Florian Smeets 2010-11-30 16:05:30 UTC
On 30.11.10 16:55, Max Khon wrote:
> Florian,
> 
> On Tue, Nov 30, 2010 at 4:37 PM, Florian Smeets <flo@smeets.im> wrote:
> 
> 
>> can you please commit the attached patch to net/asterisk as a workaround
>> to digium bug 18089. This will be in 1.8.1.
>>
> 
> Are you sure that the reference to Digium bug id is correct?
> https://issues.asterisk.org/view.php?id=18089
> 

The patch is the one attached to that bug id, and Alexander said the
patch fixes his problem. He also mentioned it in his original message.

So i guess, yes.

However for me it would be OK to just wait for 1.8.1.

Cheers,
Florian
-- 
Florian Smeets
Comment 6 Alexander Brovikov 2010-11-30 16:38:09 UTC
Yes, with this patch all works ok for me.
While inotify is linux-only lib, apparently, at some point in time
call-file mechanism was broken (there were several bugs related) and
fixed (finally?) with this patch.
Comment 7 Max Khon freebsd_committer freebsd_triage 2010-11-30 17:06:11 UTC
State Changed
From-To: feedback->closed

Committed, thanks!
Comment 8 dfilter service freebsd_committer freebsd_triage 2010-11-30 17:06:48 UTC
fjoe        2010-11-30 17:06:42 UTC

  FreeBSD ports repository

  Modified files:
    net/asterisk         Makefile 
  Added files:
    net/asterisk/files   patch-pbx__pbx_spool.c 
  Log:
  Fix 100% CPU use with .call files
  (upstream issue https://issues.asterisk.org/view.php?id=18089)
  
  The patch will be included in asterisk 1.8.1.
  
  PR:             152700
  Submitted by:   Florian Smeets (MAINTAINER)
  
  Revision  Changes    Path
  1.132     +1 -0      ports/net/asterisk/Makefile
  1.1       +240 -0    ports/net/asterisk/files/patch-pbx__pbx_spool.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"