I recently setup Hamshack Hotline to link to our 145.33 Allstar node. I ran into a problem with the Allstar node rejecting the connection because of authentication.
Note: If you run into a problem with the connection, run 'asterisk -rvvv' from the command line. You will see messages should the inbound connection fail.
I found this information useful - Asterisk IAX authentication
The instructions from Hamshack Hotline tell you to modify your iax.conf as follows:
[hhphone]
username= HH12345
type=user
context=hhphone
host=dynamic
auth=md5
secret=12345678901234567890
disallow=all
allow=ulaw
allow=g726aal2
allow=gsm
codecpriority=host
transfer=no
callerid=”HamshackHotline”
In my case, authenication failed because the stanza [hhphone] needed to match the value in username. In this example case the username was HH12345. I changed [hhphone] to be [HH12345].
[HH12345]
username= HH12345
type=user
context=hhphone
host=dynamic
auth=md5
secret=12345678901234567890
disallow=all
allow=ulaw
allow=g726aal2
allow=gsm
codecpriority=host
transfer=no
callerid=”HamshackHotline”
This solved the authentication problem.