C
C
combi2015-03-02 16:23:28
Asterisk
combi, 2015-03-02 16:23:28

Asterisk problem with codecs, what is the reason?

Good afternoon.
There are 2 servers with Asterisk connected via IAX, when you specify the use of codecs (ulaw, alaw, gsm) in iax.conf, the call is rejected due to Unable to negotiate codec.
The g729 codec works, but a greeting is heard for 1 second, then the sound starts to abruptly interrupt and be lost.
srv2*CLI> core show version
Asterisk 11.7.0 built by portage @ srv2 on a x86_64 running Linux on 2014-02-06 15:43:45 UTC
srv2*CLI>
srv1*CLI> core show version
Asterisk 11.7.0 built by portage @ psi on a i686 running Linux on 2014-01-24 10:27:33 UTC
srv1*CLI>
What could be the reason for codecs not working, how to diagnose and fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Goncharovsky, 2015-03-12
@IgorG

You need to check in the asterisk console that 'iax2 show peer xxx' displays those codecs that you expect to see. Then see debugging at the time of the call by turning on 'iax2 set debug on'. It is also likely that this error is a bug in the code, since the asterisk is quite old - upgrade to the latest version in the 11th branch.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question