[OpenSIPS-Users] Radius CDR records depend who hangs up first

John Quick John.Quick at smartvox.co.uk
Wed Nov 11 17:21:41 CET 2009


Zahid,

An excellent suggestion, but unfortunately it did not change the behaviour. I noticed that the
reported From/To address for the IP phone is different in the two CDR records. In the first record
(associated with the INVITE) it is:
sip:1234 at mysipdomain.com

In the second record it is:
sip:1234@<my_ip_address>

Perhaps this difference is relevant. If so, no doubt the Asterisk gateway is to blame - it usually is!

John

> -----Original Message-----
> From: Zahid Mehmood [mailto:zm23 at columbia.edu]
> Sent: 11 November 2009 15:56
> To: John.Quick at smartvox.co.uk; OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] Radius CDR records depend who hangs up first
> 
> John,
>      See if this helps.
> 
> http://www.opensips.org/html/docs/modules/1.6.x/acc.html#id271094
> 
> 1.5.5. detect_direction (integer)
> 
> Controls the direction detection for sequential requests. If enabled
> (non zero value), for sequential requests with upstream direction
> (from callee to caller), the FROM and TO will be swapped (the
> direction will be preserved as in the original request).
> 
> It affects all values related to TO and FROM headers (body, URI,
> username, domain, TAG).
> 
> Default value is 0 (disabled).
> 
> Example 1.5. detect_direction example
> 
> modparam("acc", "detect_direction", 1)
> 
> 
> --
> Zahid
> 
> 
> On Nov 11, 2009, at 10:27 AM, John Quick wrote:
> 
> > 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  ----
> > > mobile phone
> >
> > 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
> > AcctSessionID).
> >
> > Is this behaviour expected or does it indicate some kind of
> > configuration problem?
> >
> > John Quick
> > Smartvox Limited
> > Web: www.smartvox.co.uk
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users





More information about the Users mailing list