[Asterisk-Users] mp3 playing distorted, or very slowed down... unintelligible.

Lenny Tropiano / asterisk.org Mailing list asterisk at enterprise.icus.com
Sun Mar 2 09:37:36 MST 2003


I have the following in extensions.conf:

[global]
MP3ROOT=/var/lib/asterisk/mohmp3

[default]
exten => 1111,1,Answer                  ; Answer the line
exten => 1111,2,DigitTimeout,5          ; Set Digit Timeout to 5 seconds
exten => 1111,3,MP3Player(${MP3ROOT}/sample-hold.mp3)

The command that runs is:

14030 pts/0    S      0:00 /usr/bin/mpg123 -q -s -b 1024 --mono -r 8000 /var/lib/asterisk/mohmp3/sample-hold.mp3

I hear distorted or very slowed down audio.  Unintelligble.  (Apparently mpg123 on this distribution is really
mpg321 (replacement)).

I run the command:

/usr/bin/mpg123 -q -s -b 1024 --mono -r 8000 /var/lib/asterisk/mohmp3/sample-hold.mp3 -w sample.wav

And the wav file plays just fine.

Also I'm having trouble getting the MOH working, I uncommented this line in music:

random => quietmp3:/var/lib/asterisk/mohmp3,-z

And this process is always running:

13538 pts/0    S      0:00 /usr/bin/mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 -z sample-hold.mp3

When I'm put on hold by an extension, I don't hear anything.    Am I missing something else?




More information about the asterisk-users mailing list