Search:
     
3CX Phone System for Windows Download the Free Edition

Asterisk sip md5secret

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.

Created by: maik,Last modification on Wed 13 of Jul, 2005 [16:14 UTC] by Randomandy


Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

 





Search: