Help IAX Client - Host failed MD5 authentication


#1

Netters,

I have setup iax on our Asterisk PBX system. The settings are shown
at the end of this message.

For IAX client, I am using IDEFisk.

Within the Intranet, the client is able to connect to PBX. Everything works
as expected.

However, when a client tries to connect from the extranet, the registration fails. The error I see is Asterisk log file is:

Host xxx.xxx.xxx.xxx failed MD5 authentication (thisnumber != thatnumber).

Is there anything special I need to do on the client side to make this work?

Thank you in advance for your help.

Pradeep

[general]
bindport=5036
delayreject=yes
bandwidth=high
jitterbuffer=no
forcejitterbuffer=no
tos=lowdelay
autokill=yes

[nnnn]
type=friend
username=nnnn
secret=mysecretpassword
context=fromiaxtrusted
host=dynamic
callerid=My Friend


#2

Two thing to try :
1 - Disable MD5 authentification on your client
OR
2 - Enable MD5 authentification for this iax channel.

You should take a look there ( bottom of the page )
voip-info.org/wiki/view/Aste … +md5secret
OR/AND
voip-info.org/wiki/view/Aste … entication

For the second solutin, I you could also try to add this line to yor iax channel conf file iax.confIn this section :

[nnnn]
auth=md5

Keep me posted


#3

Hi Dimitri,

Thank you for your help. It turns out there was a case mismatch in the password that caused that problem. I did enable md5 for authentication and things are working fine.

Pradeep