<div>Yes, realm is necessary, but it is quite &quot;static&quot; and possible to known it before hand<br></div><div>Using HA1 is very useful if you wish to prevent storing clear text password of your trunks in the box  </div>
<div><br></div><div>Paulo</div><div><br></div><br><div class="gmail_quote">On Sat, Dec 18, 2010 at 10:09 AM, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Oh ok... yes the a1-hash is in the user directory for people<br>
authenticating to FS... not for FS registering outwards to gateways.<br>
<br>
I remember coming across this in the past and did take a quick look at<br>
how to implement it.<br>
<br>
The main issue I found was that A1 contains the realm, and the realm<br>
is provided by the gateway in the 407 response. You don&#39;t therefore<br>
know the realm needed at the time you generate the A1.<br>
<br>
Yes, it would be possible to do by finding the realm the gateway is<br>
using and generating the A1 from that, but if the gateway changes the<br>
realm the A1 will no longer be valid and FS will start failing to<br>
authenticate.<br>
<br>
-Steve<br>
<div><div class="h5"><br>
<br>
On 17 December 2010 21:47, Paulo Vicentini &lt;<a href="mailto:vicentini.paulo@gmail.com">vicentini.paulo@gmail.com</a>&gt; wrote:<br>
&gt; Hi Steve<br>
&gt; Yes, it is all about a1-hash<br>
&gt; But I did not see support for storing HA1 for a gateway (UAC), even in<br>
&gt; sofia-lib<br>
&gt; So that both sofia-lib and freeswitch would need to be patched for that aim<br>
&gt; Regards<br>
&gt; Paulo<br>
&gt;<br>
&gt; On Fri, Dec 17, 2010 at 7:29 PM, Steven Ayre &lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; If you&#39;re looking to store passwords encrypted, then that is already<br>
&gt;&gt; supported.<br>
&gt;&gt;<br>
&gt;&gt; Search the Wiki for a1-hash.<br>
&gt;&gt;<br>
&gt;&gt; -Steve<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 17 December 2010 21:20, Paulo Vicentini &lt;<a href="mailto:vicentini.paulo@gmail.com">vicentini.paulo@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt; I would like to override the scheme used for digest authorization<br>
&gt;&gt; &gt; Actually it is using the scheme coming from sip_www_authenticate_t in<br>
&gt;&gt; &gt; the<br>
&gt;&gt; &gt; sofia_reg_handle_sip_r_challenge function,  ignoring scheme set in xml<br>
&gt;&gt; &gt; configuration<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I would like something like:<br>
&gt;&gt; &gt; if(gateway-&gt;register_scheme)<br>
&gt;&gt; &gt;     scheme = gateway-&gt;register_scheme;<br>
&gt;&gt; &gt; before nua_authenticate(...<br>
&gt;&gt; &gt; I am patching sofia to accept HA1<br>
&gt;&gt; &gt; Regards<br>
&gt;&gt; &gt; Paulo<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; FreeSWITCH-dev mailing list<br>
&gt;&gt; &gt; <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
&gt;&gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
&gt;&gt; &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
&gt;&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; FreeSWITCH-dev mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-dev mailing list<br>
&gt; <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>