<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
On 8/2/10 12:36 PM, Pratik Shrestha wrote:
<blockquote
 cite="mid:AANLkTimPN=B12CG_zmWeDfFyNLoyw7b5Oe5UyzkVu5gB@mail.gmail.com"
 type="cite">Dear Daniel,<br>
Now the new issue. Seems now openser is trying to talk with radius
server. But still I am getting the one error in syslog which is as
follows.<br>
  <br>
rc_send_server: no reply from RADIUS server <a moz-do-not-send="true"
 href="http://128-185-38-162.totisp.net:1812">128-185-38-162.totisp.net:1812</a><br>
  <br>
Actually I have written only 128.185.38.162 in auth_server in
radiusclient.conf. I don't know how this <a moz-do-not-send="true"
 href="http://totisp.net">totisp.net</a> is added. I haven't mentioned
it anywhere. <br>
</blockquote>
<br>
probably reverse dns is done in the library, it is not relevant anyhow.
Can you start radius server in debug mode and see if it got some
request? You can also do a ngrep/wireshark on port 1812 of your radius
server to watch for network packets coming from kamailio.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
 cite="mid:AANLkTimPN=B12CG_zmWeDfFyNLoyw7b5Oe5UyzkVu5gB@mail.gmail.com"
 type="cite"><br>
Please help me.<br>
Thanks.<br>
  <br>
Regards,<br>
Pratik<br>
  <br>
  <div class="gmail_quote">On Mon, Aug 2, 2010 at 11:44 AM, Pratik
Shrestha <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:pratikdbl@gmail.com">pratikdbl@gmail.com</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Dear
Daniel,<br>
    <br>
Before I work for the new version, I am first trying to configure old
version of openser and radius. I am using openser version 1.0.1 and
radius client version 0.5.1 and I am following the tutorial given in <a
 moz-do-not-send="true"
 href="http://kamailio.net/docs/openser-radius-1.0.x.html"
 target="_blank">http://kamailio.net/docs/openser-radius-1.0.x.html</a>.<br>
    <br>
My freeradius server is in another machine and when I use radclient to
check the user I made, I get the "Authenticated" message.<br>
But when I use X-lite and connect to openser, it seems openser is not
talking with freeradius servers. I am sure the "secret" I am using is
right as I have already tested from radclient. The log which I am
getting in openser is as shown below<br>
    <br>
9(1986) SIP Request:<br>
&nbsp;9(1986)&nbsp; method:&nbsp; &lt;REGISTER&gt;<br>
&nbsp;9(1986)&nbsp; uri:&nbsp;&nbsp;&nbsp;&nbsp; <a class="moz-txt-link-rfc2396E" href="sip:192.168.0.56">&lt;sip:192.168.0.56&gt;</a><br>
&nbsp;9(1986)&nbsp; version: &lt;SIP/2.0&gt;<br>
&nbsp;9(1986) parse_headers: flags=2<br>
&nbsp;9(1986) Found param type 232, &lt;branch&gt; =
&lt;z9hG4bK-d8754z-c33212005635f16c-1---d8754z-&gt;; state=6<br>
&nbsp;9(1986) Found param type 235, &lt;rport&gt; = &lt;n/a&gt;; state=17<br>
&nbsp;9(1986) end of header reached, state=5<br>
&nbsp;9(1986) parse_headers: Via found, flags=2<br>
&nbsp;9(1986) parse_headers: this is the first via<br>
&nbsp;9(1986) After parse_msg...<br>
&nbsp;9(1986) preparing to run routing scripts...<br>
&nbsp;9(1986) parse_headers: flags=100<br>
&nbsp;9(1986) DEBUG:maxfwd:is_maxfwd_present: value = 70 <br>
&nbsp;9(1986) parse_headers: flags=10<br>
&nbsp;9(1986) DEBUG:parse_to:end of header reached, state=9<br>
&nbsp;9(1986) DEBUG: get_hdr_field: &lt;To&gt; [44]; uri=[<a class="moz-txt-link-freetext" href="sip:101%">sip:101%</a><a
 moz-do-not-send="true" href="http://40kamailio.org" target="_blank">40kamailio.org</a>@<a
 moz-do-not-send="true" href="http://192.168.0.56" target="_blank">192.168.0.56</a>]
    <br>
&nbsp;9(1986) DEBUG: to body ["101"&lt;<a class="moz-txt-link-freetext" href="sip:101%">sip:101%</a><a moz-do-not-send="true"
 href="http://40kamailio.org" target="_blank">40kamailio.org</a>@<a
 moz-do-not-send="true" href="http://192.168.0.56" target="_blank">192.168.0.56</a>&gt;<br>
]<br>
&nbsp;9(1986) DEBUG: add_param: tag=cc6e4259<br>
&nbsp;9(1986) DEBUG:parse_to:end of header reached, state=29<br>
&nbsp;9(1986) <span style="background-color: rgb(255, 255, 102);">radius_is_user_in():
Failure</span><br>
&nbsp;9(1986) parse_headers: flags=200<br>
&nbsp;9(1986) get_hdr_field: cseq &lt;CSeq&gt;: &lt;2&gt; &lt;REGISTER&gt;<br>
&nbsp;9(1986) DEBUG: get_hdr_body : content_length=0<br>
&nbsp;9(1986) found end of header<br>
&nbsp;9(1986) find_first_route: No Route headers found<br>
&nbsp;9(1986) loose_route: There is no Route HF<br>
&nbsp;9(1986) grep_sock_info - checking if host==us: 12==9 &amp;&amp;&nbsp;
[192.168.0.56] == [127.0.0.1]<br>
&nbsp;9(1986) grep_sock_info - checking if port 5060 matches port 5060<br>
&nbsp;9(1986) grep_sock_info - checking if host==us: 12==12 &amp;&amp;&nbsp;
[192.168.0.56] == [192.168.0.56]<br>
&nbsp;9(1986) grep_sock_info - checking if port 5060 matches port 5060<br>
&nbsp;9(1986) grep_sock_info - checking if host==us: 12==9 &amp;&amp;&nbsp;
[192.168.0.56] == [127.0.0.1]<br>
&nbsp;9(1986) grep_sock_info - checking if port 5060 matches port 5060<br>
&nbsp;9(1986) grep_sock_info - checking if host==us: 12==12 &amp;&amp;&nbsp;
[192.168.0.56] == [192.168.0.56]<br>
&nbsp;9(1986) grep_sock_info - checking if port 5060 matches port 5060<br>
&nbsp;9(1986) check_nonce(): comparing
[4c5649b2d78b205e6a5ca1c6dcdc54b84445dd9c] and
[4c5649b2d78b205e6a5ca1c6dcdc54b84445dd9c]<br>
&nbsp;9(1986) <span style="background-color: rgb(255, 255, 51);">ERROR:auth_radius:radius_authorize_sterman:
rc_auth failed</span><br>
&nbsp;9(1986) build_auth_hf(): 'WWW-Authenticate: Digest
realm="192.168.0.56", nonce="4c5649b2d78b205e6a5ca1c6dcdc54b84445dd9c"<br>
'<br>
&nbsp;9(1986) parse_headers: flags=ffffffffffffffff<br>
&nbsp;9(1986) check_via_address(192.168.0.148, 192.168.182.3, 0)<br>
&nbsp;9(1986) DEBUG:destroy_avp_list: destroying list (nil)<br>
&nbsp;9(1986) receive_msg: cleaning up<br>
    <br>
At freeradius also, no request goes from openser.<br>
    <br>
Please advise me how to get rid of this problem.<br>
    <br>
Best Regards,<br>
    <font color="#888888">Pratik</font>
    <div>
    <div class="h5"><br>
    <br>
    <div class="gmail_quote">On Wed, Jul 28, 2010 at 5:56 PM, Pratik
Shrestha <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:pratikdbl@gmail.com" target="_blank">pratikdbl@gmail.com</a>&gt;</span>
wrote:<br>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks
a lot. I will give it a try<br>
      <font color="#888888"><br>
Pratik</font>
      <div>
      <div><br>
      <br>
      <div class="gmail_quote">On Wed, Jul 28, 2010 at 3:48 PM,
Daniel-Constantin Mierla <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;</span>
wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,
        <div><br>
        <br>
On 7/22/10 6:06 AM, Pratik Shrestha wrote:<br>
        <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear All,<br>
          <br>
I am very new to OpenSer. I want to use latest version of OpenSer with
Radius. I need the documentation/tutorial on how to do this. Googling,
Ionly found for the old version. Please help me.<br>
        </blockquote>
        <br>
        </div>
indeed, there is a rather old version:<br>
        <br>
        <a moz-do-not-send="true"
 href="http://www.kamailio.org/docs/openser-radius-1.0.x.html"
 target="_blank">http://www.kamailio.org/docs/openser-radius-1.0.x.html</a><br>
        <br>
What I can say now is that you can skip the part of installing kamailio
and use next link instead:<br>
        <a moz-do-not-send="true"
 href="http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.0.x-from-git"
 target="_blank">http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.0.x-from-git</a><br>
        <br>
Radius client library is now in most of common Linux distributions, so
you can install it with the package manager (you need the devel headers
as well, the -dev package).<br>
        <br>
FreeRadius configuration should be more or less the same.<br>
        <br>
The config of kamailio has changed quite a lot. Use the default one
from kamailio, follow the WITH_AUTH define conditions and replace
auth_db with auth_radius modules and functions. Also, the rest of
radius modules were merged into misc_radius. For enabling radius acc,
you need to recompile acc module after editing the Makefile in module
directory.<br>
        <br>
Hope it helps to start, ask here if you get stuck.
        <div>
        <div><br>
        <br>
Cheers,<br>
Daniel<br>
        <br>
-- <br>
Daniel-Constantin Mierla<br>
        <a moz-do-not-send="true" href="http://www.asipto.com/"
 target="_blank">http://www.asipto.com/</a><br>
        <br>
        </div>
        </div>
      </blockquote>
      </div>
      <br>
      </div>
      </div>
    </blockquote>
    </div>
    <br>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com/</a>
</pre>
</body>
</html>