[asterisk-users] Asterisk 1.4.20.1 with bad gsm file playback

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Jun 6 05:51:35 CDT 2008


On Wed, Jun 04, 2008 at 04:06:28PM +1200, Matt Riddell wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Tilghman Lesher wrote:
> > On Tuesday 03 June 2008 10:12:58 Todd Reese wrote:
> >> Hi All,
> >>
> >> I'm stumped on this and I looking for some clues to fix this.
> >>
> >>
> >> This is a new install of Slackware 12.1  onto an IBM x330 Server.
> >>
> >> Asterisk 1.4.20.1 plays the wav files and the Cepstral_Allison Swift just
> >> fine, but when I play the gsm files the audio quite choppy.  And, the files
> >> produced from the MixMonitor don't even record any audio other than noise.
> >>
> >>
> >> I have a hard drive from a previous install of Slackware 12.0 and Asterisk
> >> ~1.4.18 that I've swapped out and everything runs fine.  Also, I've got an
> >> x335 with Asterisk 1.4.19 that is also running just fine.
> >>
> >>
> >> Any clues where to start looking to resolve this?
> > 
> > Set DONT_OPTIMIZE in the compiler options (make menuselect).  If this causes
> > the chop to go away, we know exactly what the problem is:  an optimization bug
> > in gcc 4.2/4.3.
> 
> Alternatively do:
> 
> export CC=gcc-4.1
> export CXX=gcc-4.1
> ./configure
> make
> 
> In Asterisk.
> 
> I've done three installs in the past week where I had this problem (all
> with gcc version 4.2.3 (Debian 4.2.3-5)) and the above fixed it no problem.

How about:

  aptitude install libgsm-devel


  ./configure
  make

The copy of gsm in the package in Debian does not seem to have this
problem. Nither on Stable (where gcc 4.1 is used) nor on Testing/Unstable 
(where a later gcc is used: 4.2 or 4.3 throughout the life time of this
bug).

Like any other package it is built with -O2 , I believe. But yo can
build it separately from Asterisk and use LD_LIBRARY_PATH when starting
Asterisk.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list