<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1251"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Thanks, Bogdan. I have got the next parameters in my script.<div><br></div><div>Route CREATE_DIALOG calls after some additional routes, where db_extra fields are filling, drouting etc - but on the INVITE stage.</div><div>I’m just check missed_tables - and it not filled too, but missed and failures calls are present.<br><div><br></div><div><div>modparam("acc", "db_table_acc", "acc")</div><div>modparam("acc", "db_table_missed_calls", "missed_calls")</div><div>modparam("acc", "early_media", 0)</div><div>modparam("acc", "report_cancels", 1)</div><div>modparam("acc", "detect_direction", 0)</div><div>modparam("acc", "failed_transaction_flag", "ACC_FAILED")</div><div>modparam("acc", "db_flag", "ACC_DO")</div><div>modparam("acc", "db_missed_flag", "ACC_MISSED")</div><div>modparam("acc", "cdr_flag", "CDR_FLAG»)</div><div>modparam("acc", "db_extra", "incoming_number=$avp(incoming_number);…………………)</div><div><br></div><div><div>route[CREATE_DIALOG] {</div><div> xlog("L_INFO", "$ci|log|Now we set flags for ACC module");</div><div> setflag(CDR_FLAG);</div><div> setflag(ACC_DO);</div><div> setflag(ACC_FAILED);</div><div> setflag(ACC_MISSED);</div><div> setflag(QOS_FLAG);</div><div><br></div><div> create_dialog("B");</div><div><br></div><div> if ( is_gflag("2") ) {</div><div> xlog("L_INFO", "$ci|log|Flag 2 is set. We will use topology hiding for our request");</div><div> topology_hiding();</div><div> }</div></div><div>……..</div><div>}</div></div></div><div><br></div><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Best regards,</div><div>Alexander Mustafin</div><div><a href="mailto:mustafin.aleksandr@gmail.com">mustafin.aleksandr@gmail.com</a></div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br><div><div>03 ñåíò. 2014 ã., â 13:59, Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>> íàïèñàë(à):</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=windows-1251" http-equiv="Content-Type">
<div text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><tt>Hi Alexander,<br>
<br>
At INVITE time be sure both flags (ACC_DO - accounting is
required - and CDR_FLAG - do it as CDR) are set before you do
create_dialog().<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com/">http://www.opensips-solutions.com</a></pre>
On 03.09.2014 10:52, Alexander Mustafin wrote:<br>
</div>
<blockquote cite="mid:10E76850-7DC3-494A-B53A-B0A960E166C5@gmail.com" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1251">
Hi, Bogdan.
<div><br>
</div>
<div>Sure, I’m use dialog module and create dialog. In modules
section I’m load acc module before dialog(because, I’ve read
about problem with it).</div>
<div>I’ve tried to set CDR_FLAG before create_dialog and after -
with the same result. Also, I’ve disabled CDR_FLAG and used
ACC_DO only, but INVITE record still absent).</div>
<div><br>
</div>
<div>I thought the problem with MySQL, but I’ve sniffed traffic to
MySQL and OpenSIPS not send anything for INVITE - only for
dialog and BYE.</div>
<div><br>
</div>
<div>How can I detect what’s happened when flags is sets?</div>
<div><br>
<div apple-content-edited="true">
<div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>Best regards,</div>
<div>Alexander Mustafin</div>
<div><a moz-do-not-send="true" href="mailto:mustafin.aleksandr@gmail.com">mustafin.aleksandr@gmail.com</a></div>
<div><br>
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
<div>
<div>03 ñåíò. 2014 ã., â 13:42, Bogdan-Andrei Iancu <<a moz-do-not-send="true" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>>
íàïèñàë(à):</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<meta content="text/html; charset=windows-1251" http-equiv="Content-Type">
<div text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><tt>Hi Alexander,<br>
<br>
If you use the CDR_FLAG, you really must use dialog
module and create the dialogs during the initial
INVITE - do you do that ?<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com/">http://www.opensips-solutions.com</a></pre>
On 03.09.2014 10:21, Alexander Mustafin wrote:<br>
</div>
<blockquote cite="mid:44C399CF-A87B-4980-B8BA-4BF858B8E33D@gmail.com" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1251">
Hello!
<div><br>
</div>
<div>I’ve the problem with acc - now, only BYE records
presents in acc table. </div>
<div>I’ve set the flags ACC_DO and others for initial
INVITE, tried to use CDR_FALG, but without success. </div>
<div><br>
</div>
<div>If I use CDR_FLAG with ACC_DO for INVITE and
disable it for BYE - all records for call absent.</div>
<div>Maybe, other parts of my script does broke ACC
behavior, but I can’t see an error in debug log.</div>
<div><br>
</div>
<div>
<div>version: opensips 1.11.2-tls (x86_64/linux)</div>
<div>flags: STATS: On, USE_IPV6, USE_TCP, USE_TLS,
DISABLE_NAGLE, USE_MCAST, SHM_MEM, SHM_MMAP,
PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT</div>
<div>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE
262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE
65535</div>
<div>poll method support: poll, epoll_lt, epoll_et,
sigio_rt, select.</div>
<div>main.c compiled on 00:09:03 Jul 3 2014 with gcc
4.4.7</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div apple-content-edited="true">
<div style="font-family: Helvetica; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal;
orphans: 2; text-align: -webkit-auto; text-indent:
0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; word-wrap:
break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space;">
<div>Best regards,</div>
<div>Alexander Mustafin</div>
<div><a moz-do-not-send="true" href="mailto:mustafin.aleksandr@gmail.com">mustafin.aleksandr@gmail.com</a></div>
<div><br>
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
</blockquote></div><br></body></html>