[Home]

Summary:ASTERISK-19520: Call IAX2 - PRI strong distortion when using 16kHz speex
Reporter:Tyuta Vitalii (zeratyl)Labels:
Date Opened:2012-03-13 05:28:58Date Closed:2012-04-02 10:45:55
Priority:MajorRegression?
Status:Closed/CompleteComponents:Channels/chan_iax2
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) issue_19520_full_log.zip
Description:There are two integrated channels Asterisk IAX2, let's call them A1 and A2. By A1 connected to the flow of charge through the E1 TE121B, Panasonic KX-TDA200. Calls A1 - Panasonic KX-TDA200 in both directions with good quality voice calls with A2 - Panasonic KX-TDA200 severe distortion.

iax.conf
{noformat}
[general]
autokill=yes
codecpriority=host
delayreject=yes
encryption=yes
jitterbuffer=yes
srvlookup=yes
tos=ef

;Offices
register=>---:---@192.168.245.12

[offices](!)
disallow=all
allow=speex16
allow=speex
allow=alaw
auth=md5
trunk=yes
transfer=no
qualify=yes

[---](offices)
type=peer
secret=---
context=---
host=dynamic
language=ru
{noformat}

chan_dahdi.conf

{noformat}
[trunkgroups]

[channels]
language=ru
context=---
switchtype=qsig
nationalprefix=+7
overlapdial=yes
signalling=pri_cpe
rxwink=300
usecallerid=yes
cidsignalling=dtmf
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=no
cancallforward=yes
callreturn=no
echocancel=yes
echocancelwhenbridged=yes
echotraining=no
group=1
callgroup=1
pickupgroup=1
immediate=no
channel=>1-15,17-31
{noformat}

system.conf
{noformat}
span=1,1,0,ccs,hdb3
bchan=1-15,17-31
dchan=16

loadzone=ru
defaultzone=ru
{noformat}
Comments:By: Michael L. Young (elguero) 2012-03-13 09:29:38.788-0500

You don't state what version you are using of Asterisk.  There was a recent bug fix for IAX2.  Take a look at ASTERISK-16258 and go to the last comment.

By: Matt Jordan (mjordan) 2012-03-13 10:47:57.517-0500

Please fill in the version of Asterisk.  If the patch Michael recommended does not resolve this issue, please attach a DEBUG log with IAX debug turned on.

By: Tyuta Vitalii (zeratyl) 2012-03-13 14:04:50.657-0500

A1 - Asterisk 1.8.8.1
A2 - Asterisk 1.8.9.2

Between A1 and A2 IAX2 channel
A1 is connected via E1 with Panasonic KX-TDA200
Between A1 and A2 good quality voice calls
Between A1 and Panasonic KX-TDA200 good quality voice calls
Between A2 and Panasonic KX-TDA200 severe distortion

I think the patch does not solve the problem. Try to attach a debug tomorrow.

By: Tyuta Vitalii (zeratyl) 2012-03-14 09:29:44.440-0500

Log in attach.

By: Kris Shaw (shawkris) 2012-03-16 13:22:33.169-0500

If it's not already on, try enabling trunk timestamps:
{code}
trunktimestamps=yes
{code}

Without this you can get jittery sounding audio.

By: Tyuta Vitalii (zeratyl) 2012-03-19 07:17:39.012-0500

It did not help. 10 seconds, the sound is normal, then start severe distortion.

By: Matt Jordan (mjordan) 2012-03-23 10:42:00.031-0500

Can you test what occurs if you use a non-16kHz codec between the two IAX endpoints, e.g.,
disallow=all
allow=speex
allow=alaw

If that doesn't resolve it either, I'm curious what occurs if you only try alaw.

By: Tyuta Vitalii (zeratyl) 2012-03-26 04:16:56.254-0500

Only using the codec alaw problem was solved. But of course I would like to use a speex (speex16).

By: Matt Jordan (mjordan) 2012-04-02 10:44:55.904-0500

There-in lies your problem.

While chan_iax does support speex, it only supports it at 8kHz.  It is not capable of supporting the wideband version of speex.  I imagine if you configure speex to operate at 8kHz, this problem shouldn't exist.

By: Matt Jordan (mjordan) 2012-04-02 10:45:55.353-0500

Closing this as "Not a Bug", as chan_iax does not support wideband audio.  If this problem persists when using narrowband speex (8kHz), please contact a bug marshal in #asterisk-bugs and we will be happy to reopen this issue.