[asterisk-bugs] [Asterisk 0012443]: Corrupted sound or call recording via IAX and GSM

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Jun 26 01:00:06 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12443 
====================================================================== 
Reported By:                ztel
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12443
Category:                   Formats/format_gsm
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.18 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             04-14-2008 19:52 CDT
Last Modified:              06-26-2008 01:00 CDT
====================================================================== 
Summary:                    Corrupted sound or call recording via IAX and GSM
Description: 
I have a problem with installing Asterisk on Debian / Lenny, exact kernel /
version is:

Linux version 2.6.22-3-686 (Debian 2.6.22-6) (maks at debian.org) (gcc
version 4.1.3 20071019 (prerelease) (Debian 4.1.2-17))
http://bugs.digium.com/view.php?id=1 SMP Mon Nov 12
08:32:57 UTC 2007

STEPS TO REPRODUCE PROBLEM:
1) Download Debian / Lenny which is located at

http://www.us.debian.org/devel/debian-installer/

I use the iso which is located at:

http://cdimage.debian.org/cdimage/lenny_di_beta1/i386/iso-cd/debian-testing-i386-netinst.iso

2) Install on a server with two network cards and make eth0 the WAN and
eth1 the LAN 

3) Set up firewall that can masquerade and do nat... I can provide this
firewall if it helps...

4) install the newest version of asterisk 1.4 on server

5) setup 1 sip device and a voicemail

6) route an extension to this server from a different asterisk server via
IAX to the sip device using either GSM or ULAW.

7) The call will be clear, but the voicemail prompts and recordings will
be garbled or vice versa depending on how you set up the codec in iax.conf

8) change iax.conf to not use gsm and instead use ULAW

9) the call will be garbled but the voicemail prompts will be clear..

there is no way to get them both working..

I have a system set up in this configuration that is currently
experiencing the problem 100% of the time, and this is the 5th different
server i have tried this it is 100% reproducible. 
--------------------------------------------------
Basically the call flow would look like:

INCOMING SIP PROVIDER -> Asterisk TRUNK at datacenter -> application
asterisk server (IAX connect / GSM) -> recoring on local box or forwarding
to sip device

This configuration works great with the Debian Stable (2.6.18) and Debian
Experimantal (2.6.23), but Testing (2.6.22) is broken... 

This is annoying because stable does not work with most SATA controllers
and experimental is too unstable to be a desirable production platform... I
wish I could tell what is different between the versions but I thought it
might be worth reporting to see if any ideas exist.  Google searches do not
result in any significant information to report. 


Please let me know if i can provide any additional information that would
help.

Ztel
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0012164 Distorted playback of G.722 prompts
====================================================================== 

---------------------------------------------------------------------- 
 gavin - 06-26-08 01:00  
---------------------------------------------------------------------- 
I do not know what is at fault but 

gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

or asterisk code is broken.  Using 

gcc version 4.1.3 20080308 (prerelease) (Ubuntu 4.1.2-21ubuntu1) 

worked for me.


root at hh:/usr/lib/asterisk/modules# cd /usr/bin
root at hh:/usr/bin# ls -lsah gcc
0 lrwxrwxrwx 1 root root 7 2008-06-25 23:38 gcc -> gcc-4.2
root at hh:/usr/bin# rm gcc
root at hh:/usr/bin# ln -s gcc-4.1 gcc
root at hh:/usr/bin# ls -lsah gcc
0 lrwxrwxrwx 1 root root 7 2008-06-25 23:54 gcc -> gcc-4.1
root at hh:/usr/bin# cd /usr/src/asterisk/20080621/asterisk-1.4.21
root at hh:/usr/src/asterisk/20080621/asterisk-1.4.21# 

make clean
./configure
make menuselect
make
make install





root at hh:/usr/bin# gcc-4.2 -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-targets=all --enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)





root at hh:/usr/bin# gcc-4.1 -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1
--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
--enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.3 20080308 (prerelease) (Ubuntu 4.1.2-21ubuntu1) 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-26-08 01:00  gavin          Note Added: 0089260                          
======================================================================




More information about the asterisk-bugs mailing list