<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>for acc_cdr you have to load the dialog module and track the
active calls with it. It may require that you store in dlg vars
the values you want inside acc_cdr.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 11/10/16 13:08, Ivan Dudko wrote:<br>
</div>
<blockquote
cite="mid:CAMY-Hu-oinYgTr7WhD5t8dt_+9hzUEsqZotZBTBSiwZkLe-kew@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>Hello!<br>
<br>
I am setting this in kamailio.cfg<br>
<br>
#!ifdef WITH_ACCDB<br>
modparam("acc", "db_flag", FLT_ACC)<br>
modparam("acc", "db_missed_flag", FLT_ACCMISSED)<br>
modparam("acc", "db_url", DBURL)<br>
modparam("acc", "db_extra",
"src_user=$fU;src_domain=$fd;src_ip=$si;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd")<br>
modparam("acc", "failed_transaction_flag", FLT_ACCFAILED)<br>
<br>
modparam("acc", "cdr_enable", 1)<br>
modparam("acc", "cdr_start_on_confirmed", 1)<br>
modparam("acc", "cdrs_table", "acc_cdrs")<br>
modparam("acc",
"cdr_extra","src_user=$fU;src_domain=$fd;src_ip=$si;dst_user=$rU;dst_ouser=$tU;dst_domain=$rd;sip_code=$rs;sip_reason=$rr;callid=$dlg(callid);dst_ip=$Ri")<br>
modparam("acc", "cdr_start_id", "start_time")<br>
modparam("acc", "cdr_end_id", "end_time")<br>
modparam("acc", "cdr_duration_id", "duration")<br>
#!endif<br>
</div>
<br>
But in CDRs table ('acc_cdrs') field dst_user=$rU is always
empty if call is not completed with remote side answer.<br>
But in accounting table ('acc') this field isn't empty.<br>
<br>
Is this behavior is correct?<br>
</div>
I think it is not correct.<br>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</body>
</html>