[asterisk-users] Format_MP3, Streaming, File Formats, MOH
rob at cmgfunding.com
Thu Sep 21 06:58:26 MST 2006
Did this work for you under Asterisk 1.2x?
If it did, did you receive "Warning Flexible rate not heavily tested" notices in the Asterisk CLI?
800-330-7704 toll free
Please feel free to IM me as well
AOL Screenname: cmgrobert
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Asterisk [Submusic]
Sent: Wednesday, September 20, 2006 9:58 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [asterisk-users] Format_MP3, Streaming, File Formats, MOH
This config is working for me:
application=/usr/local/bin/mpg123 -s --mono -y -f 8192 -r 8000 http://stream128.submusic.ch:8004/
; The '/' in the stream URL is important !
exten => 17,1,Answer
exten => 17,2,MusicOnHold(shoutcast)
De : asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] De la part de Robert Chadwell
Envoyé : mardi, 19. septembre 2006 14:47
À : asterisk-users at lists.digium.com
Objet : [asterisk-users] Format_MP3, Streaming, File Formats, MOH
Format_MP3 appears to play MOH files starting at the beginning of each file, using the .wav file format, making for some repetitive hold music unless you alter the file itself to begin somewhere in the middle.
Solution: One stream that all users connect to - giving dynamic hold music (tried and tested in A1.0x using mpg123 with some success, and Icecast or Slimserver or Shoutcast)
Format_MP3 doesn't seem to stream, and the wiki is wrong about streamplayer being used to play streams, as it is only used to play raw TCP streams.
There are many questions in forums on the web with no answers about how to solve this dilemma, How do you get users connected to a constantly-changing stream of music instead of streams starting from the beginning (regardless of whether Linux counts them as one stream or not where the processor is concerned)?
Hopefully, at the end of this thread, I will have enough information to go back to these web-forums and post the answer. To get it started - here is what I have tried that hasn't worked. In most all cases the response is "Music on hold started", immediately followed by "Music on hold stopped" with no sound in any case.
;application=/usr/bin/streamplayer 126.96.36.199 8000
----------- Straight From The Music On Hold Wiki
;default => quietmp3:/var/lib/asterisk/mohmp3-dummy -@,http://www.shoutcast.com/sbin/tunein-station.pls?id=7733&filename=playlist.pls
----------- From the Nerd Vittles Tutorial with the -@ added because mpg123 seemed to ask for it since the file was a .pls
;default => mp3:http://127.0.0.1:9000/stream.mp3
---------- From a forum of someone using mpg123 to stream SlimServer (installed mpg123 v0.60 with no success here)
---------- Tried a 1.2 format
;default => quietmp3:/var/lib/asterisk/mohmp3-dummy,http://188.8.131.52:8000/
---------- Thought maybe it was SlimServer - so tried to stream the top Shoutcast station
;default => quietmp3:/var/lib/asterisk/mohmp3-dummy,http://127.0.0.1:9000/stream.mp3
---------- Tried to stream Slimserver using the old format
Thank you in advance - I have been at this for a week now. How did you make it work in Asterisk 1.2x?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the asterisk-users