login | register
Sat 04 of Jul, 2009 [05:32 UTC]

voip-info.org

Discuss [1] History

Asterisk No authority found

Created by: jason@debian.org,Last modification on Thu 27 of Mar, 2008 [17:17 UTC] by mwarnecke

No authority found


This error is usually caused by a username/secret/type mismatch.

Valid Example Configs

Below is an example of working configs.

[server1]
type=friend
host=111.111.111.111
username=server2
secret=1234

[server2]
type=friend
host=222.222.222.222
username=server1
secret=1234


Basic Server Transactions

Below is basic call transaction from server1 to server2:

server1 connects to server2
server1 sends username: server2
server1 send secret: 1234
server2 looks for iax entry [username] e.g. [server2]
server2 checks secret
server2 accepts connection

This is outlined in more detail in Asterisk IAX authentication

Explanation

The 'No authority found' error is generated when an iax entry [example] matching the username sent can not be found.
It will also occur if the secret is wrong.

Example Error

Rx-Frame Retry[ No] — OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
  Timestamp: 00002ms  SCall: 16385  DCall: 00000 [111.111.111.111:4569]
  VERSION         : 2
  CALLED NUMBER   : 12345678
  CODEC_PREFS     : (g729)
  CALLING NUMBER  : 87654321
  CALLING PRESNTN : 0
  CALLING TYPEOFN : 0
  CALLING TRANSIT : 0
  CALLING NAME    : 87654321
  LANGUAGE        : en
  CALLED CONTEXT  : example_context
  USERNAME        : example_username
  FORMAT          : 256
  CAPABILITY      : 63744
  ADSICPE         : 2
  DATE TIME       : 2007-06-20  16:02:58

[Jun 20 16:02:58] NOTICE[6301]: chan_iax2.c:6780 socket_process: Rejected connect attempt from 111.111.111.111, who was trying to reach '12345678@example_context'
Tx-Frame Retry-01 — OSeqno: 000 ISeqno: 001 Type: IAX Subclass: ACK
  Timestamp: 00002ms SCall: 00005 DCall: 16385 [111.111.111.111:4569]
Tx-Frame Retry000 — OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REJECT
  Timestamp: 00008ms SCall: 00005 DCall: 16385 [111.111.111.111:4569]
  CAUSE           : No authority found
  CAUSE CODE      : 50

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
  Timestamp: 00008ms SCall: 16385 DCall: 00005 [111.111.111.111:4569]



See Also:


Comments

Comments Filter
222

333can also happen when context / peercontext is not matching

by kervel, Thursday 11 of June, 2009 [11:21:55 UTC]
hello,

i had this problem, and it turned out that on the calling host, "peercontext" or "context" was set to "A", and that on the called host, context was set to "B". apparently, in the "type=user" ("friend") the context is actually the "allowed" context: calls to another context will be denied. so the 2 contexts must match.