<br><br><div class="gmail_quote">On Tue, Jun 8, 2010 at 12:29 AM, Tilghman Lesher <span dir="ltr"><<a href="mailto:tlesher@digium.com">tlesher@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Monday 07 June 2010 22:10:52 yiping wang wrote:<br>
> Hi All,<br>
><br>
> I am now confused by MD5 function<br>
><br>
> I have some dial plan like following:<br>
> exten => login,n,Set(tts1="please enter your 10 digit password")<br>
> exten => login,n,Set(tts1hash=${MD5(${tts1})})<br>
><br>
> The output is like:<br>
> -- Executing [login@hotdesk:6] Set("SIP/desk_1-00000003", "tts1="please<br>
> enter your 10 digit password"") in new stack<br>
> -- Executing [login@hotdesk:7] Set("SIP/desk_1-00000003",<br>
> "tts1hash=0a2307cdfe0eb4db28d672260c84ef49") in new stack<br>
><br>
> But the md5sum output is like:<br>
> [trixbox1.localdomain asterisk]# echo -n "please enter your 10 digit<br>
> password"|md5sum<br>
> a607638e751697da33d510aecc560468 -<br>
><br>
> My current asterisk version is Asterisk 1.6.0.26-FONCORE-r78<br>
><br>
> I am totally lost.<br>
><br>
> Thanks for the help.<br>
<br>
</div></div>Lose the quotation marks.<br>
<div class="im">% echo -n "\"please enter your 10 digit password\"" | md5sum<br>
</div>0a2307cdfe0eb4db28d672260c84ef49 -<br>
<font color="#888888"><br>
--<br>
Tilghman Lesher<br>
Digium, Inc. | Senior Software Developer<br>
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)<br>
Check us out at: <a href="http://www.digium.com" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a><br>
</font><div><div></div><div class="h5"><br>Thanks Tilghman! That works..</div></div></blockquote></div>