[Asterisk-Users] Music on hold..Mar error "res_musiconhold.c:309
monmp3thread: Request to schedule in the past" ?
Mateo Meier
ich at mateo.ch
Tue Mar 1 04:51:04 MST 2005
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 at 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
More information about the asterisk-users
mailing list