Dear Binan,<br><br>I have set digest there, here is my /etc/opensips/sites-enabled/default:<br><br>authorize {<br>        preprocess<br>        auth_log<br>        chap<br>        mschap<br>        digest<br>        suffix<br>
        eap {<br>                ok = return<br>        }<br>        files<br>        sql<br>        expiration<br>        logintime<br>        pap<br>}<br><br><br><br>authenticate {<br>        Auth-Type PAP {<br>                pap<br>
        }<br>        Auth-Type CHAP {<br>                chap<br>        }<br>        Auth-Type MS-CHAP {<br>                mschap<br>        }<br>        Auth-Type DIGEST {<br>                digest<br>        }<br>        unix<br>
        eap<br>}<br><br>I&#39;m totally confused..<br><br><br><br><br><br><div class="gmail_quote">On Wed, Oct 3, 2012 at 7:32 PM, Binan AL Halabi <span dir="ltr">&lt;<a href="mailto:binanalhalabi@yahoo.com" target="_blank">binanalhalabi@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:times new roman,new york,times,serif"><br>Hi <font face="Arial">Hanie</font>,<br>
<br>I can&#39;t see  modcall[authorize] in debug , so you have to add digest module by uncomment the digest lines in both <b>authenticate{}</b> and <b>authorize{}</b> in config file.<br><br>Go through this tutorial : <a href="http://www.opensips.org/Resources/DocsTutRadius" target="_blank">http://www.opensips.org/Resources/DocsTutRadius</a>.<br>
<br><br>//Binan<br><div style="font-family:times new roman,new york,times,serif;font-size:10pt"><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div><div><div style="font-size:10pt;font-family:times new roman,new york,times,serif">
  <div style="font-family:times new roman,new york,times,serif;font-size:10pt"> <div style="font-family:times new roman,new york,times,serif;font-size:12pt"> <div dir="ltr"> <font face="Arial"> <hr size="1">  <b><span style="font-weight:bold">Från:</span></b> Hanie Maghsoudy &lt;<a href="mailto:h.maghsoudy@gmail.com" target="_blank">h.maghsoudy@gmail.com</a>&gt;<br>
 <b><span style="font-weight:bold">Till:</span></b> Binan AL Halabi &lt;<a href="mailto:binanalhalabi@yahoo.com" target="_blank">binanalhalabi@yahoo.com</a>&gt;; OpenSIPS users mailling list &lt;<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>&gt; <br>
 <b><span style="font-weight:bold">Skickat:</span></b> onsdag, 3 oktober
 2012 14:10<br> <b><span style="font-weight:bold">Ämne:</span></b> Re: [OpenSIPS-Users] Registration via RADIUS<br> </font> </div> <br>
<div>Thanks Binan for the reply.<br>I tested both and none of them works.<br><br><div>On Wed, Oct 3, 2012 at 2:48 PM, Binan AL Halabi <span dir="ltr">&lt;<a rel="nofollow" href="mailto:binanalhalabi@yahoo.com" target="_blank">binanalhalabi@yahoo.com</a>&gt;</span> wrote:<br>

<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:times new roman,new york,times,serif">look for the type of password you want to use whether plaintext or HA<br>

<pre>modparam(&quot;auth&quot;, &quot;calculate_ha1&quot;, 1) # plaintext password<br>modparam(&quot;auth&quot;, &quot;calculate_ha1&quot;, 0) # pre-calculated HA1<br><br></pre>//Binan<br><div><span><br></span></div><div>

<br></div>  <div style="font-family:times new roman,new york,times,serif;font-size:10pt"> <div style="font-family:times new roman,new york,times,serif;font-size:12pt"> <div dir="ltr"> <font face="Arial"> <hr size="1">  <b><span style="font-weight:bold">From:</span></b> Hanie Maghsoudy &lt;<a rel="nofollow" href="mailto:h.maghsoudy@gmail.com" target="_blank">h.maghsoudy@gmail.com</a>&gt;<br>

 <b><span style="font-weight:bold">To:</span></b> <a rel="nofollow" href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a> <br> <b><span style="font-weight:bold">Sent:</span></b> Wednesday, October 3, 2012 12:59 PM<br>

 <b><span style="font-weight:bold">Subject:</span></b> Re: [OpenSIPS-Users] Registration via RADIUS<br> </font> </div><div><div> <br>
<div>Hi all,<br><br>Does anyone have a clue on this?<br>I&#39;m pretty sure I&#39;m doing something wrong, but I can not find it. I believe that either OpenSIPs configuration or radiusclient-ng&#39;s could be incorrect.<br>

<br>
Thanks<br><br><div>On Mon, Oct 1, 2012 at 3:09 PM, Hanie Maghsoudy <span dir="ltr">&lt;<a rel="nofollow" href="mailto:h.maghsoudy@gmail.com" target="_blank">h.maghsoudy@gmail.com</a>&gt;</span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Dear all,<br><br>I want to register some users in OpenSIPs. When I use db mode it&#39;s totally OK. Users register and could make calls. But when I set radius configuration (using <a rel="nofollow" href="http://www.opensips.org/Resources/DocsTutRadius" target="_blank">this</a> document), the user doesn&#39;t register and FreeRadius keeps printing these messages:<br>




<br><br><span style="color:rgb(102,102,102)">Info: [digest] Checking for correctly formatted Digest-Attributes<br>Info: [digest] Digest-Attributes look OK.  Converting them to something more usful.<br>        Digest-User-Name = &quot;101&quot;<br>



        Digest-Realm = &quot;192.168.X.X&quot;<br>        Digest-Nonce = &quot;5069765300000000af31f979191ab899f5f9fc41ed941449&quot;<br>        Digest-URI = &quot;sip:192.168.X.X&quot;<br>        Digest-Method = &quot;REGISTER&quot;<br>



        Digest-QOP = &quot;auth&quot;<br>        Digest-Nonce-Count = &quot;00000001&quot;<br>        Digest-CNonce = &quot;8277adcf0b&quot;<br>Info: [digest] Adding Auth-Type = DIGEST<br>Info: ++[digest] returns ok<br>Info: [suffix] Looking up realm &quot;192.168.X.X&quot; for User-Name = &quot;101@192.168.X.X&quot;<br>



Info: [suffix] Found realm &quot;192.168.X.X&quot;<br>Info: [suffix] Adding Realm = &quot;192.168.X.X&quot;<br>Info: [suffix] Authentication realm is LOCAL.<br>Info: ++[suffix] returns ok<br>Info: [eap] No EAP-Message, not doing EAP<br>



Info: ++[eap] returns noop<br>Info: [files] users: Matched entry 101@192.168.X.X at line 22<br>Info: ++[files] returns ok<br>Info: ++[expiration] returns noop<br>Info: ++[logintime] returns noop<br>Info: [pap] WARNING! No &quot;known good&quot; password found for the user.  Authentication may fail because of this.<br>



Info: ++[pap] returns noop<br>Info: Found Auth-Type = DIGEST<br>Info: # Executing group from file /etc/freeradius/sites-enabled/default<br>Info: +- entering group DIGEST {...}<br><b><span style="color:rgb(0,0,0)">Auth: [digest] Cleartext-Password or Digest-HA1 is required for authentication.</span></b><br>



Info: ++[digest] returns invalid<br>Info: Failed to authenticate the user.<br>Auth: Login incorrect: [101@192.168.X.X/&lt;via Auth-Type = Digest&gt;] (from client OpenSIPS port 0)<br>Info: Using Post-Auth-Type Reject<br>


Info: # Executing group from file /etc/freeradius/sites-enabled/default<br>
Info: +- entering group REJECT {...}<br>Info: [attr_filter.access_reject]    expand: %{User-Name} -&gt; 101@192.168.X.X<br><br><br><span style="color:rgb(0,0,0)">And here</span></span> is my opensips.cfg:<br><br>.....<br>



loadmodule &quot;acc.so&quot;<br>modparam(&quot;acc&quot;, &quot;early_media&quot;, 0)<br>modparam(&quot;acc&quot;, &quot;report_cancels&quot;, 0)<br>modparam(&quot;acc&quot;, &quot;detect_direction&quot;, 0)<br>modparam(&quot;acc&quot;, &quot;failed_transaction_flag&quot;, 3)<br>



modparam(&quot;acc&quot;, &quot;log_flag&quot;, 1)<br>modparam(&quot;acc&quot;, &quot;log_missed_flag&quot;, 2)<br>loadmodule &quot;auth.so&quot;<br>loadmodule &quot;aaa_radius.so&quot;<br>loadmodule &quot;auth_aaa.so&quot;<br>



modparam(&quot;auth&quot;, &quot;calculate_ha1&quot;, 1)<br>modparam(&quot;auth_aaa&quot;, &quot;aaa_url&quot;, &quot;radius:/etc/radiusclient-ng/radiusclient.conf&quot;)<br>route{<br>        if ( !(is_method(&quot;REGISTER&quot;)  ) ) {<br>



                if (from_uri==myself)<br>                {<br>                        if (!aaa_proxy_authorize(&quot;&quot;)) {<br>                                proxy_challenge(&quot;&quot;, &quot;1&quot;);<br>                                exit;<br>



                        }<br>                        consume_credentials();<br>                } else {<br>                        if (!uri==myself) {<br>                                send_reply(&quot;403&quot;,&quot;Rely forbidden&quot;);<br>



                                exit;<br>                        }<br>               }<br>        }<br>....<br>        if (is_method(&quot;REGISTER&quot;))<br>        {<br>                if (!aaa_www_authorize(&quot;&quot;))<br>



                {<br>                        www_challenge(&quot;&quot;, &quot;1&quot;);<br>                        exit;<br>                }<br>                if (   0 ) setflag(7);<br>                if (!save(&quot;location&quot;))<br>



                        sl_reply_error();<br>                exit;<br>        }<br>....<br><br><br>And in freeradius/users I have:<br><br>.....<br><br>101@192.168.X.X Auth-Type := Digest, Cleartext-Password == &quot;101&quot;<br>



        Reply-Message = &quot;Authenticated&quot;<br><br>Would you please help me to solve the problem?<br><br>Thanks,<br>Hanie<br><br><br>
</blockquote></div><br>
</div><br></div></div>_______________________________________________<br>Users mailing list<br><a rel="nofollow" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br><a rel="nofollow" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>

<br><br> </div> </div>  </div></div><br>_______________________________________________<br>
Users mailing list<br>
<a rel="nofollow" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a rel="nofollow" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br>
</div><br><br> </div> </div>  </div></div></div><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br><br> </div> </div>  </div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br>