Umar Sear
2005-Mar-27 05:41 UTC
[Asterisk-Users] Can't get format_mp3 to work for music on hold
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
Martijn van Oosterhout
2005-Mar-27 05:56 UTC
[Asterisk-Users] Can't get format_mp3 to work for music on hold
On Sun, Mar 27, 2005 at 01:41:31PM +0100, Umar Sear wrote:> 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.I don't do anything with music-on-hold, but...> [moh_files] > default = >/var/lib/asterisk/moh-native^^^ That spacing looks really odd... Hope this helps, -- Martijn van Oosterhout Ecomtel Pty Ltd
Steven Critchfield
2005-Mar-27 11:24 UTC
[Asterisk-Users] Can't get format_mp3 to work for music on hold
On Sun, 2005-03-27 at 13:41 +0100, Umar Sear wrote:> 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.> 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 :-)It can't be installed because you have uninstalled mpg123. Why did you uninstall mpg123? Reinstall mpg123 and stop messing with your hair. -- Steven Critchfield <critch@basesys.com>
Umar Sear
2005-Mar-30 12:08 UTC
[Asterisk-Users] Can't get format_mp3 to work for music on hold
Anymore ideas ? anyone ? On Sun, 27 Mar 2005 23:47:50 +0100, Umar Sear <umarsear@gmail.com> wrote:> I removed mpg123 as per instruction on the wiki as I am trying to use > native mp3 (format_mp3) > > Re-installing it makes no difference. > > Thanks > > Umar > > > On Sun, 27 Mar 2005 12:24:32 -0600, Steven Critchfield > <critch@basesys.com> wrote: > > On Sun, 2005-03-27 at 13:41 +0100, Umar Sear wrote: > > > 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. > > > > > 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 :-) > > > > It can't be installed because you have uninstalled mpg123. Why did you > > uninstall mpg123? Reinstall mpg123 and stop messing with your hair. > > -- > > Steven Critchfield <critch@basesys.com> > > > > >