<!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>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></BODY></HTML>