[Asterisk-Users] distorted native music on hold

Dan Austin Dan_Austin at Phoenix.com
Tue Jan 17 15:54:06 MST 2006


> Karsten wrote
> On Mon, Jan 16 2006 Louis-David Mitterrand wrote:
>> Hello,
>> 
>> Using asterisk-1.2.1 I am trying to convert my music-on-hold files
from
>> .wav to alaw:
>> 
>> 	% sox moh.wav -r 8000 -c 1 moh.al resample -ql
>> 
>> The file sounds fine when listened with:
>> 
>> 	% sox mox.al -t ossdsp /dev/dsp
>> 
>> But when listened through asterisk with an alaw SIP phone the sound
is
>> clicky and too fast.
>> 
>> Did I forget something in my conversion command?

> Are You using bristuff 0.3.0-PRE-1f? I've had the same issue. Dan
Austin
> wrote a notice in a mail on this list, which solved the problem.

> Configure the following lines in /etc/asterisk/asterisk.conf:

> [options]
> silence_suppression=yes

> The bristuff seems to include an additional patch, which isn't stable
> enough.
Just a small point of clarification, with silence_suppression disabled
there is/should be no difference between 1.2.X without the patch and
with it.  What it does, and maybe silence_suppression is not a good
name for the option, is optionally use a timing source for sending
packets instead of using an incomming stream for timing.

Why this is a good thing-
1.  Muted far-end, so no packets to base the timing on
2.  Fax/Modem with the bulk of the audio being transmit

In a SIP-SIP call with one end on hold, there might not be enough
packets to properly time the streaming MoH.  If that is the case,
then 1.2.X without this patch would have the same problem.  At 
least in theory.  

It would be interesting to see if a vanilla 1.2.1 behaved the 
same way for your installation.

Dan

> HTH,
> Karsten



More information about the asterisk-users mailing list