[Home]

Summary:ASTERISK-16807: Unable to use G.729 codec with DUNDI
Reporter:Cyril CONSTANTIN (dose)Labels:
Date Opened:2010-10-13 07:35:58Date Closed:2011-06-07 14:04:46
Priority:MinorRegression?No
Status:Closed/CompleteComponents:PBX/pbx_dundi
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Hi Guys,

I have setup a DUNDI connection between two Asterisk server 1.6.2.13. I can route calls from two Asterisk when I'm using Alaw codec but when I change it to G.729 it doesn't work.

G.729 codec is working when I'm using an IAX trunk between the two Asterisk, there is no problem only when I'm trying to use it with DUNDI.

When I configure G729 on the first Asterisk I can see on the second Asterisk that the first Asterisk require ALAW codec.



****** ADDITIONAL INFORMATION ******

Below you have the both configuration on iax.conf used by DUNDI:

First Asterisk
[dundi]
type=user
dbsecret=dundi/secret
context=dundi-local
disallow=all
allow=g729

Second Asterisk
[dundi]
type=user
dbsecret=dundi/secret
context=dundi-local
disallow=all
allow=g729




Console log from first Asterisk:
Tx-Frame Retry[No] -- OSeqno: 000 ISeqno: 000 Type: NULL         (Command)
    Flags: 00 STrans: 31979  DTrans: 00000 [10.8.88.200:4520] (Final)
Rx-Frame Retry[No] -- OSeqno: 000 ISeqno: 001 Type: ACK          (Response)
    Flags: 00 STrans: 31085  DTrans: 31979 [10.8.88.200:4520] (Final)
   -- Executing [00442072260504@from-h323:1] Goto("H323/ip$10.147.9.64:12799/15809", "dundi-test,00442072260504,1") in new stack
   -- Goto (dundi-test,00442072260504,1)
   ETx-Frame Retry[No] -- OSeqno: 000 ISeqno: 000 Type: DPDISCOVER   (Command)
         Flags: 00 STrans: 26995  DTrans: 00000 [10.8.88.200:4520]
       VERSION         : 1
       DIRECT EID      : 00:1b:78:e1:08:a6
       CALLED NUMBER   : 00442072260504
       CALLED CONTEXT  : dundi-test
       TTL             : 32

Tx-Frame Retry[No] -- OSeqno: 000 ISeqno: 000 Type: ENCRYPT      (Command)
    Flags: 00 STrans: 26995  DTrans: 00000 [10.8.88.200:4520]
  ENTITY IDENT    : 00:1b:78:e1:08:a6
  KEYCRC32        : 3111800828
  ENCDATA         : [IV afd9a6662ec949442201dc1c0e52e968] 5 encrypted blocks


Rx-Frame Retry[No] -- OSeqno: 000 ISeqno: 001 Type: ACK          (Response)
    Flags: 00 STrans: 09802  DTrans: 26995 [10.8.88.200:4520]
Rx-Frame Retry[No] -- OSeqno: 000 ISeqno: 001 Type: ENCRYPT      (Command)
    Flags: 00 STrans: 09802  DTrans: 26995 [10.8.88.200:4520]
  ENCDATA         : [IV 575c9570bbc83a2d588ae020d43ee917] 7 encrypted blocks


   Erx-Frame Retry[No] -- OSeqno: 000 ISeqno: 001 Type: DPRESPONSE   (Response)
         Flags: 00 STrans: 09802  DTrans: 26995 [10.8.88.200:4520] (Final)
       ANSWER          : [EXISTS|NOUNSLCTD|NOCOMUNSLTD] 0 <IAX/dundi:5kK+Naf3cEzXrGU93OV4Lw==@10.8.88.200/00442072260504> from [00:50:56:ac:7a:3d]
       HINT            : [UNAFFECTED]
       EXPIRATION      : 1

Tx-Frame Retry[No] -- OSeqno: 001 ISeqno: 001 Type: ACK          (Response)
    Flags: 00 STrans: 26995  DTrans: 09802 [10.8.88.200:4520] (Final)
   -- Called dundi:5kK+Naf3cEzXrGU93OV4Lw==@10.8.88.200/00442072260504
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW    
  Timestamp: 00004ms  SCall: 06899  DCall: 00000 [10.8.88.200:4569]
  VERSION         : 2
  CALLED NUMBER   : 00442072260504
  CODEC_PREFS     : (alaw)
  CALLING NUMBER  :
  CALLING PRESNTN : 67
  CALLING TYPEOFN : 0
  CALLING TRANSIT : 0
  CALLING NAME    : CONSTANTIN, Cyr
  LANGUAGE        : en
  USERNAME        : dundi
  FORMAT          : 8
  CAPABILITY      : 8
  ADSICPE         : 0
  DATE TIME       : 2010-10-13  14:34:46

Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: CTOKEN
  Timestamp: 00004ms  SCall: 00001  DCall: 06899 [10.8.88.200:4569]
  Unknown IE 054  : Present

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW    
  Timestamp: 00035ms  SCall: 06899  DCall: 00000 [10.8.88.200:4569]
  VERSION         : 2
  CALLED NUMBER   : 00442072260504
  CODEC_PREFS     : (alaw)
  CALLING NUMBER  :
  CALLING PRESNTN : 67
  CALLING TYPEOFN : 0
  CALLING TRANSIT : 0
  CALLING NAME    : CONSTANTIN, Cyr
  LANGUAGE        : en
  USERNAME        : dundi
  FORMAT          : 8
  CAPABILITY      : 8
  ADSICPE         : 0
  DATE TIME       : 2010-10-13  14:34:46
  Unknown IE 054  : Present

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: AUTHREQ
  Timestamp: 00010ms  SCall: 03756  DCall: 06899 [10.8.88.200:4569]
  AUTHMETHODS     : 3
  CHALLENGE       : \x31\x38\x31\x39\x39\x32\x34\x32\x35
  USERNAME        : dundi

Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: AUTHREP
  Timestamp: 00068ms  SCall: 06899  DCall: 03756 [10.8.88.200:4569]
  MD5 RESULT      : 88715212a9fe1146843f8a288ca9df2a

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass: REJECT
  Timestamp: 00042ms  SCall: 03756  DCall: 06899 [10.8.88.200:4569]
  CAUSE           : Unable to negotiate codec
  CAUSE CODE      : 58

[2010-10-13 14:34:46] WARNING[26046]: chan_iax2.c:10287 socket_process: Call rejected by 10.8.88.200: Unable to negotiate codec
Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: ACK    
  Timestamp: 00042ms  SCall: 06899  DCall: 03756 [10.8.88.200:4569]
   -- Hungup 'IAX2/to-astuk-6899'
 == Everyone is busy/congested at this time (1:0/0/1)
   -- Auto fallthrough, channel 'H323/ip$10.147.9.64:12799/15809' status is 'CHANUNAVAIL'




Console log from second Asterisk which is receiving the call:
Rx-Frame Retry[No] -- OSeqno: 000 ISeqno: 000 Type: NULL         (Command)
    Flags: 00 STrans: 31979  DTrans: 00000 [10.148.20.57:4520] (Final)
Tx-Frame Retry[No] -- OSeqno: 000 ISeqno: 001 Type: ACK          (Response)
    Flags: 00 STrans: 31085  DTrans: 31979 [10.148.20.57:4520] (Final)
Rx-Frame Retry[No] -- OSeqno: 000 ISeqno: 000 Type: ENCRYPT      (Command)
    Flags: 00 STrans: 26995  DTrans: 00000 [10.148.20.57:4520]
  ENTITY IDENT    : 00:1b:78:e1:08:a6
  KEYCRC32        : 3111800828
  ENCDATA         : [IV afd9a6662ec949442201dc1c0e52e968] 5 encrypted blocks


   Erx-Frame Retry[No] -- OSeqno: 000 ISeqno: 000 Type: DPDISCOVER   (Command)
         Flags: 00 STrans: 26995  DTrans: 00000 [10.148.20.57:4520]
       VERSION         : 1
       DIRECT EID      : 00:1b:78:e1:08:a6
       CALLED NUMBER   : 00442072260504
       CALLED CONTEXT  : dundi-test
       TTL             : 32

Tx-Frame Retry[No] -- OSeqno: 000 ISeqno: 001 Type: ACK          (Response)
    Flags: 00 STrans: 09802  DTrans: 26995 [10.148.20.57:4520]
   ETx-Frame Retry[No] -- OSeqno: 000 ISeqno: 001 Type: DPRESPONSE   (Response)
         Flags: 00 STrans: 09802  DTrans: 26995 [10.148.20.57:4520] (Final)
       ANSWER          : [EXISTS|NOUNSLCTD|NOCOMUNSLTD] 0 <IAX/dundi:5kK+Naf3cEzXrGU93OV4Lw==@10.8.88.200/00442072260504> from [00:50:56:ac:7a:3d]
       HINT            : [UNAFFECTED]
       EXPIRATION      : 1

Tx-Frame Retry[No] -- OSeqno: 000 ISeqno: 001 Type: ENCRYPT      (Command)
    Flags: 00 STrans: 09802  DTrans: 26995 [10.148.20.57:4520]
  ENCDATA         : [IV 575c9570bbc83a2d588ae020d43ee917] 7 encrypted blocks


Rx-Frame Retry[No] -- OSeqno: 001 ISeqno: 001 Type: ACK          (Response)
    Flags: 00 STrans: 26995  DTrans: 09802 [10.148.20.57:4520] (Final)
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW    
  Timestamp: 00004ms  SCall: 06899  DCall: 00000 [10.148.20.57:4569]
  VERSION         : 2
  CALLED NUMBER   : 00442072260504
  CODEC_PREFS     : (alaw)
  CALLING NUMBER  :
  CALLING PRESNTN : 67
  CALLING TYPEOFN : 0
  CALLING TRANSIT : 0
  CALLING NAME    : CONSTANTIN, Cyr
  LANGUAGE        : en
  USERNAME        : dundi
  FORMAT          : 8
  CAPABILITY      : 8
  ADSICPE         : 0
  DATE TIME       : 2010-10-13  14:34:46

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW    
  Timestamp: 00035ms  SCall: 06899  DCall: 00000 [10.148.20.57:4569]
  VERSION         : 2
  CALLED NUMBER   : 00442072260504
  CODEC_PREFS     : (alaw)
  CALLING NUMBER  :
  CALLING PRESNTN : 67
  CALLING TYPEOFN : 0
  CALLING TRANSIT : 0
  CALLING NAME    : CONSTANTIN, Cyr
  LANGUAGE        : en
  USERNAME        : dundi
  FORMAT          : 8
  CAPABILITY      : 8
  ADSICPE         : 0
  DATE TIME       : 2010-10-13  14:34:46
  Unknown IE 054  : Present

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: AUTHREQ
  Timestamp: 00010ms  SCall: 03756  DCall: 06899 [10.148.20.57:4569]
  AUTHMETHODS     : 3
  CHALLENGE       : \x31\x38\x31\x39\x39\x32\x34\x32\x35
  USERNAME        : dundi

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: AUTHREP
  Timestamp: 00068ms  SCall: 06899  DCall: 03756 [10.148.20.57:4569]
  MD5 RESULT      : 88715212a9fe1146843f8a288ca9df2a

[Oct 13 13:34:47] NOTICE[2917]: chan_iax2.c:10583 socket_process: Rejected connect attempt from 10.148.20.57, requested/capability 0x8/0x8 incompatible with our capability 0x100.
Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass: REJECT
  Timestamp: 00042ms  SCall: 03756  DCall: 06899 [10.148.20.57:4569]
  CAUSE           : Unable to negotiate codec
  CAUSE CODE      : 58

Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: ACK    
  Timestamp: 00042ms  SCall: 06899  DCall: 03756 [10.148.20.57:4569]
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE  
  Timestamp: 00012ms  SCall: 13038  DCall: 00000 [10.148.20.57:4569]

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: ACK    
  Timestamp: 00012ms  SCall: 13038  DCall: 00001 [10.148.20.57:4569]



Like you can see the CODEC_PREFS is alaw even if I require G.729

Best Regards.
Comments:By: Paul Belanger (pabelanger) 2010-10-13 10:14:34

Do you have a G729 license available?  Also, please upload a complete debug log, not attached it as a note.  It helps keep the issue clean.

---
We require a complete debug log to help triage the issue.

This document will provide instructions on how to collect debugging logs from an Asterisk machine for the purpose of helping bug marshals troubleshoot an issue:

http://svn.digium.com/svn/asterisk/trunk/doc/HOWTO_collect_debug_information.txt

By: Leif Madsen (lmadsen) 2010-10-13 12:58:54

The usage of codecs between systems has nothing to do with DUNDi. The only purpose of DUNDi is to look up information from remote systems. The authentication, codec setup, etc.. has everything to do with the channel drivers.

I'm closing this as a support issue. Please utilize the appropriate forums such as the asterisk-users mailing list for support with this issue.