Page 1 of 1

codec between 2 vicidial

PostPosted: Wed Feb 02, 2011 5:01 am
by iulianm
Hello

I am using ViciBOX 3.0.8 64 bit

I am trying to add a vicidial 2nd asterisk server ; everything works ok ; I see that the trunks between the 2 vicidial are generated automatically and I cannot find where to change the codec for the IAX2 trunk between the servers....

iax-vicidial.conf
Code: Select all
....
type=friend
requirecalltoken=no
context=default
auth=plaintext
host=dynamic
permit=0.0.0.0/0.0.0.0
disallow=all
allow=ulaw
qualify=yes

PostPosted: Wed Feb 02, 2011 6:41 am
by mflorell
Why would you want to change the codec between servers?

PostPosted: Wed Feb 02, 2011 2:20 pm
by iulianm
Good question.
I just want to use something standard.

PostPosted: Thu Feb 03, 2011 6:04 pm
by middletn
mflorell wrote:Why would you want to change the codec between servers?


If as in one of my installations, the trunks use gsm, i've seen errors where the call is dropped because the codecs don't match (asterisk 1.4.21.2) something along the lines, codec changed, was gsm now ulaw

regards

PostPosted: Mon Feb 07, 2011 6:12 am
by iulianm
What happens it's strange

My agents use gsm as a codec; My VoIP provider also use gsm If I let the codec for the IAX2 trunk ( on both servers )to ulaw/alaw I get the error:


[Feb 7 12:08:22] Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 002 Type: IAX Subclass: ACK
[Feb 7 12:08:22] Timestamp: 00018ms SCall: 00682 DCall: 04866 [192.168.4.54:4569]
[Feb 7 12:08:22] Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 002 Type: IAX Subclass: REJECT
[Feb 7 12:08:22] Timestamp: 00011ms SCall: 00682 DCall: 04866 [192.168.4.54:4569]
[Feb 7 12:08:22] CAUSE : Unable to negotiate codec
[Feb 7 12:08:22] CAUSE CODE : 58



If I change to codec to gsm .. as the agents have it's ok

Seems like it's not making transcoding from gsm to ulaw/alaw

PostPosted: Mon Feb 07, 2011 6:53 am
by iulianm
I solved the problem ; Even if I specify manual the codec on the trunk it seems that

Code: Select all
disallow=all
allow=gsm


in the /etc/asterisk/iax.conf overrides it.