Mateo Meier
2005-Mar-01 04:51 UTC
[Asterisk-Users] Music on hold..Mar error "res_musiconhold.c:309 monmp3thread: Request to schedule in the past" ?
Hey guys. Im trying to setup Music on Hold. If I transfer a call (with dial) I like to put the call on Music on hold.. Here's what I've tried so far: On my I extensions.conf exten =>1,1,WaitMusicOnHold(30) exten =>1,2,Dial(SIP/mateo,18) exten =>1,3,VoiceMail(1001) I have also added this line to [context].. So it looks like that: ;[context] musiconhold=default Additinaly, when I pikc up the call I've done: [mainmenue] exten => s,1,Answer exten => s,2,SetMusicOnHold(default) exten => s,3,DigitTimeout,5 exten => s,4,ResponseTimeout,10 my musiconhold.conf looks like: ; ; Music on hold class definitions ; [classes] default => quietmp3:/var/lib/asterisk/mohmp3 ;loud => mp3:/var/lib/asterisk/mohmp3 ;random => quietmp3:/var/lib/asterisk/mohmp3,-z ;unbuffered => mp3nb:/var/lib/asterisk/mohmp3 ;quietunbuf => quietmp3nb:/var/lib/asterisk/mohmp3 ; Note that the custom mode cannot handle escaped parameters (specifically embedded spaces) ;manual => custom:/var/lib/asterisk/mohmp3,/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s I did' put any mp3 files on my asterisk box.. but I can see there are some standard file on /var/lib/asterisk/mohmp3 I have also installed mpg123.. not 100% sure if I did everything ok.. but it seems like it: [root@localhost root]# mpg123 High Performance MPEG 1.0/2.0 Audio Player for Layer 1, 2 and 3. Version 0.59g (97/04/23). Written and copyrights by Michael Hipp. Uses code from various people. See 'README' for more! THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK! usage: mpg123 [option(s)] [file(s) | URL(s) | -] Anybody knows why I get a "res_musiconhold.c:309 monmp3thread: Request to schedule in the past" error when I try to call asterisk ? Thx for the help
Time Bandit
2005-Mar-01 21:10 UTC
[Asterisk-Users] Music on hold..Mar error "res_musiconhold.c:309 monmp3thread: Request to schedule in the past" ?
> [root@localhost root]# mpg123 > High Performance MPEG 1.0/2.0 Audio Player for Layer 1, 2 and 3. > Version 0.59g (97/04/23). Written and copyrights by Michael Hipp.The recommended version is 0.59r To download it, simply go in your asterisk src then type "make mpg123". Then, to install it go in the subdir "cd mpg123-0.59r", then "make install" N.B.: when you install asterisk, if you "make mpg123" before you do "make install" on asterisk, it's supposed to install mpg123 at the same time. The instructions provided here are for installing after you installed asterisk. hth