[asterisk-bugs] [Asterisk 0014416]: [patch] streamed moh breaks if nobody listen it
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Mar 12 11:34:42 CDT 2009
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=14416
======================================================================
Reported By: caspy
Assigned To: file
======================================================================
Project: Asterisk
Issue ID: 14416
Category: Resources/res_musiconhold
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Asterisk Version: SVN
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.0
SVN Revision (number only!):
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2009-02-06 02:37 CST
Last Modified: 2009-03-12 11:34 CDT
======================================================================
Summary: [patch] streamed moh breaks if nobody listen it
Description:
If i have a moh class, which plays a network stream, and when no one
currently listening it, asterisk stops to receive data from player,
then in a few minutes player stops reading network stream,
and then tcp connection dropeed from server side. Bad.
I did not find any player, which can always read network, even when no one
reads music from it.
I have looked what to patch, and decided, that asterisk's res_musiconhold
is the easiest way.
All we need, is to check for existence of 'listeners' not just before
reading music from player, but just after.
Look for code example in add.info.
With this patch, asterisk _always_ take music from player, and only then
decides what to do (waste away or play for somebody).
It's work fine in my production (1.6.0.3-rc1) for two month.
======================================================================
----------------------------------------------------------------------
(0101662) svnbot (reporter) - 2009-03-12 11:34
http://bugs.digium.com/view.php?id=14416#c101662
----------------------------------------------------------------------
Repository: asterisk
Revision: 181658
_U branches/1.6.1/
U branches/1.6.1/res/res_musiconhold.c
------------------------------------------------------------------------
r181658 | file | 2009-03-12 11:34:42 -0500 (Thu, 12 Mar 2009) | 24 lines
Merged revisions 181656 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r181656 | file | 2009-03-12 13:32:20 -0300 (Thu, 12 Mar 2009) | 17 lines
Merged revisions 181655 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r181655 | file | 2009-03-12 13:29:19 -0300 (Thu, 12 Mar 2009) | 10
lines
Fix issue with streaming MOH failing if nobody is listening.
When a music class is setup to actually provide music on hold
from a stream we need to constantly read audio from it since it
will constantly be providing audio. This is now done despite there
being no channels listening to it.
(closes issue http://bugs.digium.com/view.php?id=14416)
Reported by: caspy
........
................
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=181658
Issue History
Date Modified Username Field Change
======================================================================
2009-03-12 11:34 svnbot Checkin
2009-03-12 11:34 svnbot Note Added: 0101662
======================================================================
More information about the asterisk-bugs
mailing list