[Asterisk-Users] Can't get format_mp3 to work for music on hold
Umar Sear
umarsear at gmail.com
Sun Mar 27 05:41:31 MST 2005
Hi Guys,
I am having trouble trying to get format_mp3 working to play music on hold.
I have followed the instructions in the read-me and the wiki however
it seems after un-installing mpg123, asterisk is not even attempting
to play MOH.
My musiconhold.conf is
; Music on hold class definitions
;
[classes]
[moh_files]
default = >/var/lib/asterisk/moh-native
;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
When I call my queue I get this on the console
Connected to Asterisk 1.0.7 currently running on aovas1 (pid = 13181)
Verbosity is at least 3
-- Remote UNIX connection
-- Executing Answer("SIP/08452418339-556a", "") in new stack
-- Executing Queue("SIP/08452418339-556a", "testq") in new stack
-- Playing 'queue-youarenext' (language 'en')
-- Told SIP/08452418339-556a in testq their queue position (which was 1)
-- Playing 'queue-thankyou' (language 'en')
-- Playing 'queue-youarenext' (language 'en')
-- Told SIP/08452418339-556a in testq their queue position (which was 1)
-- Playing 'queue-thankyou' (language 'en')
The extensions.conf is configured like ...
exten => XXXXX,1,Answer
exten => XXXXX,2,Queue(testq)
Where XXXX is obviously the number I am dialling.
I have also tried to following extension with no joy
exten => XXXX ,1,Answer
exten => XXXX ,2,MusicOnHold(default)
exten => XXXX ,3,Busy
In which case I get this on the cli
Executing Answer("SIP/XXXX-56f4", "") in new stack
-- Executing MusicOnHold("SIP/XXXX-56f4", "default") in new stack
Mar 27 13:40:05 WARNING[13181]: res_musiconhold.c:354 moh0_exec: Unable to start
music on hold (class 'default') on channel SIP/XXXX-56f4
== Spawn extension (default, XXXX, 2) exited non-zero on 'SIPXXXX
Please tell me I am doing something stupid ! as I would love to know,
before I pull all my hair out :-)
Umar
More information about the asterisk-users
mailing list