[Asterisk-Users] IAX2 authentication confusion

Jeremy McNamara jj at nufone.net
Fri Jun 25 09:14:04 MST 2004


Kevin P. Fleming wrote:
>Is there a reason why Asterisk allows incoming IAX2 calls without 
> USERNAME specified at all?

1) host=dynamic makes no sense in a type=user
2) One sends the username to be used to the peer
		
On the machine you wish to dial out, you have in your iax.conf:

[peer]
type=peer
host=1.2.3.4
secret=foo
	
and in that same machine's extensions.conf you have something that looks 
like:
		
Dial,IAX2/USER at peer/${EXTEN}
	


Then on the 'peer' (other) machine you need:

[USER]
type=user
context=incoming
auth=md5


which is cAsE SeNsITiVe. Plus you need the appropriate extension(s) in 
this (other) machine's extensions.conf.



Have you bothered to study any of the documentation out there? Start 
here: http://www.voip-info.org/



Jeremy McNamara






More information about the asterisk-users mailing list