[OpenSIPS-Users] Opensips AAA / Radius Question

Alberto Listas listas at b2br.net
Sat Nov 21 14:21:43 CET 2009


Hi,

I am having difficulty setting up acc with radiusclient-ng and a freeradius server to use CDRTool.
Opensips sends 3 records: 1 Start, 1 CallStart and 1 CallStop, the same that
it does with DB backend.

The problem is that Radius doesn't accept the last 2 because it only expects
one record per Session-Id.

So in the Opensips I get:

Nov 21 12:32:37 x4 /sbin/opensips[3931]: rc_send_server: no reply from RADIUS server XXXXXXXX:1813
Nov 21 12:32:37 x4 /sbin/opensips[3931]: ERROR:acc:acc_aaa_request: Radius accounting request failed for status: 'Start' Call-Id: 'ZDVjNmFiZjU5NzA3MWQ4N2E3MWI2MjhiYmE1NmY1N2M.'
Nov 21 12:33:38 x4 /sbin/opensips[3932]: rc_send_server: no reply from RADIUS server XXXXXXXX:1813
Nov 21 12:33:38 x4 /sbin/opensips[3932]: ERROR:acc:acc_aaa_request: Radius accounting request failed for status: 'Stop' Call-Id: 'ZDVjNmFiZjU5NzA3MWQ4N2E3MWI2MjhiYmE1NmY1N2M.'
Nov 21 12:33:38 x4 media-dispatcher[1243]: error: failed to send radius accounting record:

And in the FreeRadius I get:

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'
Sat Nov 21 12:32:17 2009 : Error: rlm_sql_mysql: Cannot store result
Sat Nov 21 12:32:17 2009 : Error: rlm_sql_mysql: MySQL error 'Duplicate entry 'ZDVjNmFiZjU5NzA3MWQ4N2E3MWI2MjhiYmE1NmY1N2M.-as2080e7aa-f5066f05' for key 'sess_id''
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'
Sat Nov 21 12:32:27 2009 : Error: rlm_sql_mysql: Cannot store result
Sat Nov 21 12:32:27 2009 : Error: rlm_sql_mysql: MySQL error 'Duplicate entry 'ZDVjNmFiZjU5NzA3MWQ4N2E3MWI2MjhiYmE1NmY1N2M.-as2080e7aa-f5066f05' for key 'sess_id''

Am I doing something wrong or is this the right behavior?

Thanks,

Alberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20091121/5f8d557a/attachment.htm 


More information about the Users mailing list