[asterisk-users] Unable to negotiate codec with iax

Arjan Kroon | Mobillion Arjan.Kroon at mobillion.nl
Mon Apr 11 04:44:10 CDT 2011


Hi,

We are using IAX to send an inbound call to another server where we make an outbound call.

I ran into a problem with connecting to the outbound server throu IAX.
It has to do with the codec.

Because I see the following ERROR on the outbound server:  Unable to negotiate codec


We are using asterisk version 1.8.3.1 on the inbound server
For the outbound server I used version 1.8.2.2.

(If have tested with an inbound server with version 1.8.2.2 to the outbound server and that works fine.)

Does anybody has an idea what is the problem?


Kind Regards,

Arjan Kroon


Here the IAX debug logging on the inbound server:
INBOUND SERVER:
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00004ms  SCall: 02251  DCall: 00000 [192.168.230.19:4569]
   VERSION         : 2
   CALLED NUMBER   : TBD
   FORMAT          : 65535
   CAPABILITY      : 65535

Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: CTOKEN
   Timestamp: 00004ms  SCall: 00001  DCall: 02251 [192.168.230.19:4569]
   CALLTOKEN       : 51 bytes

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00019ms  SCall: 02251  DCall: 00000 [192.168.230.19:4569]
   VERSION         : 2
   CALLED NUMBER   : TBD
   FORMAT          : 65535
   CAPABILITY      : 65535
   CALLTOKEN       : 51 bytes

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: ACCEPT
   Timestamp: 00018ms  SCall: 01413  DCall: 02251 [192.168.230.19:4569]
   FORMAT          : 4
   FORMAT2         : unknown

    -- Call accepted by 192.168.230.19 (format unknown)
[Apr 11 11:39:13] NOTICE[29383]: chan_iax2.c:10751 socket_process: Rejected call to 192.168.230.19, format 0x400000000000000 (nothing) incompatible with our capability 0xffff (g723|gsm|ulaw|alaw|g726|adpcm|slin|lpc10|g729|speex|ilbc|g726aal2|g722|slin16|siren7|siren14).
Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: REJECT
   Timestamp: 00021ms  SCall: 02251  DCall: 01413 [192.168.230.19:4569]
   CAUSE           : Unable to negotiate codec
   CAUSE CODE      : 58

Tx-Frame Retry[000] -- OSeqno: 002 ISeqno: 001 Type: IAX     Subclass: DPREQ
   Timestamp: 00024ms  SCall: 02251  DCall: 01413 [192.168.230.19:4569]
   CALLED NUMBER   : 123

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass: ACK
   Timestamp: 00021ms  SCall: 01413  DCall: 02251 [192.168.230.19:4569]


Here the IAX debug logging on the outbound server:
OUTBOUND SERVER:
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00007ms  SCall: 02656  DCall: 00000 [192.168.230.6:4569]
   VERSION         : 2
   CALLED NUMBER   : TBD
   FORMAT          : 65535
   CAPABILITY      : 65535

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00017ms  SCall: 02656  DCall: 00000 [192.168.230.6:4569]
   VERSION         : 2
   CALLED NUMBER   : TBD
   FORMAT          : 65535
   CAPABILITY      : 65535
   CALLTOKEN       : 51 bytes

    -- Accepted unauthenticated TBD call from 192.168.230.6
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: ACCEPT
   Timestamp: 00018ms  SCall: 08696  DCall: 02656 [192.168.230.6:4569]
   FORMAT          : 4
   FORMAT2         : ulaw

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: REJECT
   Timestamp: 00020ms  SCall: 02656  DCall: 08696 [192.168.230.6:4569]
   CAUSE           : Unable to negotiate codec
   CAUSE CODE      : 58

Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass: ACK
   Timestamp: 00020ms  SCall: 08696  DCall: 02656 [192.168.230.6:4569]
Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 001 Type: IAX     Subclass: DPREQ
   Timestamp: 00023ms  SCall: 02656  DCall: 08696 [192.168.230.6:4569]
   CALLED NUMBER   : 123
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110411/f52ed028/attachment.htm>


More information about the asterisk-users mailing list