Giorgio Incantalupo
2006-Sep-20 09:18 UTC
[asterisk-users] Asteisk plays music on hold starting from random point
Hi, I'm using mpg123 to play music on hold but it seems that Asterisk does play the music from a random point: is there a way to make my music on hold always starting from beginning? TIA Giorgio Incantalupo
Yoann Aubineau
2006-Sep-20 10:52 UTC
[asterisk-users] Asteisk plays music on hold starting from random point
Le mercredi 20 septembre 2006 ? 18:18 +0200, Giorgio Incantalupo a ?crit :> Hi, > I'm using mpg123 to play music on hold but it seems that Asterisk does > play the music from a random point: is there a way to make my music on > hold always starting from beginning?Use native format audio (ulaw, alaw, gsm and the likes) not mp3. [default] mode=files directory=/home/asterisk/wdeal-plateform/var/lib/asterisk/moh-native With MP3 music-on-hold, Asterisk spawns only ONE mpg123 process (or whatever you mp3player is). Thus, you have only ONE audio stream and all your users hear the same music at the same time. It's recommended if you have a huge number of users on hold at the same time. With native format music-on-hold, Asterisk reads and streams the audio as if it were a Playback. The music start at the beginning for EACH user. So they DON'T hear the same sound at the same time. This method is know to produce better quality sound than with mp3.
Tzafrir Cohen
2006-Sep-20 11:15 UTC
[asterisk-users] Asteisk plays music on hold starting from random point
On Wed, Sep 20, 2006 at 06:18:59PM +0200, Giorgio Incantalupo wrote:> Hi, > I'm using mpg123 to play music on hold but it seems that Asterisk does > play the music from a random point: is there a way to make my music on > hold always starting from beginning?Native musiconhold -- Tzafrir Cohen sip:tzafrir@local.xorcom.com icq#16849755 iax:tzafrir@local.xorcom.com +972-50-7952406 jabber:tzafrir@jabber.org tzafrir.cohen@xorcom.com http://www.xorcom.com