[asterisk-users] Format_MP3, Streaming, File Formats, MOH

Frédéric Marti frederic.marti at e-secure.ch
Fri Sep 22 00:40:56 MST 2006


Hi Robert,

I use mpg123 version 059r , Fedora Core 5, Shoutcast Server 1.9.7
The streaming bitrate is 56Kb/s mono

I have 3 Shoutcast Servers
2 servers over the Internet 128Kb/s / 24Kb/s for public listeners
1 special Shoutcast MOH server in the Asterisk Box 


                           ||====>     LAN       => Asterisk Soutcast Server 56Kb/s mono
Streaming source  ||====> INTERNET => Public Shoutcast Server 128Kb/s stereo
                           || ====> INTERNET => Public Shoutcast Server 24Kb/s stereo
                           
                          
Regards 
Frédéric Marti

=====================================================

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Robert Chadwell
Sent: jeudi, 21. septembre 2006 19:41
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [asterisk-users] Format_MP3, Streaming, File Formats, MOH

Fred,

A glimmer of hope!

What version of mpg123 do you have running? I am guessing that you control the bitrate on your internal Shoutcast server, is that right?

Robert Chadwell
800-330-7704 toll free
813-343-0181 ph
813-413-8195 fx
Please feel free to IM me as well
AOL Screenname: cmgrobert

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Frédéric Marti
Sent: Thursday, September 21, 2006 11:07 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [asterisk-users] Format_MP3, Streaming, File Formats, MOH

Hi,
 
Yes , I use Asterisk 1.2.10
 
But , I don't have "Warning Flexible rate not heavily tested" notices in the Asterisk CLI
 
The Shoutcast server is in the same box as Asterisk, and the stream source is in the same LAN
 
Regards
Fred
 
 
_______________________________________________

 

________________________________

From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Robert Chadwell
Sent: jeudi, 21. septembre 2006 15:58
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [asterisk-users] Format_MP3, Streaming, File Formats, MOH



Frederic,

 

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?

 

Robert Chadwell
800-330-7704 toll free
813-343-0181 ph
813-413-8195 fx
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

 

Hi,

 

This config is working for me:

 

_____________________________________________________________________

 

musiconhold.conf

 

[shoutcast]

mode=custom

application=/usr/local/bin/mpg123 -s --mono -y -f 8192 -r 8000 http://stream128.submusic.ch:8004/

 

; The  '/' in the stream URL is important !

 

_____________________________________________________________________

 

extensions.conf

 

exten => 17,1,Answer

exten => 17,2,MusicOnHold(shoutcast)

 

_____________________________________________________________________

 

 

Regards

 

 

Frederic

 

 

________________________________

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.

 

;[classes]

;mode=custom

;application=/usr/bin/streamplayer 194.158.114.67 8000

;format=ulaw

----------- 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)

 

[default]

mode=files

directory= /var/lib/asterisk/mohmp3-dummy,http://127.0.0.1:9000/stream.mp3

---------- Tried a 1.2 format

 

;default => quietmp3:/var/lib/asterisk/mohmp3-dummy,http://193.251.154.243: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?

 

Rob

 


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


More information about the asterisk-users mailing list