<html><head><base href="x-msg://47/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Make sure you are running OpenSIPS 1.6.4 and including the dialog module.</div><div>Then follow the usage of cdr_flag in <a href="http://www.opensips.org/html/docs/modules/1.6.x/acc.html">http://www.opensips.org/html/docs/modules/1.6.x/acc.html</a>.</div><div><br></div><div>You'll then see the call-duration in the STOP packet.</div><div><br></div><div>Hope that helps.</div><div><br></div><div><br></div><div><br></div><br><div><div>On May 21, 2011, at 4:07 AM, Abid Saleem wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; ">Dear Vlad,<div><br></div><div>Yes I am using that dictionary by including it into the main dictionary file as follows $INCLUDE dictionary.opensips</div><div><br></div><div>Now please guide me how to enable OpenSIPS to send Sip-Call-Duration attribute containing the call duration. Please help with some sample config. Thanks</div><div><br></div><div>Rgrds</div><div>----------</div><div>Abid Saleem</div><div>Terminus Technologies<br><br>> Date: Thu, 21 Apr 2011 19:53:57 +0300<br>> From:<span class="Apple-converted-space"> </span><a href="mailto:vladpaiu@opensips.org">vladpaiu@opensips.org</a><br>> To:<span class="Apple-converted-space"> </span><a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>> Subject: Re: [OpenSIPS-Users] New acc module for cdr generation over Radius<br>><span class="Apple-converted-space"> </span><br>> Hello,<br>><span class="Apple-converted-space"> </span><br>> The new CDRs type of accounting in OpenSIPS 1.6.4 only produces one<span class="Apple-converted-space"> </span><br>> entry per call for every type of backend, whether it's a DB, Radius or<span class="Apple-converted-space"> </span><br>> Syslog. So it's natural to only have a single STOP entry per call, and<span class="Apple-converted-space"> </span><br>> not two, a start and stop entry as in the old type of accounting.<br>><span class="Apple-converted-space"> </span><br>> The STOP packet should also contain the Sip-Call-Duration and<span class="Apple-converted-space"> </span><br>> Sip-Call-Duration attributes, defined in the 'etc/dictionary.opensips'<span class="Apple-converted-space"> </span><br>> dictionary that comes with the OpenSIPS sources. Are you using that<span class="Apple-converted-space"> </span><br>> provided dictionary ?<br>><span class="Apple-converted-space"> </span><br>> Regards,<br>> Vlad<br>><span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><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 = "<a href="sip:11122233@66.66.66.66">sip:11122233@66.66.66.66</a>"<br>> > Called-Station-Id = "<a href="sip:999887766@66.66.66.66">sip:999887766@66.66.66.66</a>"<br>> > Sip-Translated-Request-URI = "<a href="sip:77.77.77.77:5060">sip:77.77.77.77:5060</a>"<br>> > User-Agent = "X-Lite release 1003l stamp 30942"<br>> > Contact = "<<a href="sip:11122233@10.119.204.184:15950">sip:11122233@10.119.204.184:15950</a>>"<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>> ><span class="Apple-converted-space"> </span><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>> ><span class="Apple-converted-space"> </span><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>> ><span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>> _______________________________________________<br>> Users mailing list<br>><span class="Apple-converted-space"> </span><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>><span class="Apple-converted-space"> </span><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></div></span></blockquote></div><br></body></html>