[OpenSIPS-Users] Radius CDR records depend who hangs up first
jeff at data102.com
Wed Nov 11 16:35:22 CET 2009
I'm not the RADIUS expert at our organization, but we do log to RADIUS
and then use CDRTool to rate calls.
With CDRTool, we set an AVP called $avp(s:billing_party) and send it to
RADIUS, which is then written to MySQL, which is later interpreted by
CDRTool. CDRTool uses this variable to determine who the billing party
is. You have to be a little clever with your scripting when you set it,
however. In your case it sounds like you're logging a BYE packet, which
could be sent by either party, and then interpreting the sender of that
packet as the billing party. In our case, we have numerous 'if'
statements surrounding BYEs to determine which of the users was the
Are you using CDRTool or rating with another technique? If an
alternative, what do you use for determining who the billing party is?
From: users-bounces at lists.opensips.org
[mailto:users-bounces at lists.opensips.org] On Behalf Of John Quick
Sent: Wednesday, November 11, 2009 8:28 AM
To: users at lists.opensips.org
Subject: [OpenSIPS-Users] Radius CDR records depend who hangs up first
Using Opensips version 1.6.0 with radiusclient-ng and the new AAA
modules for authentication and
accounting. The radius server is configured to write CDR records to a
MySQL database. The records it
is writing to the table radius.radacct are sometimes merged into one
record per call, but other times
appear as two records per call.
The scenario for my test calls is:
Remote IP phone ----> Opensips ----> Gateway ----> Carrier ---->
The device making the call and the dialled number are identical - all
that is different is the person
who hangs up first. Only when the called party (mobile phone) hangs up
first do I get two CDR records.
These records both have the same Call-ID (shown in the field
Is this behaviour expected or does it indicate some kind of
Users mailing list
Users at lists.opensips.org
More information about the Users