<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Dear Razvan,<div><br></div><div>I have the same problem. Can you please guide me how to configure OpenSIPS to send duration attr in Accounting Stop packet to Radius. I mean if you can provide sample Config, it will be a great help.</div><div><br></div><div>Thx</div><div><br></div><div>------------------</div><div>Abid Saleem</div><div>Terminus Technologies </div><div><br>> Date: Fri, 20 May 2011 11:52:24 +0300<br>> From: razvancrainea@opensips.org<br>> To: users@lists.opensips.org<br>> Subject: Re: [OpenSIPS-Users] New acc module for cdr generation over Radius<br>> <br>> Hello,<br>> <br>> If you are using the acc module for CDR generation then only the Stop <br>> message should be received by the Radius server. This message should <br>> contain all the information you need like duration, startup time, <br>> creation time and others.<br>> <br>> Regards,<br>> Razvan<br>> <br>> On 05/20/2011 02:46 AM, Cindy Leung wrote:<br>> > I am also not receiving a Start packet on my radius server for some reason. I'm new to this so please bear with me. :-)<br>> ><br>> > modparam("acc", "early_media", 1)<br>> > modparam("acc", "report_ack", 1)<br>> > modparam("acc", "report_cancels", 1)<br>> > modparam("acc", "detect_direction", 0)<br>> > modparam("acc", "failed_transaction_flag", 3)<br>> > modparam("acc", "aaa_flag", 1)<br>> > modparam("acc", "service_type", 15)<br>> > modparam("acc", "aaa_url", "radius:/etc/radiusclient-ng/radiusclient.conf")<br>> > modparam("acc", "cdr_flag", 6)<br>> ><br>> > I am seeing all the "Intrim-Update" and "Stop" packets.<br>> ><br>> > Any suggestions as to what to look for please? Thanks.<br>> ><br>> ><br>> > Cindy<br>> ><br>> ><br>> > On Apr 29, 2011, at 10:42 AM, Maciej Bylica wrote:<br>> ><br>> >> Hi Vlad,<br>> >><br>> >> Thanks for info.<br>> >> I am about to work on this.<br>> >><br>> >> Thanks,<br>> >> Maciej<br>> >><br>> >> 2011/4/21 Vlad Paiu<vladpaiu@opensips.org>:<br>> >>> Hello,<br>> >>><br>> >>> The new CDRs type of accounting in OpenSIPS 1.6.4 only produces one entry<br>> >>> per call for every type of backend, whether it's a DB, Radius or Syslog. So<br>> >>> it's natural to only have a single STOP entry per call, and not two, a start<br>> >>> and stop entry as in the old type of accounting.<br>> >>><br>> >>> The STOP packet should also contain the Sip-Call-Duration and<br>> >>> Sip-Call-Duration attributes, defined in the 'etc/dictionary.opensips'<br>> >>> dictionary that comes with the OpenSIPS sources. Are you using that provided<br>> >>> dictionary ?<br>> >>><br>> >>> Regards,<br>> >>> Vlad<br>> >>><br>> >>><br>> >>> On 04/17/2011 11:38 PM, Maciej Bylica wrote:<br>> >>>> Dear OS Fans,<br>> >>>><br>> >>>> I've just managed to configure new acc with dialog cdr generation<br>> >>>> feature with Mysql.etc/dictionary.opensipset<br>> >>>> It looks fine and realy help to do accouting for some of us.<br>> >>>> In my scenario there is a need to use Radius.<br>> >>>> As stated in acc module description, there is a need to use cdr_flag<br>> >>>> and setflag in initial invite.<br>> >>>> Once it is set there i do receive only STOP radius acc packet.<br>> >>>> In case i do not have setflag set anywere in my script Opensips<br>> >>>> produce START and STOP packet properly.<br>> >>>> Does anyone knows where to look for the problem?<br>> >>>><br>> >>>> Last question does standard STOP packet incorporate call duration attr<br>> >>>> anyhow or should i use aaa_extra in my config.<br>> >>>> My STOP packet is as follows:<br>> >>>> Sun Apr 17 21:08:38 2011<br>> >>>> Acct-Status-Type = Stop<br>> >>>> Service-Type = IAPP-Register<br>> >>>> Sip-Response-Code = 200<br>> >>>> Sip-Method = Bye<br>> >>>> Event-Timestamp = "\266:\253M\374\212\256"<br>> >>>> Sip-From-Tag = "eb759c18"<br>> >>>> Sip-To-Tag = "00-07350-027f5afd-492940963"<br>> >>>> Acct-Session-Id =<br>> >>>> "b0790b4443102642ZTMzOWZlNGU0Njg4MDMwM2EzZjI1NTY5NTllNWFiYjk."<br>> >>>> User-Name = "11122233@66.66.66.66"<br>> >>>> Calling-Station-Id = "sip:11122233@66.66.66.66"<br>> >>>> Called-Station-Id = "sip:999887766@66.66.66.66"<br>> >>>> Sip-Translated-Request-URI = "sip:77.77.77.77:5060"<br>> >>>> User-Agent = "X-Lite release 1003l stamp 30942"<br>> >>>> Contact = "<sip:11122233@10.119.204.184:15950>"<br>> >>>> NAS-Port-Id = 5060<br>> >>>> Acct-Delay-Time = 0<br>> >>>> NAS-IP-Address = 127.0.0.1<br>> >>>> Client-IP-Address = 127.0.0.1<br>> >>>> Acct-Unique-Session-Id = "7e6e2ace14ff4970"<br>> >>>> Timestamp = 1303067318<br>> >>>><br>> >>>> I do have the latest OS 1.6.4-2-notls revision 7872.<br>> >>>><br>> >>>> Thx in advance for help,<br>> >>>> Maciej.<br>> >>>><br>> >>>> _______________________________________________<br>> >>>> Users mailing list<br>> >>>> Users@lists.opensips.org<br>> >>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br>> >>>><br>> >>><br>> >>> _______________________________________________<br>> >>> Users mailing list<br>> >>> Users@lists.opensips.org<br>> >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br>> >>><br>> >> _______________________________________________<br>> >> Users mailing list<br>> >> Users@lists.opensips.org<br>> >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br>> ><br>> > _______________________________________________<br>> > Users mailing list<br>> > Users@lists.opensips.org<br>> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br>> ><br>> <br>> -- <br>> Razvan Crainea<br>> OpenSIPS Developer<br>> <br>> <br>> _______________________________________________<br>> Users mailing list<br>> Users@lists.opensips.org<br>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br></div>                                            </body>
</html>