Hi Folks,<br><br>I&#39;m currently trying to configure musiconhold (on a asterisk-1.4.17) for replaying a live mp3-stream (Icecast2). after reading the related material on voip-info and several other pages, I&#39;ve successfully tried out mpg132, madplay and mplayer to pipe a stream into moh.
<br><br>however, there is one major problem involving some kind of buffer-issue. let me try to explain this problem using a timeline:<br><br>10:00 I&#39;m calling the pbx, musiconhold starts correctly to play the live-stream (almost live, with very small delay) - that&#39;s OK.
<br>10:01 I hangup.<br><br>-- than I pause for 20 min --<br><br>10:20 I&#39;m calling a second time. However moh now doesn&#39;t stream live, but starts to continue playing the stream from 10:01. This goes on for about 30secs, then the replay stops for a second and continues at the correct position (once again, rather &quot;live&quot;). along I get this message at the console:
<br><br>[Jan 17 20:37:15] NOTICE[6220]: res_musiconhold.c:544 monmp3thread: Request to schedule in the past?!?!<br>[Jan 17 20:37:15] NOTICE[6220]: res_musiconhold.c:544 monmp3thread: Request to schedule in the past?!?!<br>
<br>I&#39;ve installed the ztdummy-module as I&#39;ve read that the message &quot;Request to schedule in the past?!?!&quot; might have something to do with that, however this didn&#39;t help.<br><br>It looks like there&#39;s some kind of buffering going on...
<br><br>Thanks a lot for any suggestions, at this point I&#39;m rather clueless ;)<br><br>regards,<br>michael<br><br><br><br><br>musiconhold.conf:<br><br>[default]<br>mode=custom<br>application=/etc/asterisk/mohstream.sh<br>
<br>mohstream.sh<br><br>#!/bin/bash<br>/usr/bin/wget -q -O - <a href="http://my.stream.com:8000">http://my.stream.com:8000</a> | /usr/bin/madplay -Q -z -o raw:- --mono -R 8000 -a -12 -<br><br><br>