<HTML>
<HEAD>
<TITLE>Re: [SR-Users] new functionality: CDR-based accounting</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi Timo,<BR>
<BR>
I would be interested in the 1.5 backported module. Is that available for the masses?<BR>
<BR>
Thanks!<BR>
<BR>
-graham<BR>
<BR>
<BR>
On 8/4/11 1:08 AM, &quot;Timo Reimann&quot; &lt;<a href="timo.reimann@1und1.de">timo.reimann@1und1.de</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> &nbsp;&nbsp;&nbsp;<BR>
<BR>
Hi all,<BR>
&nbsp;<BR>
&nbsp;as announced quite a while ago, I finally checked in code that allows to<BR>
&nbsp;produce CDRs (Call Data Records) directly from SIP-Router and generate<BR>
&nbsp;logs accordingly.<BR>
&nbsp;<BR>
&nbsp;The main code portion resides in modules_k/acc and provides a switch to<BR>
&nbsp;enable basic CDR generation including start time, end time, and<BR>
&nbsp;duration. Analogous to the existing logging approach, you may define an<BR>
&nbsp;extra parameter covering to-be-included dialog pseudo-variables that<BR>
&nbsp;must be assigned in the configuration script. The new code will take<BR>
&nbsp;care of transforming the basic and custom CDR fields into CDR logs at<BR>
&nbsp;the end of a dialog.<BR>
&nbsp;<BR>
&nbsp;Speaking of dialogs: The implementation relies heavily on the dialog<BR>
&nbsp;module. It takes advantage of dialog variables introduces by Carsten<BR>
&nbsp;Bock and adds a few more features. Most notably, we had to change the<BR>
&nbsp;dialog callback signature to provide both request and response messages.<BR>
&nbsp;Having only one of them proved to be insufficient in certain cases; for<BR>
&nbsp;instance, a locally generated 408 returned a FAKED_REPLY, thus rendering<BR>
&nbsp;it impossible to access dialog variables through the PV framework. Other<BR>
&nbsp;modules using dialog callbacks have been updated along the commit,<BR>
&nbsp;third-party modules outside the repository will need to do so too (and<BR>
&nbsp;think about whether using the request or response is the Right Thing to do).<BR>
&nbsp;<BR>
&nbsp;Due to the changes brought to the dialog module, I pushed the new acc<BR>
&nbsp;and dialog code into a separate branch called treimann/acc-cdr. Feel<BR>
&nbsp;free to give it a try by consulting the updated documentation and<BR>
&nbsp;suggesting (or, if it's good enough, implementing :) ) improvements. A<BR>
&nbsp;Kamailio 1.5 backport of the code has been in usage for quite some time<BR>
&nbsp;with us, so generally there shouldn't be any major logical flaws.<BR>
&nbsp;SIP-Router certainly needs more testing, however, so I'd be glad for any<BR>
&nbsp;feedback. My plan is to merge the code into master branch prior to the<BR>
&nbsp;3.2 feature freeze, unless significant objections arise.<BR>
&nbsp;<BR>
&nbsp;Finally, big-time credits go to my co-worker Sven Knoblich who is the<BR>
&nbsp;main contributor of the code. He's been working on this stuff for the<BR>
&nbsp;past few months and dreams in CDRs by now.<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;Cheers,<BR>
&nbsp;<BR>
&nbsp;--Timo<BR>
&nbsp;&nbsp;<BR>
&nbsp;<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<BR>
<a href="sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><BR>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>