<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><font face="Arial" size="2">Marcel,<br>
<br>
I do not understand you just right.<br>
<br>
So, accouting is send or is not send:)?<br>
<br>
Did you include:<br>
<br>
</font><br>
<p class="MsoNormal"><span lang="EN-US">ATTRIBUTE
Sip-Call-Duration 227 integer<o:p></o:p></span></p>
<span lang="EN-US">ATTRIBUTE Sip-Call-Setuptime 228 integer<br>
<br>
alse this on radius server site or just on client?<br>
<br>
miha<br>
<br>
</span>Dne 10/15/2013 3:01 PM, piše Marcel Sicking:<br>
</div>
<blockquote
cite="mid:5A42207526F4F34C96C3A06F876FA547107702A9E6@srv01.erkrath.opde.local"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
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=ISO-8859-1"
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]-->
<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:
<a class="moz-txt-link-abbreviated" href="mailto: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">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</a><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 alt="" src="cid:part1.04080007.02010603@softnet.si"
align="bottom" border="0" hspace="0"> <br>
<br>
<font face="Arial" size="2">Marcel Sicking - Core Network Engineer
</font><br>
<br>
<table class="f054efaa-9cf6-4b65-9f80-44cf805093d7Table"
style="WIDTH: 100%; BORDER-COLLAPSE: collapse" cellpadding="0"
cellspacing="0" width="100%" border="0">
<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"><a class="moz-txt-link-abbreviated" href="mailto:Marcel.Sicking@onephone.de">Marcel.Sicking@onephone.de</a></font></td>
</tr>
<tr>
<td style="WIDTH: 50px; HEIGHT: 10px"><font face="Arial"
size="2">web:</font></td>
<td style="HEIGHT: 10px"><a moz-do-not-send="true"
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 alt=""
src="cid:part3.03090901.06020502@softnet.si"
align="bottom" border="0" hspace="0"></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 alt="" src="cid:part4.01090508.08010309@softnet.si"
align="bottom" border="0" hspace="0"> <span
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"
lang="EN-US">
<em>Think green! Please consider the environment before
printing this email.<br>
</em></span></span></p>
<p>
<br>
<br>
<br>
</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>