[Home]

Summary:ASTERISK-16217: [patch] [regression] Constantly heard "beep" on PC speaker and Asterisk use maybe 10 time more CPU when CONSOLE=yes
Reporter:Joel Vandal (jvandal)Labels:
Date Opened:2010-06-06 01:56:38Date Closed:2010-06-29 01:53:43
Priority:BlockerRegression?Yes
Status:Closed/CompleteComponents:General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20100610__issue17477.diff.txt
( 1) fxs-to-fxs-video.3gp
( 2) mixmonitored.wav
Description:Using CentOS 5.x and since Asterisk 1.4.32, I constantly heard a "beep" on Server speaker each time a line is displayed on the Asterisk CLI. Asterisk process also use between 30 and 40% CPU with only 5 calls.

If I set CONSOLE=no on safe_asterisk, I no more heard the "beep" and CPU usage of Asterisk drop to 5-8%.

Now Asterisk no more sends the -c option to Asterisk and all now work as expected.
Comments:By: SplatNIX (uxbod) 2010-06-07 11:23:21

I can confirm that under Asterisk 1.6.2.9-rc1 I also receive the beeps every time a line appear on the console.

By: David Brillert (aragon) 2010-06-07 15:58:56

I know severity is minor but would this not be considered as a regression?
Especially since this breaks console logging to keep CPU load under control and can effect usability...

By: Paul Belanger (pabelanger) 2010-06-08 08:25:07

I would consider this a regression, if a previous version of Asterisk did not do this.  Do you know the last version of Asterisk this did work on?

By: SplatNIX (uxbod) 2010-06-08 08:27:17

Asterisk 1.6.2.8 did not exhibit this issue.

By: Leif Madsen (lmadsen) 2010-06-09 10:33:18

Marked as a regression.

Can anyone try doing some regression testing to see what could have caused this to happen?

By: Leif Madsen (lmadsen) 2010-06-09 10:45:04

Updated this to be a blocker for 1.6.2.9.

By: David Brillert (aragon) 2010-06-09 10:46:40

Originally reported on 1.4
I just tested today's SVN and the problem is there.
Testing older revisions now to see if I can locate the bad commit.

By: David Brillert (aragon) 2010-06-09 11:55:38

I don't think this is related to ASTERISK-15936/r266585
I just tested r266580 and it beeps too.
Working my way down the ladder now.

By: Anton Raharja (antonrd) 2010-06-09 12:27:53

mixmonitored.wav is a wav file from mixmonitor() between 2 fxs and fxs-to-fxs-video.3gp is a video taken from cellphone on the phone connected to an fxs port and dialed another phone

tested with 1.4.26.2, 1.4.30, 1.4.31 and 1.4.32 with CONSOLE=no on safe_asterisk, ubuntu 9.04

only happened on 1.4.32

is this the "beep" we're talking about ?

By: Tilghman Lesher (tilghman) 2010-06-09 12:28:51

aragon:  That was the suspicion of the other developers (and the reason Leif assigned this to me), but I also confirm that that issue is not the cause.  I suspect this is not a regression, but has been around for a long time, and we've all managed to ignore it until now.

By: Tilghman Lesher (tilghman) 2010-06-09 12:29:49

antonrd: this is a beep at the console, not a beep that occurs within a call.

By: David Brillert (aragon) 2010-06-09 15:07:39

The bad commit is r266142

By: Digium Subversion (svnbot) 2010-06-10 02:52:34

Repository: asterisk
Revision: 269635

U   branches/1.4/main/asterisk.c
U   branches/1.4/main/logger.c

------------------------------------------------------------------------
r269635 | tilghman | 2010-06-10 02:52:34 -0500 (Thu, 10 Jun 2010) | 9 lines

Ensure signals are not blocked inside other signal handlers.

This eliminates the annoying <beep> on the console.

(closes issue ASTERISK-16217)
Reported by: jvandal
Patches:
      20100610__issue17477.diff.txt uploaded by tilghman (license 14)

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

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

By: Digium Subversion (svnbot) 2010-06-10 03:15:45

Repository: asterisk
Revision: 269636

_U  trunk/
U   trunk/main/asterisk.c
U   trunk/main/logger.c
U   trunk/utils/extconf.c

------------------------------------------------------------------------
r269636 | tilghman | 2010-06-10 03:15:44 -0500 (Thu, 10 Jun 2010) | 16 lines

Merged revisions 269635 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
 r269635 | tilghman | 2010-06-10 02:52:34 -0500 (Thu, 10 Jun 2010) | 9 lines
 
 Ensure signals are not blocked inside other signal handlers.
 
 This eliminates the annoying <beep> on the console.
 
 (closes issue ASTERISK-16217)
  Reported by: jvandal
  Patches:
        20100610__issue17477.diff.txt uploaded by tilghman (license 14)
........

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

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

By: Digium Subversion (svnbot) 2010-06-10 03:16:44

Repository: asterisk
Revision: 269637

_U  branches/1.6.2/
U   branches/1.6.2/main/asterisk.c
U   branches/1.6.2/main/logger.c
U   branches/1.6.2/utils/extconf.c

------------------------------------------------------------------------
r269637 | tilghman | 2010-06-10 03:16:43 -0500 (Thu, 10 Jun 2010) | 23 lines

Merged revisions 269636 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
 r269636 | tilghman | 2010-06-10 03:15:45 -0500 (Thu, 10 Jun 2010) | 16 lines
 
 Merged revisions 269635 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4
 
 ........
   r269635 | tilghman | 2010-06-10 02:52:34 -0500 (Thu, 10 Jun 2010) | 9 lines
   
   Ensure signals are not blocked inside other signal handlers.
   
   This eliminates the annoying <beep> on the console.
   
   (closes issue ASTERISK-16217)
    Reported by: jvandal
    Patches:
          20100610__issue17477.diff.txt uploaded by tilghman (license 14)
 ........
................

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

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

By: Digium Subversion (svnbot) 2010-06-29 01:52:08

Repository: asterisk
Revision: 269636

_U  trunk/
U   trunk/main/asterisk.c
U   trunk/main/logger.c
U   trunk/utils/extconf.c

------------------------------------------------------------------------
r269636 | tilghman | 2010-06-10 03:15:45 -0500 (Thu, 10 Jun 2010) | 16 lines

Merged revisions 269635 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
 r269635 | tilghman | 2010-06-10 02:52:34 -0500 (Thu, 10 Jun 2010) | 9 lines
 
 Ensure restartable system calls can restart (BSD signal semantics).
 
 This eliminates the annoying <beep> on the console.
 
 (closes issue ASTERISK-16217)
  Reported by: jvandal
  Patches:
        20100610__issue17477.diff.txt uploaded by tilghman (license 14)
........

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

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

By: Digium Subversion (svnbot) 2010-06-29 01:52:51

Repository: asterisk
Revision: 269635

U   branches/1.4/main/asterisk.c
U   branches/1.4/main/logger.c

------------------------------------------------------------------------
r269635 | tilghman | 2010-06-10 02:52:34 -0500 (Thu, 10 Jun 2010) | 9 lines

Ensure restartable system calls can restart (BSD signal semantics)

This eliminates the annoying <beep> on the console.

(closes issue ASTERISK-16217)
Reported by: jvandal
Patches:
      20100610__issue17477.diff.txt uploaded by tilghman (license 14)

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

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

By: Digium Subversion (svnbot) 2010-06-29 01:53:41

Repository: asterisk
Revision: 269637

_U  branches/1.6.2/
U   branches/1.6.2/main/asterisk.c
U   branches/1.6.2/main/logger.c
U   branches/1.6.2/utils/extconf.c

------------------------------------------------------------------------
r269637 | tilghman | 2010-06-10 03:16:44 -0500 (Thu, 10 Jun 2010) | 23 lines

Merged revisions 269636 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
 r269636 | tilghman | 2010-06-10 03:15:45 -0500 (Thu, 10 Jun 2010) | 16 lines
 
 Merged revisions 269635 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4
 
 ........
   r269635 | tilghman | 2010-06-10 02:52:34 -0500 (Thu, 10 Jun 2010) | 9 lines
   
   Ensure restartable system calls can restart (BSD signal semantics)
   
   This eliminates the annoying <beep> on the console.
   
   (closes issue ASTERISK-16217)
    Reported by: jvandal
    Patches:
          20100610__issue17477.diff.txt uploaded by tilghman (license 14)
 ........
................

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

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