After editing your radiusclient.conf file have u restarted your opensips server. I was facing the same kind of issue. after restarting the opensips server it started to work properly<br><br><br><div class="gmail_quote">On Fri, Jun 12, 2009 at 12:21 PM, Uwe Kastens <span dir="ltr"><<a href="mailto:kiste@kiste.org">kiste@kiste.org</a>></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;">Hi,<br>
<br>
This is strange. Could you post your opensips.cfg or send it to me directly?<br>
<div><div></div><div class="h5"><br>
BR<br>
<br>
Uwe<br>
<br>
<br>
<br>
Leon Li schrieb:<br>
> The port is 1812, and specify them in radiusclient.conf with<br>
> Authserver <a href="http://127.0.0.1:1812" target="_blank">127.0.0.1:1812</a><br>
><br>
> Run radius -X returns nothing when SIP client trying to register. :(<br>
><br>
> Regards,<br>
> Leon<br>
><br>
><br>
> -----Original Message-----<br>
> From: Uwe Kastens [mailto:<a href="mailto:kiste@kiste.org">kiste@kiste.org</a>]<br>
> Sent: Thursday, 11 June 2009 5:02 PM<br>
> To: Leon Li<br>
> Cc: <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
> Subject: Re: [OpenSIPS-Users] No RADIUS traffic<br>
><br>
> That is strange. Could you make sure that your radiusports are correct?<br>
> And could you start your radius-server with -X to have debug output on<br>
> stdout?<br>
><br>
> BR<br>
><br>
> Uwe<br>
><br>
> Leon Li schrieb:<br>
>> I started the testing with RADIUS server on the same box as OpenSIPs.<br>
>> There is nothing hit RADIUS logs.<br>
>><br>
>> Regards,<br>
>> Leon<br>
>><br>
>><br>
>> -----Original Message-----<br>
>> From: Uwe Kastens [mailto:<a href="mailto:kiste@kiste.org">kiste@kiste.org</a>]<br>
>> Sent: Wednesday, 10 June 2009 4:29 PM<br>
>> To: Leon Li<br>
>> Cc: <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
>> Subject: Re: [OpenSIPS-Users] No RADIUS traffic<br>
>><br>
>> Hi,<br>
>><br>
>> Looks like that.<br>
>> Jun 10 00:47:29 [24576] ERROR:auth_radius:radius_authorize_sterman:<br>
>> rc_auth failed<br>
>><br>
>> Your radius server is a remote server? Could you try to start sniffing<br>
>> at the opensips server?<br>
>><br>
>> BR<br>
>><br>
>> Uwe<br>
>><br>
>><br>
>> Jun 10 00:47:29 [24576] ERROR:auth_radius:radius_authorize_sterman:<br>
>> rc_auth failed<br>
>><br>
>> Leon Li schrieb:<br>
>>> My radiusclient.conf is almost the same as this, except the different<br>
>>> directory. I turned on debug as below and run OpenSIPs as root (-u<br>
>> root)<br>
>>> but still nothing shows it try to send authentication to radius?<br>
>>><br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_msg: SIP Request:<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_msg: method: <REGISTER><br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_msg: uri:<br>
>>> <sip:202.158.197.134><br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_msg: version: <SIP/2.0><br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_headers: flags=2<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_to: end of header reached,<br>
>>> state=10<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_to: display={"test"},<br>
>>> ruri={<a href="mailto:sip%3Atest@202.158.197.134">sip:test@202.158.197.134</a>}<br>
>>> Jun 10 00:47:29 [24576] DBG:core:get_hdr_field: <To> [35];<br>
>>> uri=[<a href="mailto:sip%3Atest@202.158.197.134">sip:test@202.158.197.134</a>]<br>
>>> Jun 10 00:47:29 [24576] DBG:core:get_hdr_field: to body ["test"<br>
>>> <<a href="mailto:sip%3Atest@202.158.197.134">sip:test@202.158.197.134</a>><br>
>>> ]<br>
>>> Jun 10 00:47:29 [24576] DBG:core:get_hdr_field: cseq <CSeq>: <1><br>
>>> <REGISTER><br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_via_param: found param type<br>
>> 232,<br>
>>> <branch> = <z9hG4bK-3ab88355ef-DL>; state=16<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_via: end of header reached,<br>
>>> state=5<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_headers: via found, flags=2<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_headers: this is the first via<br>
>>> Jun 10 00:47:29 [24576] DBG:core:receive_msg: After parse_msg...<br>
>>> Jun 10 00:47:29 [24576] DBG:core:receive_msg: preparing to run<br>
> routing<br>
>>> scripts...<br>
>>> Jun 10 00:47:29 [24576] DBG:maxfwd:is_maxfwd_present: value = 70<br>
>>> Jun 10 00:47:29 [24576] DBG:uri:has_totag: no totag<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_headers: flags=78<br>
>>> Jun 10 00:47:29 [24576] DBG:tm:t_lookup_request: start searching:<br>
>>> hash=44313, isACK=0<br>
>>> Jun 10 00:47:29 [24576] DBG:tm:matching_3261: RFC3261 transaction<br>
>>> matching failed<br>
>>> Jun 10 00:47:29 [24576] DBG:tm:t_lookup_request: no transaction found<br>
>>> Jun 10 00:47:29 [24576] DBG:core:grep_sock_info: checking if<br>
> host==us:<br>
>>> 15==15 && [202.158.197.134] == [202.158.197.134]<br>
>>> Jun 10 00:47:29 [24576] DBG:core:grep_sock_info: checking if port<br>
> 5060<br>
>>> matches port 5060<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_to_param: tag=DLdda82ca71a<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_to_param: epid=09C9A6A0<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_to: end of header reached,<br>
>>> state=29<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_to: display={"test"},<br>
>>> ruri={<a href="mailto:sip%3Atest@202.158.197.134">sip:test@202.158.197.134</a>}<br>
>>> REGISTER for (test) sip:202.158.197.134<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_headers: flags=4000<br>
>>> Jun 10 00:47:29 [24576] DBG:core:get_hdr_field: content_length=0<br>
>>> Jun 10 00:47:29 [24576] DBG:core:get_hdr_field: found end of header<br>
>>> Jun 10 00:47:29 [24576] DBG:auth:pre_auth: credentials with given<br>
>> realm<br>
>>> not found<br>
>>> Proxy Authentication Required (Digest)<br>
>>> Jun 10 00:47:29 [24576] DBG:auth:build_auth_hf: 'WWW-Authenticate:<br>
>>> Digest realm="202.158.197.134",<br>
>>> nonce="4a2f03cd2aecc81d4dd620f4ff564bed1d4d6963"<br>
>>> '<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_headers:<br>
> flags=ffffffffffffffff<br>
>>> Jun 10 00:47:29 [24576] DBG:core:check_via_address: params<br>
>>> 202.158.213.91, 202.158.213.91, 0<br>
>>> Jun 10 00:47:29 [24576] DBG:core:destroy_avp_list: destroying list<br>
>> (nil)<br>
>>> Jun 10 00:47:29 [24576] DBG:core:receive_msg: cleaning up<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_msg: SIP Request:<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_msg: method: <REGISTER><br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_msg: uri:<br>
>>> <sip:202.158.197.134><br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_msg: version: <SIP/2.0><br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_headers: flags=2<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_to: end of header reached,<br>
>>> state=10<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_to: display={"test"},<br>
>>> ruri={<a href="mailto:sip%3Atest@202.158.197.134">sip:test@202.158.197.134</a>}<br>
>>> Jun 10 00:47:29 [24576] DBG:core:get_hdr_field: <To> [35];<br>
>>> uri=[<a href="mailto:sip%3Atest@202.158.197.134">sip:test@202.158.197.134</a>]<br>
>>> Jun 10 00:47:29 [24576] DBG:core:get_hdr_field: to body ["test"<br>
>>> <<a href="mailto:sip%3Atest@202.158.197.134">sip:test@202.158.197.134</a>><br>
>>> ]<br>
>>> Jun 10 00:47:29 [24576] DBG:core:get_hdr_field: cseq <CSeq>: <2><br>
>>> <REGISTER><br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_via_param: found param type<br>
>> 232,<br>
>>> <branch> = <z9hG4bK-4e1197fe1e-DL>; state=16<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_via: end of header reached,<br>
>>> state=5<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_headers: via found, flags=2<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_headers: this is the first via<br>
>>> Jun 10 00:47:29 [24576] DBG:core:receive_msg: After parse_msg...<br>
>>> Jun 10 00:47:29 [24576] DBG:core:receive_msg: preparing to run<br>
> routing<br>
>>> scripts...<br>
>>> Jun 10 00:47:29 [24576] DBG:maxfwd:is_maxfwd_present: value = 70<br>
>>> Jun 10 00:47:29 [24576] DBG:uri:has_totag: no totag<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_headers: flags=78<br>
>>> Jun 10 00:47:29 [24576] DBG:tm:t_lookup_request: start searching:<br>
>>> hash=44310, isACK=0<br>
>>> Jun 10 00:47:29 [24576] DBG:tm:matching_3261: RFC3261 transaction<br>
>>> matching failed<br>
>>> Jun 10 00:47:29 [24576] DBG:tm:t_lookup_request: no transaction found<br>
>>> Jun 10 00:47:29 [24576] DBG:core:grep_sock_info: checking if<br>
> host==us:<br>
>>> 15==15 && [202.158.197.134] == [202.158.197.134]<br>
>>> Jun 10 00:47:29 [24576] DBG:core:grep_sock_info: checking if port<br>
> 5060<br>
>>> matches port 5060<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_to_param: tag=DLdda82ca71a<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_to_param: epid=09C9A6A0<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_to: end of header reached,<br>
>>> state=29<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_to: display={"test"},<br>
>>> ruri={<a href="mailto:sip%3Atest@202.158.197.134">sip:test@202.158.197.134</a>}<br>
>>> REGISTER for (test) sip:202.158.197.134<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_headers: flags=4000<br>
>>> Jun 10 00:47:29 [24576] DBG:core:get_hdr_field: content_length=0<br>
>>> Jun 10 00:47:29 [24576] DBG:auth:check_nonce: comparing<br>
>>> [4a2f03cd2aecc81d4dd620f4ff564bed1d4d6963] and<br>
>>> [4a2f03cd2aecc81d4dd620f4ff564bed1d4d6963]<br>
>>> Jun 10 00:47:29 [24576] ERROR:auth_radius:radius_authorize_sterman:<br>
>>> rc_auth failed<br>
>>> Proxy Authentication Required (Digest)<br>
>>> Jun 10 00:47:29 [24576] DBG:auth:build_auth_hf: 'WWW-Authenticate:<br>
>>> Digest realm="202.158.197.134",<br>
>>> nonce="4a2f03cd2aecc81d4dd620f4ff564bed1d4d6963"<br>
>>> '<br>
>>> Jun 10 00:47:29 [24576] DBG:core:parse_headers:<br>
> flags=ffffffffffffffff<br>
>>> Jun 10 00:47:29 [24576] DBG:core:get_hdr_field: found end of header<br>
>>> Jun 10 00:47:29 [24576] DBG:core:check_via_address: params<br>
>>> 202.158.213.91, 202.158.213.91, 0<br>
>>> Jun 10 00:47:29 [24576] DBG:core:destroy_avp_list: destroying list<br>
>> (nil)<br>
>>> Jun 10 00:47:29 [24576] DBG:core:receive_msg: cleaning up<br>
>>><br>
>>> Regards,<br>
>>> Leon<br>
>>><br>
>>> -----Original Message-----<br>
>>> From: Uwe Kastens [mailto:<a href="mailto:kiste@kiste.org">kiste@kiste.org</a>]<br>
>>> Sent: Tuesday, 9 June 2009 5:27 PM<br>
>>> To: Leon Li<br>
>>> Cc: <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
>>> Subject: Re: [OpenSIPS-Users] No RADIUS traffic<br>
>>><br>
>>> Hi,<br>
>>><br>
>>> cat radiusclient.conf |grep -v ^#|grep -v ^$<br>
>>> auth_order radius,local<br>
>>> login_tries 4<br>
>>> login_timeout 60<br>
>>> nologin /etc/nologin<br>
>>> issue /etc/radiusclient-ng/issue<br>
>>> authserver localhost<br>
>>> acctserver localhost<br>
>>> servers /etc/radiusclient-ng/servers<br>
>>> dictionary /etc/radiusclient-ng/dictionary<br>
>>> login_radius /usr/sbin/login.radius<br>
>>> seqfile /var/run/opensips/radius.seq<br>
>>> mapfile /etc/radiusclient-ng/port-id-map<br>
>>> default_realm<br>
>>> radius_timeout 10<br>
>>> radius_retries 3<br>
>>> bindaddr localhost<br>
>>> login_local /bin/login<br>
>>><br>
>>> BR<br>
>>><br>
>>> Uwe<br>
>>><br>
>>><br>
>><br>
><br>
><br>
<br>
<br>
--<br>
<br>
kiste lat: 54.322684, lon: 10.13586<br>
<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Thanking You,<br>Ashwini BR Naidu<br>