<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>By the way,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I probably shouldn't have answered that, since this
post was on the *development* list. Make sure to post your *usage*-related
questions to the user list.</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=aj@thepaxson5.org href="mailto:aj@thepaxson5.org">Aaron Paxson</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=asterisk-dev@lists.digium.com
href="mailto:asterisk-dev@lists.digium.com">Asterisk Developers Mailing
List</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, July 31, 2006 6:31 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [asterisk-dev]
musiconhold</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Probably, the most common, is that you'll need to
compile Zaptel, even if you do not use Digium hardware, for the timing.
Otherwise:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Taken from asteriskguru.com:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>------------------</FONT></DIV>
<DIV><STRONG><U>2) NOTICE[1100258240]: res_musiconhold.c:260 monmp3thread:
Request to schedule in the past?!?!<BR><BR></U></STRONG>
<DIV class=tab>As you could see this one is related to music on
hold.<BR><BR>The sound become very choppy, slow, even metallic<BR><BR>
<DIV class=tab><B>1. The reason could be in the <B>mpg123</B> package</B>. It
has a bug that prevents it from freeing up memory that it no longer needs.
This is the so called <B>memory leak</B>. What actually happen is that the
program steals more and more memory and finally the system will crashes,
because the lack of memory.<BR><BR>Possible solution is to use the Native
<B>Asterisk</B> <I>format_mp3</I> for the <I>Music on Hold</I> instead of
<B>mpg123</B><BR><BR>The <B>format_mp3</B> comes with the
<B>asterisk-addons</B> package. Also if you decide to use it, first be sure
that you have been removed <B>mpg123</B> from your system.<BR><BR>Other
options is to use <B>rawplayer</B> instead of
<B>mpg123</B>.<BR><BR><B>Rawplayer</B> is a simple replacement, which could be
used to stream raw music files, in place of the <B>mpg123</B><BR>It is the
most efficient way to implement Music On Hold, because it does not have the
problem with the <B>memory leaking</B><BR><BR><B>Rawplayer</B> comes with the
<B>asterisk</B> package<BR><BR>Installing rawplayer<BR><BR>* go to asterisk
source dir and then to 'contrib/utils/' and compile the player<BR>o gcc -O2
rawplayer.c -o /usr/bin/rawplayer<BR>+ This will compile and install rawplayer
at /usr/bin <BR>* edit /etc/asterisk/musiconhold.conf and change<BR>o default
=> custom:/var/lib/asterisk/mohraw,/usr/bin/rawplayer<BR>+ in
/var/lib/asterisk/mohraw we will store raw MOH files <BR><BR>For the
converting of the files we will use <B>sox</B><BR><BR>* convert MP3 to
RAW<BR>o sox -c 1 filename.mp3 -t raw -r 8000 -c 1 -s -w filename.raw <BR>*
copy RAW file to mohraw dir<BR>o cp filenam.raw /var/lib/asterisk/mohraw
<BR></DIV><BR>
<DIV class=tab><B>2. Other possible reason</B> for the message <B>Request to
schedule in the past?!?!</B> could be a timing issue, as a Zaptel timing
issue.<BR><BR>Especially if you want to use MeetMe with Music On Hold you will
need a timing source, regardless of the kernel.<BR><BR>If you do not use
Digium hardware and you are using kernel earlier then 2.6, you need to have
either <B>ztdummy</B> or <B>zaprtc</B> module running.<BR><BR>If you are using
kernels 2.6.x and up, the <B>ztdummy</B> module will use the processor as a
timing source<BR><BR>If you use Digium hardware, then you do not need
<B>ztdummy</B> or <B>zaprtc</B> module.</DIV></DIV></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=juergen.john@gmx.de href="mailto:juergen.john@gmx.de">Juergen
John</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=asterisk-dev@lists.digium.com
href="mailto:asterisk-dev@lists.digium.com">asterisk-dev@lists.digium.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, July 31, 2006 6:11
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [asterisk-dev]
musiconhold</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2>I´ve a problem with musiconhold.</FONT></DIV>
<DIV><FONT face=Arial size=2>I use Asterisk on UBUNTU version
1.2.7.1</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>When I dial an extension with musiconhold, the
following log appears:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>-- Executing WaitMusicOnHold("SIP/222-4236", "30") in new
stack<BR> -- Started music on hold, class 'default', on
channel 'SIP/222-4236'<BR> -- Stopped music on hold on
SIP/222-4236<BR> == Spawn extension (chef, 223, 2) exited non-zero on
'SIP/222-4236'<BR>Jul 30 05:11:46 NOTICE[4568]: res_musiconhold.c:507
monmp3thread:<BR>Request to schedule in the past?!?!<BR></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any ideas?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jürgen</FONT></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>--Bandwidth and
Colocation provided by Easynews.com --<BR><BR>asterisk-dev mailing
list<BR>To UNSUBSCRIBE or update options visit:<BR>
http://lists.digium.com/mailman/listinfo/asterisk-dev<BR></BLOCKQUOTE>
<P>
<HR>
<P></P>_______________________________________________<BR>--Bandwidth and
Colocation provided by Easynews.com --<BR><BR>asterisk-dev mailing list<BR>To
UNSUBSCRIBE or update options visit:<BR>
http://lists.digium.com/mailman/listinfo/asterisk-dev<BR></BLOCKQUOTE></BODY></HTML>