<!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>
the radius client library has a file where you configure the servers,
have you configure it?<br>
<a class="moz-txt-link-freetext" href="http://www.kamailio.org/docs/openser-radius-1.0.x.html#radiusclient_ng_servers">http://www.kamailio.org/docs/openser-radius-1.0.x.html#radiusclient_ng_servers</a><br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
On 8/3/10 10:13 AM, Pratik Shrestha wrote:
<blockquote
 cite="mid:AANLkTikf9K9VASBgdFr-HH8Zuif_jQgSKj6k2MwQCdWt@mail.gmail.com"
 type="cite">Dear Daniel,
  <div><br>
  </div>
  <div>Yeah right. I totally forgot, its a reverse dns.&nbsp;</div>
  <div>Now I checked the radius server in debug mode and I cannot see
any request from openser trying to connect to radius server. So, the
request from openser is not reaching the radius server.&nbsp;</div>
  <div>Then I installed wireshark and checked the ip address&nbsp;<a
 moz-do-not-send="true" href="http://128-185-38-162.totisp.net:1812"
 target="_blank">128.185.38.162</a>&nbsp;(radius server ip add) in the
server where openser was installed. There also I did not find any entry
related to&nbsp;<a moz-do-not-send="true"
 href="http://128-185-38-162.totisp.net:1812" target="_blank">128.185.38.16</a>.</div>
  <div>So, it seems my configuration is wrong. I am sending you the
configuration of openser.cfg and radiusclient.conf.</div>
  <div><br>
  </div>
  <div>openser.cfg</div>
  <div><br>
  </div>
  <div>
  <div>SSH Secure Shell 3.2.3 (Build 279)</div>
  <div>Copyright (c) 2000-2003 SSH Communications Security Corp - <a
 moz-do-not-send="true" href="http://www.ssh.com/">http://www.ssh.com/</a></div>
  <div><br>
  </div>
  <div>This copy of SSH Secure Shell is a non-commercial version.</div>
  <div>This version does not include PKI and PKCS #11 functionality.</div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div>Linux isoftel-desktop 2.6.32-21-generic #32-Ubuntu SMP Fri Apr
16 08:10:02 UTC 2010 i686 GNU/Linux</div>
  <div>Ubuntu 10.04 LTS</div>
  <div><br>
  </div>
  <div>Welcome to Ubuntu!</div>
  <div>&nbsp;* Documentation: &nbsp;<a moz-do-not-send="true"
 href="https://help.ubuntu.com/">https://help.ubuntu.com/</a></div>
  <div><br>
  </div>
  <div>Last login: Tue Aug &nbsp;3 10:35:05 2010 from 192.168.0.148</div>
  <div>isoftel@isoftel-desktop:~$ cd /usr/local/etc/openser/</div>
  <div>isoftel@isoftel-desktop:/usr/local/etc/openser$ cat openser.cfg</div>
  <div>#</div>
  <div># $Id$</div>
  <div>#</div>
  <div># radius config script</div>
  <div>#</div>
  <div><br>
  </div>
  <div># ----------- global configuration parameters
------------------------</div>
  <div><br>
  </div>
  <div>debug=6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # debug level (cmd line: -dddddddddd)</div>
  <div>log_stderror=yes &nbsp; &nbsp;# (cmd line: -E)</div>
  <div><br>
  </div>
  <div>check_via=no &nbsp; &nbsp;# (cmd. line: -v)</div>
  <div>dns=no &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# (cmd. line: -r)</div>
  <div>rev_dns=no &nbsp; &nbsp; &nbsp;# (cmd. line: -R)</div>
  <div>port=5060</div>
  <div>children=4</div>
  <div>#listen=udp:localhost</div>
  <div>#alias="<a moz-do-not-send="true" href="http://kamailio.org">kamailio.org</a>"</div>
  <div><br>
  </div>
  <div>fifo="/tmp/openser_fifo"</div>
  <div><br>
  </div>
  <div># ------------------ module loading
----------------------------------</div>
  <div>mpath="/usr/local/lib/openser/modules"</div>
  <div><br>
  </div>
  <div>loadmodule "mysql.so"</div>
  <div>loadmodule "sl.so"</div>
  <div>loadmodule "tm.so"</div>
  <div>loadmodule "rr.so"</div>
  <div>loadmodule "maxfwd.so"</div>
  <div>loadmodule "avpops.so"</div>
  <div>loadmodule "usrloc.so"</div>
  <div>loadmodule "registrar.so"</div>
  <div>loadmodule "textops.so"</div>
  <div>loadmodule "xlog.so"</div>
  <div>loadmodule "uri.so"</div>
  <div>loadmodule "acc.so"</div>
  <div>loadmodule "auth.so"</div>
  <div>loadmodule "auth_radius.so"</div>
  <div>loadmodule "group_radius.so"</div>
  <div>loadmodule "avp_radius.so"</div>
  <div><br>
  </div>
  <div># ----------------- setting module-specific parameters
---------------</div>
  <div><br>
  </div>
  <div># -- usrloc params --</div>
  <div>#modparam("usrloc","db_url","mysql://openser:openserrw@localhost/openser")</div>
  <div>modparam("usrloc", "db_mode", 2)</div>
  <div><br>
  </div>
  <div># -- acc params --</div>
  <div>modparam("acc", "radius_flag", 1)</div>
  <div>modparam("acc", "radius_missed_flag", 2)</div>
  <div>modparam("acc", "log_flag", 1)</div>
  <div>modparam("acc", "log_missed_flag", 1)</div>
  <div>modparam("acc", "service_type", 15)</div>
  <div>modparam("acc", "radius_extra",
"Sip-Src-IP=$si;Sip-Src-Port=$sp")</div>
  <div>modparam("acc|auth_radius|group_radius|avp_radius",
"radius_config", "/etc/radiusclient-ng/radiusclient.conf")</div>
  <div><br>
  </div>
  <div># -- group_radius params --</div>
  <div>modparam("group_radius", "use_domain", 1)</div>
  <div><br>
  </div>
  <div># -- avpops params --</div>
  <div>modparam("avpops", "avp_aliases", "day=i:101;time=i:102")</div>
  <div><br>
  </div>
  <div># -- rr params --</div>
  <div># add value to ;lr param to make some broken UAs happy</div>
  <div>modparam("rr", "enable_full_lr", 1)</div>
  <div><br>
  </div>
  <div># ------------------------- &nbsp;request routing logic
-------------------</div>
  <div><br>
  </div>
  <div># main routing logic</div>
  <div><br>
  </div>
  <div>route{</div>
  <div><br>
  </div>
  <div>&nbsp;&nbsp; &nbsp;# initial sanity checks -- messages with</div>
  <div>&nbsp;&nbsp; &nbsp;# max_forwards==0, or excessively long requests</div>
  <div>&nbsp;&nbsp; &nbsp;if (!mf_process_maxfwd_header("10")) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply("483","Too Many Hops");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;exit;</div>
  <div>&nbsp;&nbsp; &nbsp;};</div>
  <div><br>
  </div>
  <div>&nbsp;&nbsp; &nbsp;if (msg:len &gt;= &nbsp;2048 ) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply("513", "Message too big");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;exit;</div>
  <div>&nbsp;&nbsp; &nbsp;};</div>
  <div><br>
  </div>
  <div>&nbsp;&nbsp; &nbsp;# check if user is suspended</div>
  <div>&nbsp;&nbsp; &nbsp;if(is_method("REGISTER|INVITE|MESSAGE|OPTIONS|SUBSCRIBE"))</div>
  <div>&nbsp;&nbsp; &nbsp;{</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (radius_is_user_in("From", "suspended")) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply("403", "Forbidden - suspended");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;};</div>
  <div>&nbsp;&nbsp; &nbsp;};</div>
  <div>&nbsp;&nbsp; &nbsp;</div>
  <div>&nbsp;&nbsp; &nbsp;# we record-route all messages -- to make sure that</div>
  <div>&nbsp;&nbsp; &nbsp;# subsequent messages will go through our proxy; that's</div>
  <div>&nbsp;&nbsp; &nbsp;# particularly good if upstream and downstream entities</div>
  <div>&nbsp;&nbsp; &nbsp;# use different transport protocol</div>
  <div>&nbsp;&nbsp; &nbsp;if (!method=="REGISTER")</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;record_route();</div>
  <div><br>
  </div>
  <div>&nbsp;&nbsp; &nbsp;# subsequent messages withing a dialog should take the</div>
  <div>&nbsp;&nbsp; &nbsp;# path determined by record-routing</div>
  <div>&nbsp;&nbsp; &nbsp;if (loose_route()) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;# mark routing logic in request</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;append_hf("P-hint: rr-enforced\r\n");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if(is_method("BYE"))</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{ # log it all the time</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;acc_rad_request("200 ok");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;acc_log_request("200 ok");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;route(1);</div>
  <div>&nbsp;&nbsp; &nbsp;};</div>
  <div><br>
  </div>
  <div>&nbsp;&nbsp; &nbsp;if(is_method("INVITE") &amp;&amp; !has_totag())</div>
  <div>&nbsp;&nbsp; &nbsp;{ &nbsp; # set the acc flags</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;setflag(1);</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;setflag(2);</div>
  <div>&nbsp;&nbsp; &nbsp;};</div>
  <div><br>
  </div>
  <div>&nbsp;&nbsp; &nbsp;if (!uri==myself) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;# check if user is allowed to do voip calls to other
domains</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if(is_method("INVITE|MESSAGE")) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (!radius_is_user_in("From", "voip")) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply("403", "Forbidden VoIP");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;};</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;# mark routing logic in request</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;append_hf("P-hint: outbound\r\n");&nbsp;</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;route(1);</div>
  <div>&nbsp;&nbsp; &nbsp;};</div>
  <div><br>
  </div>
  <div>&nbsp;&nbsp; &nbsp;# if the request is for other domain use UsrLoc</div>
  <div>&nbsp;&nbsp; &nbsp;# (in case, it does not work, use the following command</div>
  <div>&nbsp;&nbsp; &nbsp;# with proper names and addresses in it)</div>
  <div>&nbsp;&nbsp; &nbsp;if (uri==myself) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;# authenticate registers</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (method=="REGISTER") {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (!radius_www_authorize("")) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;www_challenge("", "1");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};</div>
  <div><br>
  </div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# check the src ip address</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(!avp_check("i:2", "eq/$src_ip/ig"))</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply("403", "Forbidden IP");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};</div>
  <div><br>
  </div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;save("location");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;};</div>
  <div><br>
  </div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;# calls to pstn</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if(uri=~<a class="moz-txt-link-rfc2396E" href="sip:00[1-9][0-9]+@">"sip:00[1-9][0-9]+@"</a>) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(is_method("INVITE") &amp;&amp; !has_totag()) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (!radius_is_user_in("From", "pstn")) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply("403", "Forbidden PSTN");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# set gateway address</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewritehostport("localhost:5090");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;route(1);</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;};</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;# load callee's avps</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if(avp_load_radius("callee"))</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# check if user has time filter enabled</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(avp_check("i:3", "eq/i:1"))</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# print time in an avp</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;avp_printf("i:100", "$Tf");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# extract day</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;avp_subst("i:100/i:101", "/(.{3}) .+/*\1*/");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(!avp_check("i:6", "fm/$day")) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply("403", "Forbidden - day");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# extract 'hours:minutes'</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;avp_subst("i:100/i:102", "/(.{10})
(.{5}):.+/\2/");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if((is_avp_set("i:4") &amp;&amp;
avp_check("i:4", "gt/$time"))&nbsp;</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|| (is_avp_set("i:5") &amp;&amp;
avp_check("i:5", "lt/$time"))) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply("403", "Forbidden - time");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;};</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;# native SIP destinations are handled using our USRLOC DB</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (!lookup("location")) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# log to acc as missed call</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;acc_rad_request("404 Not Found");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;acc_log_request("404 Not Found");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply("404", "Not Found");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;};</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;append_hf("P-hint: usrloc applied\r\n");&nbsp;</div>
  <div>&nbsp;&nbsp; &nbsp;};</div>
  <div><br>
  </div>
  <div>&nbsp;&nbsp; &nbsp;route(1);</div>
  <div>}</div>
  <div><br>
  </div>
  <div># generic forward</div>
  <div>route[1] {</div>
  <div>&nbsp;&nbsp; &nbsp;# send it out now; use stateful forwarding as it works
reliably</div>
  <div>&nbsp;&nbsp; &nbsp;# even for UDP2TCP</div>
  <div>&nbsp;&nbsp; &nbsp;if (!t_relay()) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;sl_reply_error();</div>
  <div>&nbsp;&nbsp; &nbsp;};</div>
  <div>&nbsp;&nbsp; &nbsp;exit;</div>
  <div>}</div>
  </div>
  <div><br>
  </div>
  <div><br>
radiusclient-ng.conf</div>
  <div><br>
  </div>
  <div>
  <div># General settings</div>
  <div><br>
  </div>
  <div># specify which authentication comes first respectively which</div>
  <div># authentication is used. possible values are: "radius" and
"local".</div>
  <div># if you specify "radius,local" then the RADIUS server is asked</div>
  <div># first then the local one. if only one keyword is specified only</div>
  <div># this server is asked.</div>
  <div>auth_order &nbsp; &nbsp; &nbsp;radius&nbsp;</div>
  <div>#add 'local' with comma</div>
  <div><br>
  </div>
  <div># maximum login tries a user has</div>
  <div>login_tries &nbsp; &nbsp; 4</div>
  <div><br>
  </div>
  <div># timeout for all login tries</div>
  <div># if this time is exceeded the user is kicked out</div>
  <div>login_timeout &nbsp; 60</div>
  <div><br>
  </div>
  <div># name of the nologin file which when it exists disables logins.</div>
  <div># it may be extended by the ttyname which will result in</div>
  <div># a terminal specific lock (e.g. /etc/nologin.ttyS2 will disable</div>
  <div># logins on /dev/ttyS2)</div>
  <div>nologin /etc/nologin</div>
  <div><br>
  </div>
  <div># name of the issue file. it's only display when no username is
passed</div>
  <div># on the radlogin command line</div>
  <div>issue &nbsp; /etc/radiusclient-ng/issue</div>
  <div><br>
  </div>
  <div># RADIUS settings</div>
  <div><br>
  </div>
  <div># RADIUS server to use for authentication requests. this config</div>
  <div># item can appear more then one time. if multiple servers are</div>
  <div># defined they are tried in a round robin fashion if one</div>
  <div># server is not answering.</div>
  <div># optionally you can specify a the port number on which is remote</div>
  <div># RADIUS listens separated by a colon from the hostname. if</div>
  <div># no port is specified /etc/services is consulted of the radius</div>
  <div># service. if this fails also a compiled in default is used.</div>
  <div>authserver &nbsp; &nbsp; &nbsp;128.185.38.162</div>
  <div><br>
  </div>
  <div># RADIUS server to use for accouting requests. All that I</div>
  <div># said for authserver applies, too.&nbsp;</div>
  <div>#</div>
  <div>acctserver &nbsp; &nbsp; &nbsp;128.185.38.162</div>
  <div><br>
  </div>
  <div># file holding shared secrets used for the communication</div>
  <div># between the RADIUS client and server</div>
  <div>servers &nbsp; &nbsp; &nbsp; &nbsp; /etc/radiusclient-ng/servers</div>
  <div><br>
  </div>
  <div># dictionary of allowed attributes and values</div>
  <div># just like in the normal RADIUS distributions</div>
  <div>dictionary &nbsp; &nbsp; &nbsp;/etc/radiusclient-ng/dictionary</div>
  <div><br>
  </div>
  <div># program to call for a RADIUS authenticated login</div>
  <div>login_radius &nbsp; &nbsp;/usr/sbin/login.radius</div>
  <div><br>
  </div>
  <div># file which holds sequence number for communication with the</div>
  <div># RADIUS server</div>
  <div>seqfile &nbsp; &nbsp; &nbsp; &nbsp; /var/run/radius.seq</div>
  <div><br>
  </div>
  <div># file which specifies mapping between ttyname and NAS-Port
attribute</div>
  <div>mapfile &nbsp; &nbsp; &nbsp; &nbsp; /etc/radiusclient-ng/port-id-map</div>
  <div><br>
  </div>
  <div># default authentication realm to append to all usernames if no</div>
  <div># realm was explicitly specified by the user</div>
  <div># the radiusd directly form Livingston doesnt use any realms, so
leave</div>
  <div># it blank then</div>
  <div>default_realm&nbsp;</div>
  <div><br>
  </div>
  <div># time to wait for a reply from the RADIUS server</div>
  <div>radius_timeout &nbsp;10</div>
  <div><br>
  </div>
  <div># resend request this many times before trying the next server</div>
  <div>radius_retries &nbsp;3</div>
  <div><br>
  </div>
  <div># local address from which radius packets have to be sent</div>
  <div>bindaddr localhost</div>
  <div>#change with 'localhost'&nbsp;</div>
  <div><br>
  </div>
  <div># LOCAL settings</div>
  <div><br>
  </div>
  <div># program to execute for local login</div>
  <div># it must support the -f flag for preauthenticated login</div>
  <div>login_local &nbsp; &nbsp; /bin/login</div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div>I have edited servers file also with the servername and secret.</div>
  <div><br>
  </div>
  <div>Thank you very much.</div>
  <div><br>
  </div>
  <div>Regards,</div>
  <div>Pratik</div>
  <div><br>
  </div>
  <div class="gmail_quote">On Mon, Aug 2, 2010 at 11:26 PM,
Daniel-Constantin Mierla <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:miconda@gmail.com">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;">
    <div bgcolor="#ffffff" text="#000000">Hello,
    <div class="im"><br>
    <br>
On 8/2/10 12:36 PM, Pratik Shrestha wrote:
    <blockquote 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" target="_blank">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" target="_blank">totisp.net</a> is added. I
haven't mentioned
it anywhere. <br>
    </blockquote>
    <br>
    </div>
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>
    <font color="#888888">Daniel</font>
    <div>
    <div class="h5"><br>
    <br>
    <blockquote 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" 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;">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 moz-do-not-send="true">&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
 moz-do-not-send="true">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 moz-do-not-send="true">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><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 cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a>
    </pre>
    </div>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
  </div>
</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>