Hello!<div><br></div><div>I have written a Lua script to connect to a database and provide directory information for phones registering with FreeSWITCH.</div><div><br></div><div>My problem is that I store an MD5 hash of the passwords in the database, so I wish there was a way to get FreeSWITCH to authenticate using the MD5 hash of the password provided by the phone, and not the password itself.</div>
<div><br></div><div>According to the <a href="http://wiki.freeswitch.org/wiki/XML_User_Directory_Guide">wiki</a>, it is possible to pass in a parameter called <i>a1-hash</i> instead of the username and password. The a1-hash parameter is an MD5 hash of a string comprising the username, domain and password, separated by colons. Unfortunately, I can&#39;t generate that string, since I don&#39;t have the raw password, just the MD5 hash.</div>
<div><br></div><div>I would have my Lua script do the authentication, but cannot because FreeSWITCH doesn&#39;t pass the user&#39;s password to the script.</div><div><br></div><div>The best solution I can think of is to enter the MD5 hash of the password in the phone.</div>
<div><br></div><div>Does anyone have a better idea?</div><div><br></div><div><br></div><div>Mike van Lammeren</div><div><br></div>