Upgrade 3CX to v18 and get it hosted free!

Asterisk sip md5secret

Author image

SIP.conf: device configuration – md5secret

Syntax:

md5secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

where xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx is the md5hash of “<user>:asterisk:<secret>”

Description:

Use this option if you don’t want to have plaintext-passwords in your sip.conf. You can build the md5hash with

echo -n “<user>:<realm>:<secret>” | md5sum

The <realm> is “asterisk” by default. If you’ve set it, use the realm you configured.

The -n is important because otherwise echo will add a \n at the end of the string and the md5hash would be totally different.

If there is an md5secret for a user in the config, the secret for that user will be ignored!

Example:

To generate the md5-hash for user 1234 with secret abcd you do:

echo -n “1234:asterisk:abcd” | md5sum

and as result you should get

4a8e71480c5b1ef0a5d502a8eb98576a

IAX with md5 authorization

in iax.conf:
auth=md5
secret=<md5secret>

Q: HOW TO IMPLEMENT MD5 AUTHORIZATION IN IAX? What else we need to put on both sides? How to generate md5 secret?
A: No need for you to do anything, iax.conf is much easier than sip.conf in this respect. You do not need to md5sum the password.


Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.