<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18828">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Configuration in the proxy in Freeradius was
causing multiple instances of radius in the server.</FONT></DIV>
<DIV><FONT size=2 face=Arial>The first one accepted the message but the other
returned the message to radiusclient-ng</FONT></DIV>
<DIV><FONT size=2 face=Arial>so it looked as if rasdiusclient-ng was actually
sending several messages went it was only </FONT></DIV>
<DIV><FONT size=2 face=Arial>sending one message but getting multiple
replies.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Just to document in case someone does this by
mistake.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thanks,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Alberto</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=listas@b2br.net href="mailto:listas@b2br.net">Alberto Listas</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=users@lists.opensips.org
href="mailto:users@lists.opensips.org">users</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, November 21, 2009 11:21
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [OpenSIPS-Users] Opensips AAA /
Radius Question</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2 face=Arial>Hi,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I am having difficulty setting up acc with
radiusclient-ng and a freeradius server to use CDRTool.</FONT></DIV>
<DIV><FONT size=2 face=Arial>Opensips sends 3 records: 1 Start, 1 CallStart
and 1 CallStop, the same that</FONT></DIV>
<DIV><FONT size=2 face=Arial>it does with DB backend.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>The problem is that Radius doesn't accept the
last 2 because it only expects</FONT></DIV>
<DIV><FONT size=2 face=Arial>one record per Session-Id.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>So in the Opensips I get:</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Nov 21 12:32:37 x4 /sbin/opensips[3931]:
rc_send_server: no reply from RADIUS server XXXXXXXX:1813<BR></FONT><FONT
size=2 face=Arial>Nov 21 12:32:37 x4 /sbin/opensips[3931]:
ERROR:acc:acc_aaa_request: Radius accounting request failed for status:
'Start' Call-Id: 'ZDVjNmFiZjU5NzA3MWQ4N2E3MWI2MjhiYmE1NmY1N2M.'</FONT></DIV>
<DIV><FONT size=2 face=Arial>Nov 21 12:33:38 x4 /sbin/opensips[3932]:
rc_send_server: no reply from RADIUS server XXXXXXXX:1813<BR>Nov 21 12:33:38
x4 /sbin/opensips[3932]: ERROR:acc:acc_aaa_request: Radius accounting request
failed for status: 'Stop' Call-Id:
'ZDVjNmFiZjU5NzA3MWQ4N2E3MWI2MjhiYmE1NmY1N2M.'<BR>Nov 21 12:33:38 x4
media-dispatcher[1243]: error: failed to send radius accounting
record:</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>And in the FreeRadius I get:</DIV>
<DIV><BR>Sat Nov 21 12:32:17 2009 : Error: rlm_sql (sql): Couldn't insert SQL
accounting START record - Duplicate entry
'ZDVjNmFiZjU5NzA3MWQ4N2E3MWI2MjhiYmE1NmY1N2M.-as2080e7aa-f5066f05' for key
'sess_ id'<BR>Sat Nov 21 12:32:17 2009 : Error: rlm_sql_mysql: Cannot
store result<BR>Sat Nov 21 12:32:17 2009 : Error: rlm_sql_mysql: MySQL error
'Duplicate entry
'ZDVjNmFiZjU5NzA3MWQ4N2E3MWI2MjhiYmE1NmY1N2M.-as2080e7aa-f5066f05' for key
'sess_id''<BR>Sat Nov 21 12:32:27 2009 : Error: rlm_sql (sql): Couldn't insert
SQL accounting START record - Duplicate entry
'ZDVjNmFiZjU5NzA3MWQ4N2E3MWI2MjhiYmE1NmY1N2M.-as2080e7aa-f5066f05' for key
'sess_id'<BR>Sat Nov 21 12:32:27 2009 : Error: rlm_sql_mysql: Cannot store
result<BR>Sat Nov 21 12:32:27 2009 : Error: rlm_sql_mysql: MySQL error
'Duplicate entry
'ZDVjNmFiZjU5NzA3MWQ4N2E3MWI2MjhiYmE1NmY1N2M.-as2080e7aa-f5066f05' for key
'sess_id''<BR></DIV>
<DIV>Am I doing something wrong or is this the right behavior?</DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV> </DIV>
<DIV>Alberto</DIV>
<DIV> </DIV></FONT>
<P>
<HR>
<P></P>_______________________________________________<BR>Users mailing
list<BR>Users@lists.opensips.org<BR>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<BR></BLOCKQUOTE></BODY></HTML>