[asterisk-dev] iax - failed to authenticate/No authority found - trunk r40775

Pavel Jezek pavel.jezek at i.cz
Mon Aug 21 13:10:23 MST 2006


asterisk 1.2.9.1 and asterisk trunk r40775,
iax2 interconnection between,
some calls are OK, sometimes the same (source/destination) calls fails,
debug attached,
I think, that is not configuration mistake, because it working fine with 
any 1.2.x asterisk version,
I found similar problems in bugtracker, but are obsolete, resolved or 
closed due no activity  :-(


from asterisk (1.2.9.1) initiating call:

register => bill:xxx at 193.179.xx.xx

[icz]
type=friend
host=193.179.xx.xx
auth=md5
username=bill
secret=xxxxx
qualify=yes
qualifyfreqok=5000
qualifysmoothing=yes
disallow=all
allow=alaw
context=default



bill*CLI> iax2 show peer icz
bill*CLI>

  * Name       : icz
  Secret       : <Set>
  Context      : default
  Mailbox      :
  Dynamic      : No
  Callerid     : "" <>
  Expire       : -1
  ACL          : No
  Addr->IP     : 193.179.XX.XX Port 4569
  Defaddr->IP  : 0.0.0.0 Port 0
  Username     : bill
  Codecs       : 0xf808 (alaw)
  Codec Order  : (alaw)
  Status       : OK (2 ms)



Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00010ms  SCall: 00018  DCall: 00000 [193.179.xxx.xxx:4569]
   VERSION         : 2
   CALLED NUMBER   : 961
   CODEC_PREFS     : (alaw|g729)
   CALLING NUMBER  : 961
   CALLING PRESNTN : 0
   CALLING TYPEOFN : 0
   CALLING TRANSIT : 0
   CALLING NAME    : Pavel Jezek
   LANGUAGE        : en
   USERNAME        : bill
   FORMAT          : 32768
   CAPABILITY      : 63752
   ADSICPE         : 0
   DATE TIME       : 2006-08-21  21:00:38

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: 
AUTHREQ
   Timestamp: 00006ms  SCall: 00090  DCall: 00018 [193.179.xxx.xxx:4569]
   AUTHMETHODS     : 2
   CHALLENGE       : 1537659467
   USERNAME        : bill

Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: 
AUTHREP
   Timestamp: 00017ms  SCall: 00018  DCall: 00090 [193.179.xxx.xxx:4569]
   MD5 RESULT      : 725cb985501e81c042d4a567945ef210

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass: ACK
   Timestamp: 00017ms  SCall: 00090  DCall: 00018 [193.179.xxx.xxx:4569]
Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass: 
REJECT
   Timestamp: 00012ms  SCall: 00090  DCall: 00018 [193.179.xxx.xxx:4569]
   CAUSE           : No authority found
   CAUSE CODE      : 50

Aug 21 21:00:38 WARNING[2512]: chan_iax2.c:7013 socket_read: Call 
rejected by 193.179.xxx.xxx: No authority found
Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: ACK
   Timestamp: 00012ms  SCall: 00018  DCall: 00090 [193.179.xxx.xxx:4569]
    -- Hungup 'IAX2/icz-18'
  == Everyone is busy/congested at this time (1:0/0/1)





from asterisk (trunk), that should accept call:

[common](!)
type=friend
host=dynamic
qualify=yes
qualifysmoothing=yes
qualifyfreqok=5000
transfer=no

[trunk](!,common)
auth=md5
disallow=all
allow=alaw

[bill](trunk)
secret=xxx
username=bill
context=default


asterisk*CLI> iax2 show peer bill
asterisk*CLI>

  * Name       : bill
  Secret       : <Set>
  Context      : default
  Mailbox      :
  Dynamic      : Yes
  Callerid     : "" <>
  Expire       : 18014
  ACL          : No
  Addr->IP     : 193.179.XX.XX Port 10027
  Defaddr->IP  : 0.0.0.0 Port 4569
  Username     : bill
  Codecs       : 0xf008 (alaw)
  Codec Order  : (alaw)
  Status       : OK (3 ms)





Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00010ms  SCall: 00018  DCall: 00000 [193.179.xx.xx:10027]
   VERSION         : 2
   CALLED NUMBER   : 961
   CODEC_PREFS     : (alaw|g729)
   CALLING NUMBER  : 961
   CALLING PRESNTN : 0
   CALLING TYPEOFN : 0
   CALLING TRANSIT : 0
   CALLING NAME    : Pavel Jezek
   LANGUAGE        : en
   USERNAME        : bill
   FORMAT          : 32768
   CAPABILITY      : 63752
   ADSICPE         : 0
   DATE TIME       : 2006-08-21  21:00:38

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: 
AUTHREQ
   Timestamp: 00006ms  SCall: 00090  DCall: 00018 [193.179.xx.xx:10027]
   AUTHMETHODS     : 2
   CHALLENGE       : 1537659467
   USERNAME        : bill

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: 
AUTHREP
   Timestamp: 00017ms  SCall: 00018  DCall: 00090 [193.179.xx.xx:10027]
   MD5 RESULT      : 725cb985501e81c042d4a567945ef210

[Aug 21 21:00:37] NOTICE[1378]: chan_iax2.c:7134 socket_process: Host 
193.179.xx.xx failed to authenticate as bill
Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass: ACK
   Timestamp: 00017ms  SCall: 00090  DCall: 00018 [193.179.xx.xx:10027]
Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass: 
REJECT
   Timestamp: 00012ms  SCall: 00090  DCall: 00018 [193.179.xx.xx:10027]
   CAUSE           : No authority found
   CAUSE CODE      : 50

Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: ACK
   Timestamp: 00012ms  SCall: 00018  DCall: 00090 [193.179.xx.xx:10027]
Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: 
HANGUP
   Timestamp: 00073ms  SCall: 00011  DCall: 00089 [193.179.xx.xx:10027]
   CAUSE CODE      : 21









More information about the asterisk-dev mailing list