<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word"><head><META content="text/html; charset=us-ascii" http-equiv="Content-Type">
<STYLE>                <!-- /* Style Definitions */ p.f054efaa-9cf6-4b65-9f80-44cf805093d7, li.f054efaa-9cf6-4b65-9f80-44cf805093d7, div.f054efaa-9cf6-4b65-9f80-44cf805093d7, table.f054efaa-9cf6-4b65-9f80-44cf805093d7Table        {margin:0cm; margin-bottom:.0001pt;}div.Section1 {page:Section1;}                -->        </STYLE>
<meta content="text/html; charset=us-ascii" http-equiv=Content-Type><meta content="Microsoft Word 12 (filtered medium)" name=Generator><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><BODY>
<P CLASS="f054efaa-9cf6-4b65-9f80-44cf805093d7"><div class=WordSection1><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I have a problem sending CDRs to my radius server.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I have setup accounting properly in opensips.conf:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>#### ACCounting module<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>loadmodule "acc.so"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>modparam("acc", "aaa_url", "radius:/etc/radiusclient-ng/radiusclient.conf")<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>modparam("acc", "aaa_extra", "User-Name=$Au")<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>modparam("acc", "early_media", 0)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>modparam("acc", "report_cancels", 0)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>modparam("acc", "detect_direction", 0)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>modparam("acc", "failed_transaction_flag", "ACC_FAILED")<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>modparam("acc", "log_flag", "ACC_DO")<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>modparam("acc", "log_missed_flag", "ACC_MISSED")<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>modparam("acc", "aaa_flag", "ACC_DO")<o:p></o:p></span></p><p class=MsoNormal>modparam("acc", "cdr_flag", "CDR_FLAG")<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I set the flag correct for INVITEs:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>if (is_method("INVITE")) {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> setflag(CDR_FLAG);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> setflag(ACC_DO); # do accounting<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> }<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The radius client is also setup correctly.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I know that because I can see the “normal” accounting messages are sent (accounting request/response).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>With “normal” I mean those without the extra information for e.g. call duration (which have the flag “ACC_DO”)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I have also extended the dictionary with these two entries:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>ATTRIBUTE Sip-Call-Duration 227 integer<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>ATTRIBUTE Sip-Call-Setuptime 228 integer<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>When looking into the syslog, there is a line wich contains the cdr data:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:dlg_onroute: BYE successfully processed - dst_leg = 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:run_dlg_callbacks: dialog=0xb4ae016c, type=32<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: looking for <accX_core><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: var found-> <#006>!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: looking for <accX_log><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: var found-> <>!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: looking for <accX_leg><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: var found-> <>!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: looking for <accX_created><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: var found-> <<B1>5]R>!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:acc:acc_log_cdrs: core+extra = 6 - nr_legs = 0 - nr_vals = 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:acc:acc_log_cdrs: not entering<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: ACC: call ended: created=1381840305;call_start_time=1381840311;duration=5;setuptime=6;method=INVITE;from_tag=216620847;to_tag=C9D83241313536414778ED9F;call_id=00238360-0334-E311-8D1B-08002700E8C5@10.10.1.242;code=200;reason=OK<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: looking for <accX_core><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: var found-> <#006>!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: looking for <accX_aaa><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: var found-> <#001>!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: looking for <accX_leg><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: var found-> <>!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: looking for <accX_created><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: var found-> <<B1>5]R>!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Any ideas?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I am using opensips 1.9.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Marcel<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div> <BR><BR><IMG ALIGN="baseline" ALT BORDER="0" HSPACE="0" SRC="cid:image94fc53.jpg@1d1a2828.d6cf4215"> <BR><BR><FONT FACE="Arial" SIZE="2">Marcel Sicking - Core Network Engineer </FONT><BR><BR>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="f054efaa-9cf6-4b65-9f80-44cf805093d7Table" STYLE="WIDTH: 100%; BORDER-COLLAPSE: collapse" WIDTH="100%">
<TBODY>
<TR>
<TD STYLE="WIDTH: 50px"><FONT FACE="Arial" SIZE="2">phone:</FONT></TD>
<TD><FONT FACE="Arial" SIZE="2">+49 (211) 5423 5010</FONT></TD></TR>
<TR>
<TD STYLE="WIDTH: 50px; HEIGHT: 10px"><FONT FACE="Arial" SIZE="2">fax:</FONT></TD>
<TD STYLE="HEIGHT: 10px"><FONT FACE="Arial" SIZE="2">+49 (211) 5423 5099 </FONT></TD></TR>
<TR>
<TD STYLE="WIDTH: 50px; HEIGHT: 10px"><FONT FACE="Arial" SIZE="2">email:</FONT></TD>
<TD STYLE="HEIGHT: 10px"><FONT FACE="Arial" SIZE="2">Marcel.Sicking@onephone.de</FONT></TD></TR>
<TR>
<TD STYLE="WIDTH: 50px; HEIGHT: 10px"><FONT FACE="Arial" SIZE="2">web:</FONT></TD>
<TD STYLE="HEIGHT: 10px"><A HREF="http://www.onephone.de"><FONT FACE="Arial" SIZE="2">http://www.onephone.de</FONT></A></TD></TR>
</TBODY></TABLE><BR>
<TABLE>
<TBODY>
<TR>
<TD STYLE="WIDTH: 50px"><IMG ALIGN="baseline" ALT BORDER="0" HSPACE="0" SRC="cid:image9f831e.jpg@38c9f6e7.4d424848"></TD>
<TD><FONT COLOR="#F87217" FACE="Arial" SIZE="2"><STRONG> OnePhone - Gewinner Innovationspreis 2012</STRONG><BR>
Best in Cloud Award der Computerwoche<BR></FONT></TD></TR>
</TBODY>
</TABLE>
<BR>
<P CLASS="MsoNormal" STYLE="MARGIN: 0cm 0cm 0pt"><SPAN STYLE="FONT-FAMILY: 'Arial','sans-serif'; COLOR: grey; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-theme-font: minor-fareast; mso-fareast-language: DE; mso-no-proof: yes">Geschäftsführer: Michael Hegemann, Christoph Wichmann<BR>
OnePhone Deutschland GmbH, Düsseldorfer Str.16, D-40699 Erkrath<BR>
Sitz der Gesellschaft: Erkrath, HRB 21674 Wuppertal<BR><BR>
<IMG ALIGN="baseline" ALT BORDER="0" HSPACE="0" SRC="cid:image8e3366.gif@84bca4c1.e74240a1"> <SPAN LANG="EN-US" STYLE="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #339966; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-theme-font: minor-fareast; mso-fareast-language: DE; mso-no-proof: yes; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-bidi-language: AR-SA">
<EM>Think green! Please consider the environment before printing this email.<BR></EM></SPAN></SPAN></P>
<P>
<BR><BR><BR></P>
<P></P>
<P></P>
<P></P></P></BODY></HTML>