Sip proxy registration with md5secret

Hello everyone,
I browsed this forum as well as AsteriskTFOT but was not able to find answer on this question: How can I register asterisk at sip proxy not using plaintext password?

in sip.conf I have:

[general]

register => somenumber:somepassword@firstsipproxy

[firstproxy]
type=peer
context=outbound
host=firstproxy
username=somenumber
secret=somepassword
fromuser=somenumber

I found that I can use md5secret but it puzzles me how :confused:

I have constructed md5secret using echo -n “somenumber:firstproxy:somepassword” | md5sum
and tried this mumbo-jumbo with register =>

register => somenumber:md5secret@firstproxy
register => somenumber:@firstproxy
register => somenumber@firstproxy
register => firstproxy
register => md5secret@firstproxy

but to no avail… still can’t register.

Any advice, please?
Thanks
Martin

Try this url

voip-info.org/wiki/view/Aste … +md5secret

Thanks,
Suresh

Hi,
thanks for reply. I have tried this link before and it says only how to prepare md5secret - not how to use it in sip.conf :frowning:

Any other idea?
Somebody?

Hello again,
in sample configuration I have found that when using md5secret I shoud make register statement like this:

register => username#md5hash@realm

However I have problems with this as my voip provider always sends 404 not found as an answer to my REGISTER packet.
Looking at what ethereal has captured I discovered that when not using md5secret the From: field contains username@realm and when using md5secret there is username#md5hash@realm
Does it mean that sip proxy must support this type of authentication, or am I still missing something?

Thanks

Yes , Sip proxy should support md5 .