<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi guys, </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> I am trying to set up radius and avp for ages
now, and this time i think i am close to it. I have a </FONT><FONT face=Arial
size=2>problem and I can't find any information about it.<BR> The thing is,
my soft agent (set to uid 101) can't register, and it is getting "Forbidden IP"
even </FONT><FONT face=Arial size=2>with this in the cfg file (see below) I have
set up freeradius and radiusclient-ng according to the manual on </FONT><FONT
face=Arial size=2><A
href="http://www.openser.org/docs/openser-radius-1.0.x.html">http://www..openser.org/docs/openser-radius-1.0.x.html</A>.
I can't find anything on the error i am getting in my </FONT><FONT face=Arial
size=2>log. If you need my complete .cfg or log file, just ask, and I will send
them promptly.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2> thanks
in advance, best regards, Zoran</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2><STRONG>openser.cfg:</STRONG><BR>...<BR>xlog("L_ERR","rpid =
$avp(s:rpid)");<BR>xlog("L_ERR","adresa =
$avp(s:adresa)");<BR>xlog("L_ERR","adresa2 = $avp(s:adresa2)");</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># check the src
ip address<BR>#
avp_load_radius("caller");<BR> if(!avp_check("$adresa",
"eq/$adresa/ig"))<BR>
{<BR>
sl_send_reply("403", "Forbidden
IP");<BR>
exit;<BR>
};<BR>
save("location");<BR>
exit;<BR> };<BR>...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><STRONG>freeradius/users:</STRONG><BR>...<BR>101
Auth-Type := Digest, User-Password ==
"101"<BR> Reply-Message =
"Authenticated",<BR> Sip-Avp +=
"rpid:101",<BR> Sip-Avp +=
"adresa:10.0.0.157",<BR> Sip-Avp +=
"adresa2:10.0.0.157"<BR>...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><BR><STRONG>last entries in the log after the
rejected register.<BR></STRONG>...<BR>DEBUG:auth_radius:extract_avp: AVP val is
<10.0.0.157><BR>DEBUG:auth_radius:generate_avps: AVP
'adresa'/0='10.0.0.157'/0 has been added<BR>DEBUG:auth_radius:extract_avp:
string is <adresa2:10.0.0.157><BR>DEBUG:auth_radius:extract_avp: AVP name
is <adresa2><BR>DEBUG:auth_radius:extract_avp: AVP val is
<10.0.0.157><BR>DEBUG:auth_radius:generate_avps: AVP
'adresa2'/0='10.0.0.157'/0 has been added<BR>DEBUG:auth_radius:extract_avp:
string is <rpid:101><BR>DEBUG:auth_radius:extract_avp: AVP name is
<rpid><BR>DEBUG:auth_radius:extract_avp: AVP val is
<101><BR>DEBUG:auth_radius:generate_avps: AVP 'rpid'/0='101'/0 has been
added<BR>DEBUG:auth_radius:extract_avp: string is
<adresa:10.0.0.157><BR>DEBUG:auth_radius:extract_avp: AVP name is
<adresa><BR>DEBUG:auth_radius:extract_avp: AVP val is
<10.0.0.157><BR>DEBUG:auth_radius:generate_avps: AVP
'adresa'/0='10.0.0.157'/0 has been added<BR>DEBUG:auth_radius:extract_avp:
string is <adresa2:10.0.0.157><BR>DEBUG:auth_radius:extract_avp: AVP name
is <adresa2><BR>DEBUG:auth_radius:extract_avp: AVP val is
<10.0.0.157><BR>DEBUG:auth_radius:generate_avps: AVP
'adresa2'/0='10.0.0.157'/0 has been added<BR>rpid = 101<BR>adresa =
10.0.0.157<BR>adresa2 = 10.0.0.157<BR>xl_get_spec_value: error - null
sp->itf<BR>ERROR:avpops:ops_check_avp: cannot get src value<BR>parse_headers:
flags=ffffffffffffffff<BR>check_via_address(192.168.52.145, 192.168.52.145,
0)<BR>DEBUG:destroy_avp_list: destroying list 0x404d9238<BR>receive_msg:
cleaning up<BR></FONT></DIV></BODY></HTML>