IAX2 poor sound quality

Hi
Everything is working fine allready.
The only problem we have is that IAX2 on asterisk 1.4.22/rc5 does have a very poor sound quality ( sounds like a robot ).

We have no idea what to do. We googled - tryed every known config.

one example of iax.conf we use:

[code][general]
bindport=4569
bindaddr=0.0.0.0
bandwidth=high
autokill = 3500
delayreject = yes
jitterbuffer=yes
forcejitterbuffer=yes
;maxjitterbuffer=100
disallow=all
allow=alaw
;tos=lowdelay

[333]
jitterbuffer=yes
type=friend
username=333
vmsecret=1234
secret=1234
callerid=“test” <111>
canreinvite=no
nat=yes
host=dynamic
context=default
qualify=yes
trunk=yes
[/code]

at the moment we use SIP and ISDN - but IAX has lower troubles with nat - and we even have not stun server … so external connections with sip isnt working good. Thats why we want to use IAX.
thx
Arnulf

what does

iax2 show netstats

show during a call?

Ian

3 times while calling:

[quote] -------- LOCAL --------------------- -------- REMOTE --------------------
Channel RTT Jit Del Lost % Drop OOO Kpkts Jit Del Lost % Drop OOO Kpkts
IAX2/222-13302 1000 22 81 0 0 0 0 0 0 0 0 0 0 0 0
1 active IAX channel
Meisterstrasse-ServerCLI> iax2 show netstats
-------- LOCAL --------------------- -------- REMOTE --------------------
Channel RTT Jit Del Lost % Drop OOO Kpkts Jit Del Lost % Drop OOO Kpkts
IAX2/222-13302 1000 40 80 0 0 0 0 0 0 0 0 0 0 0 0
1 active IAX channel
Meisterstrasse-Server
CLI> iax2 show netstats
-------- LOCAL --------------------- -------- REMOTE --------------------
Channel RTT Jit Del Lost % Drop OOO Kpkts Jit Del Lost % Drop OOO Kpkts
IAX2/222-13302 1000 21 61 0 0 0 0 0 0 0 0 0 0 0 0
1 active IAX channel
Meisterstrasse-Server*CLI> iax2 show netstats
-------- LOCAL --------------------- -------- REMOTE --------------------
Channel RTT Jit Del Lost % Drop OOO Kpkts Jit Del Lost % Drop OOO Kpkts
IAX2/222-13302 1000 21 61 0 0 0 0 0 0 0 0 0 0 0 0
1 active IAX channel
[/quote]

Ok first thing to do is change trunk=yes to trunk=no

and then test again as those figures dont look too bad.

Ian

ok this time - the first seconds are a little bit broken but sounds better - after that it starts maschine voice again…

[quote]Meisterstrasse-ServerCLI> iax2 show netstats
-------- LOCAL --------------------- -------- REMOTE --------------------
Channel RTT Jit Del Lost % Drop OOO Kpkts Jit Del Lost % Drop OOO Kpkts
IAX2/222-5036 1000 3 82 0 0 0 0 0 0 0 0 0 0 0 0
1 active IAX channel
Meisterstrasse-Server
CLI> iax2 show netstats
-------- LOCAL --------------------- -------- REMOTE --------------------
Channel RTT Jit Del Lost % Drop OOO Kpkts Jit Del Lost % Drop OOO Kpkts
IAX2/222-5036 1000 3 82 0 0 0 0 0 0 0 0 0 0 0 0
1 active IAX channel
Meisterstrasse-ServerCLI> iax2 show netstats
-------- LOCAL --------------------- -------- REMOTE --------------------
Channel RTT Jit Del Lost % Drop OOO Kpkts Jit Del Lost % Drop OOO Kpkts
IAX2/222-5036 1000 21 82 0 0 0 0 0 0 0 0 0 0 0 0
1 active IAX channel
Meisterstrasse-Server
CLI> iax2 show netstats
-------- LOCAL --------------------- -------- REMOTE --------------------
Channel RTT Jit Del Lost % Drop OOO Kpkts Jit Del Lost % Drop OOO Kpkts
IAX2/222-5036 1000 21 82 0 0 0 0 0 0 0 0 0 0 0 0
1 active IAX channel

[/quote]

Hi Sineapps did/do a IAX tester. Its a small .net application that you can run to a defined destination and it will report quality etc.

Also I assum this is a extension to extension call, if it is try GSM codec or similar to check that this isnt a bandwidth issue.

Ian

hm…
im using linux only - both server and client ( so .net is not my thing).
i use zoiper as client with alaw codec ( we have isdn calling out ).
it is working very good with sip ( only have some nat issues but quality is very good ).

if i do a call with iax the voice send throu isnd is ok - so the other side can hear me normal
but what i get back is very bad.
also if we use both iax ( zoiper ) clients quality is bad on both ends.

no difference if im in lan ( 100 mbit ) or internet ( 2 mbit up and down stream )

so im not shure what to try next.
thx
Arnulf

Hi

A different softphone on a different client. is the next step

Ian

i tryed 2 other iax phones - same issue
at last it looks like the quality is much better if we call iax to iax
if we do iax to isdn - the quality is terrible.

isdn to iax is most terrible
iax to isdn is some kind of ok.

so maybe misdn is not working correctly - or maybe we have to recompile something ??

any ideas what to try next.

Arnulf

Hi What does the echo test soundlike ?

Ian

i now tested many things and here is what i can say.

iax to iax is working very good.
sound echo or any played sound is very good with iax client.
only with isdn it is terrible.

i now checked the packets and found that iax client ( zoiper ) is sending 160 byte packets.
it receives 30 byte packets and has terrible sound.

iax to iax has normal 160 byte backets.
so i think its maybe a timing or packet size thing with misdn driver … or a setting i never have found.
why this does not happen with sip ??? dont know.

any ideas?
thx
Arnulf

push :frowning:
i still have no idea …

sip and iax2 use different frame structures. have you done iax2 set debug to see what you get?