[Asterisk-Users] Music not on hold

Andy Powell andy at beagles-den.demon.co.uk
Wed May 7 15:12:36 MST 2003


What version of mpg123 are you using? I had this problem too and it turns
out, for some unknown reason, I'd downloaded an older version. Make sure
it's Version 0.59r ...( do mpg123 -? and it will say in the top few lines)

HTH

Andy

*********** REPLY SEPARATOR  ***********

On 07/05/2003 at 16:11 Niclas Gustafsson wrote:

>Hello,
>
>I just can't seem to get the MusicOnHold function to work out ok.
>I' managed to get the MP3Player app to work out fine, but 
>when I run the MusicOnHold all i get is siliece.
>I can see that Asterisk executes mpg123 properly  (I think)
>
>#ps axuww|grep mp
>gk        4383  0.0  0.4  3736  552 pts/4    S    15:06   0:00
>/usr/bin/mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 sample-hold.mp3
>sample-hold2.mp3
>
># ls -l  /proc/4382/
>total 0
>-r--r--r--    1 gk       gk              0 May  7 16:05 cmdline
>lrwxrwxrwx    1 gk       gk              0 May  7 16:05 cwd ->
>/var/lib/asterisk/mohmp3
>
>From the CLI:
>This is OK:
>   -- Executing StripMSD("H323:29995", "6") in new stack
>    -- Executing Answer("H323:29995", "") in new stack
>    -- Executing MP3Player("H323:29995",
>"/var/lib/asterisk/mohmp3/sample-hold.mp3") in new stack
>  == Spawn extension (cs-pbx, 5002, 3) exited non-zero on 'H323:29995'
>    -- Hungup 'H323:29995'
>
>This is not ok, (silence):
>
>    -- Executing StripMSD("H323:17768", "6") in new stack
>    -- Executing Answer("H323:17768", "") in new stack
>    -- Executing MusicOnHold("H323:17768", "loud") in new stack
>    -- Started music on hold, class 'loud', on H323:17768
>
>*CLI> show channels
>        Channel  (Context    Extension    Pri )   State Appl.
>Data           
>     H323:17768  (cs-pbx     5003         3   )      Up MusicOnHold
>loud           
>1 active channel(s)
>*CLI> Warning, flexibel rate not heavily tested!
>Warning, flexibel rate not heavily tested!
>
>The two extensions looks like this:
>
>  '_5250XXXX' =>  1. StripMSD(4)
>[pbx_config]
>  '_5002' =>        2. Answer()
>[pbx_config]
>                    3.
>MP3Player(/var/lib/asterisk/mohmp3/sample-hold.mp3) [pbx_config]
>                    4. Hangup()
>[pbx_config]
>  '_5003' =>        2. Answer()
>[pbx_config]
>                    3. MusicOnHold(loud)
>[pbx_config]
>                    4. Hangup()
>[pbx_config]
>
>and musiconhold.conf:
>;
>; 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
>
>
>Any Ideas would be appreciated!
>
>
>Regards,
>
>Niclas Gustafsson
>
>
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users





More information about the asterisk-users mailing list