[asterisk-bugs] [Asterisk 0016084]: Asterisk MOH playing old audio for first 30 to 60 seconds

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Oct 18 13:27:30 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16084 
====================================================================== 
Reported By:                happywebuser123
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16084
Category:                   Applications/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           Older 1.4 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-15 23:17 CDT
Last Modified:              2009-10-18 13:27 CDT
====================================================================== 
Summary:                    Asterisk MOH playing old audio for first 30 to 60
seconds
Description: 
Calling all members of the asterisk community,

I am posting about an old issue that has been reported many places and
times online, To my amazement, there has yet to be anyone that has reported
any solutions to the following problem.

"Initially when putting callers on hold, it plays between 30 and 60
seconds of old audio that was on the stream in the past. Then after
that 30-60 seconds, it does a hard cut into what is currently playing
(which sounds pretty bad)."

I think it would be a great service and big help to all of the asterisk
community, if you can please contribute your expertise on helping find a
solution to this problem. This issue likely effects millions of asterisk
users worldwide without a solution!

Good Luck and Thanks very much in advance for your kind help and
contribution!!
====================================================================== 

---------------------------------------------------------------------- 
 (0112390) happywebuser123 (reporter) - 2009-10-18 13:27
 https://issues.asterisk.org/view.php?id=16084#c112390 
---------------------------------------------------------------------- 
Interestingly enough, I just did some more research online and this issue
was in fact already noted in a bug report back in 2003, without any
resolution to date??

I really don't understand, why since it likely effects so many millions of
asterisk users worldwide and is such a major problem, how come additional
attention is not being given to this report?? especially in light that it
has already been reported back in 2003 ? almost 6 years ago?

Link: 

https://issues.asterisk.org/bug_view_page.php?bug_id=0000413

Post:

" (0002661)
oliver (reporter)
2003-12-03 19:08
edited on: 2003-12-03 19:12
	Yo,
I discovered a small problem with MP3-streams. They start playing the
first time a channel gets connected to MOH, but get interrupted in the way
I described above as soon as no more channels are listening to MOH. An
unfortunate side-effect is that in this case, mpg123 seems to lose the
stream after a short time. The next channel connecting to MOH will hear the
part of the stream that was still in mpg123's buffer, after which the audio
gets cut off. Only restarting Asterisk or killing the mpg123-processes
(after which Asterisk spawns fresh ones, which re-connect to the stream)
will reliably get the stream back.

Maybe this patch could be modified to kill and restart mpg123 if the
MOH-source is a stream, has been idle with no channels listening and a new
channel connects to it.

In short: Check the number of listeners each time a new channel connects
to MOH. If there are 0 listeners and the MOH-source is a stream, restart
mpg123 to allow it to re-connect.
    Grtz,
       Oliver
edited on: 12-03-03 19:03 " 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-18 13:27 happywebuser123Note Added: 0112390                          
======================================================================




More information about the asterisk-bugs mailing list