<div dir="ltr">Hello Razvan,<br><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 1, 2014 at 4:11 PM, Răzvan Crainea <span dir="ltr">&lt;<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, Takeshi!<br>
<br>
You are right, CDR_FLAG should only be set on the initial INVITE. DB_FLAG should not be set for BYE, because otherwise you will only account that method, not the CDR (no duration, setuptime, etc.).<br>
Have you tried with other Accounting backends (log, events)?<br></blockquote><div><br></div><div>Yes. I use both db and log backends and no CDRs are written to opensips.log in 1.11 after an opensips restart.<br></div><div>
 </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Can you run a test in debugging mode, paste the logs on pastebin[1] and send them over (privately if you want)?<br>
<br>
[1] <a href="http://pastebin.com/" target="_blank">http://pastebin.com/</a></blockquote><div><br></div><div>Here it is:<br><a href="http://pastebin.com/hcdybZL3">http://pastebin.com/hcdybZL3</a><br><br></div><div>Thanks.<br>
</div><div>Regards,<br>Takeshi<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><br>
<br>
Best regards,<br>
<br>
Razvan Crainea<br>
OpenSIPS Core Developer<br>
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<u></u>com</a><br>
<br></div><div class="">
On 05/01/2014 09:23 AM, mayamatakeshi wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">
Razvan,<br>
no, I was only setting the CDR_FLAG on the initial INVITE. This works<br>
with 1.10.<br>
<br>
Then with 1.11, I tested setting the CDR_FLAG when processing BYE<br>
requests but it didn&#39;t work.<br>
Then I set DB_FLAG for BYE and after that, it worked.<br>
So this behavior changed.<br>
Thanks a lot.<br>
<br>
Regards,<br>
Takeshi.<br>
<br>
<br>
On Wed, Apr 30, 2014 at 11:05 PM, Răzvan Crainea &lt;<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a><br></div><div class="">
&lt;mailto:<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>&gt;&gt; wrote:<br>
<br>
    Hi, Takeshi!<br>
<br>
    I just tested and there are no issues on my setup. Are you setting<br>
    the CDR_FLAG for all the requests? Have you also tried with<br>
    different db modes?<br>
<br>
    Best regards,<br>
<br>
    Razvan Crainea<br>
    OpenSIPS Core Developer<br></div>
    <a href="http://www.opensips-solutions." target="_blank">http://www.opensips-solutions.</a><u></u>__com &lt;<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-<u></u>solutions.com</a>&gt;<div class="">
<br>
<br>
<br>
    On 04/23/2014 03:05 PM, mayamatakeshi wrote:<br>
<br>
        Hello,<br>
        I am trying to upgrade from opensips 1.10 (commit<br></div>
        bfd86ab25554082053167a82655e66<u></u>__9ca1c0ea7c)<br>
        to 1.11 (latest 313f41ad46921d543980fa9fc71fb0<u></u>__715d385085).<div class=""><br>
<br>
        Almost everything works.<br>
        However, in my opensips.cfg I set dialog db_mode to REALTIME.<br>
        And I have<br>
        acc in CDR mode.<br>
        Then after making some calls and confirming the dialogs were<br>
        inserted in<br>
        the opensips.dialog table, I kill and restart opensips. Then I<br>
        terminate<br>
        the calls.<br>
        In 1.10, this causes proper generation of records in the acc table.<br>
        However, in 1.11, no records are written to acc table.<br>
        I checked the release notes for 1.11 but could not find any<br>
        indication<br>
        that this behavior would change:<br></div>
        <a href="http://opensips.org/pub/__opensips/1.11.0/src/ChangeLog" target="_blank">http://opensips.org/pub/__<u></u>opensips/1.11.0/src/ChangeLog</a><div class=""><br>
        &lt;<a href="http://opensips.org/pub/opensips/1.11.0/src/ChangeLog" target="_blank">http://opensips.org/pub/<u></u>opensips/1.11.0/src/ChangeLog</a>&gt;<br>
<br>
        Before filing a bug ticket i would like to confirm as i might be<br>
        overlooking something.<br>
<br>
        Here is the significant snippets of opensips.cfg:<br>
<br>
        loadmodule &quot;dialog.so&quot;<br>
        modparam(&quot;dialog&quot;, &quot;default_timeout&quot;, 10800)<br>
        modparam(&quot;dialog&quot;, &quot;profiles_with_value&quot;, &quot;calls&quot;)<br>
        modparam(&quot;dialog&quot;, &quot;db_url&quot;,<br></div>
        &quot;mysql://opensips:opensipsrw@_<u></u>_localhost/opensips&quot;)<div class=""><br>
        modparam(&quot;dialog&quot;, &quot;db_mode&quot;, 1) # 1=REALTIME, 2=DELAYED, 3=SHUTDOWN<br>
        modparam(&quot;dialog&quot;, &quot;db_update_period&quot;, 10)<br>
<br>
<br>
        loadmodule &quot;acc.so&quot;<br>
        modparam(&quot;acc&quot;, &quot;db_flag&quot;, &quot;DB_FLAG&quot;)<br>
        modparam(&quot;acc&quot;, &quot;log_flag&quot;, &quot;LOG_FLAG&quot;)<br>
        modparam(&quot;acc&quot;, &quot;log_level&quot;, -1)<br>
        modparam(&quot;acc&quot;, &quot;log_facility&quot;, &quot;LOG_LOCAL0&quot;)<br>
        modparam(&quot;acc&quot;, &quot;db_url&quot;,<br></div>
        &quot;mysql://opensips:opensipsrw@_<u></u>_localhost/opensips&quot;)<div class=""><br>
        modparam(&quot;acc&quot;, &quot;failed_transaction_flag&quot;,<br>
        &quot;FAILED_TRANSACTION_FLAG&quot;)<br>
        modparam(&quot;acc&quot;, &quot;db_extra&quot;,<br></div>
        &quot;domain=$avp(i:6);direction=$_<u></u>_avp(i:20);from_uname=$fU;to__<u></u>_uname=$tU;calling_number=$<u></u>avp(__i:21);destination=$avp(<u></u>i:22);__anonymous=$avp(i:23);<u></u>gwid=$__avp(i:24);forward=$<u></u>avp(i:25)&quot;)<div class="">
<br>
        modparam(&quot;acc&quot;, &quot;log_extra&quot;,<br></div>
        &quot;domain=$avp(i:6);direction=$_<u></u>_avp(i:20);from_uname=$fU;to__<u></u>_uname=$tU;calling_number=$<u></u>avp(__i:21);destination=$avp(<u></u>i:22);__anonymous=$avp(i:23);<u></u>gwid=$__avp(i:24);forward=$<u></u>avp(i:25)&quot;)<div class="">
<br>
        modparam(&quot;acc&quot;, &quot;cdr_flag&quot;, &quot;CDR_FLAG&quot;)<br>
<br>
        Regards,<br>
        Takeshi<br>
<br>
<br>
<br></div>
        ______________________________<u></u>___________________<br>
        Users mailing list<br>
        <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.<u></u>org</a>&gt;<br>
        <a href="http://lists.opensips.org/cgi-__bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<u></u>__bin/mailman/listinfo/users</a><br>
        &lt;<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/<u></u>cgi-bin/mailman/listinfo/users</a><u></u>&gt;<br>
<br>
<br>
    ______________________________<u></u>___________________<br>
    Users mailing list<br>
    <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.<u></u>org</a>&gt;<br>
    <a href="http://lists.opensips.org/cgi-__bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<u></u>__bin/mailman/listinfo/users</a><div class=""><br>
    &lt;<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/<u></u>cgi-bin/mailman/listinfo/users</a><u></u>&gt;<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
<br>
</div></blockquote><div class=""><div class="h5">
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div></div></div>