<div dir="ltr"><div>Hi Razvan,<br>I will do it. <br>But how should I apply the patch?<br></div>I tried using patch command but I got an error:<br><br>root@LAB002177-STR2-SERVER:opensips-1.11# patch -p0 &lt; razvan_patch.txt <br>
(Stripping trailing CRs from patch.)<br>patching file modules/acc/acc.c<br>(Stripping trailing CRs from patch.)<br>patching file modules/acc/acc_logic.c<br>(Stripping trailing CRs from patch.)<br>patching file modules/dialog/dlg_db_handler.c<br>
<span style="color:rgb(255,0,0)">patch unexpectedly ends in middle of line</span><br>Hunk #2 succeeded at 376 with fuzz 1.<br><br><div><div><div class="gmail_extra">Anyway, I tried to compile this but I got an error:<br><br>
make[1]: Entering directory `/usr/local/src/git/opensips-1.11/modules/acc&#39;<br>Compiling acc.c<br>Compiling acc_logic.c<br>acc_logic.c: In function ‘acc_onreply’:<br>acc_logic.c:597:3: error: ‘reg’ undeclared (first use in this function)<br>
acc_logic.c:597:3: note: each undeclared identifier is reported only once for each function it appears in<br>make[1]: *** [acc_logic.o] Error 1<br>make[1]: *** Waiting for unfinished jobs....<br>make[1]: Leaving directory `/usr/local/src/git/opensips-1.11/modules/acc&#39;<br>
make: *** [modules] Error 2<br><br><br></div><div class="gmail_extra">I also inspected the patch with command &#39;git apply&#39; but i go this:<br><br>root@LAB002177-STR2-SERVER:opensips-1.11# git apply --stat razvan_patch.txt<br>
fatal: corrupt patch at line 72<br><br></div><div class="gmail_extra">I don&#39;t know much about patch file formats. Please instruct me on how to apply the patch.<br><br></div><div class="gmail_extra">Regards,<br></div><div class="gmail_extra">
Takeshi<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 5, 2014 at 7:06 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>
Can you please apply this patch [1] and run again in debugging mode?<br>
<br>
Thanks,<br>
<br>
[1] <a href="http://pastebin.com/i6uvbREf" target="_blank">http://pastebin.com/i6uvbREf</a><div class=""><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 03:26 PM, 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="">
Hello Razvan,<br>
<br>
<br>
On Thu, May 1, 2014 at 4:11 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></div><div class="">
    You are right, CDR_FLAG should only be set on the initial INVITE.<br>
    DB_FLAG should not be set for BYE, because otherwise you will only<br>
    account that method, not the CDR (no duration, setuptime, etc.).<br>
    Have you tried with other Accounting backends (log, events)?<br>
<br>
<br>
Yes. I use both db and log backends and no CDRs are written to<br>
opensips.log in 1.11 after an opensips restart.<br>
<br>
    Can you run a test in debugging mode, paste the logs on pastebin[1]<br>
    and send them over (privately if you want)?<br>
<br>
    [1] <a href="http://pastebin.com/" target="_blank">http://pastebin.com/</a><br>
<br>
<br>
Here it is:<br>
<a href="http://pastebin.com/hcdybZL3" target="_blank">http://pastebin.com/hcdybZL3</a><br>
<br>
Thanks.<br>
Regards,<br>
Takeshi<br>
<br>
<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>
    On 05/01/2014 09:23 AM, mayamatakeshi wrote:<br>
<br>
        Razvan,<br>
        no, I was only setting the CDR_FLAG on the initial INVITE. This<br>
        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<br>
        &lt;<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a> &lt;mailto:<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>&gt;<br></div><div class="">
        &lt;mailto:<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a> &lt;mailto:<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>&gt;&gt;&gt; wrote:<br>
<br>
             Hi, Takeshi!<br>
<br>
             I just tested and there are no issues on my setup. Are you<br>
        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<br>
        &lt;<a href="http://www.opensips-__solutions.com" target="_blank">http://www.opensips-__<u></u>solutions.com</a><div class=""><br>
        &lt;<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-<u></u>solutions.com</a>&gt;&gt;<br>
<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<br>
        313f41ad46921d543980fa9fc71fb0<u></u>____715d385085).<div class=""><br>
<br>
<br>
                 Almost everything works.<br>
                 However, in my opensips.cfg I set dialog db_mode to<br>
        REALTIME.<br>
                 And I have<br>
                 acc in CDR mode.<br>
                 Then after making some calls and confirming the dialogs<br>
        were<br>
                 inserted in<br>
                 the opensips.dialog table, I kill and restart opensips.<br>
        Then I<br>
                 terminate<br>
                 the calls.<br>
                 In 1.10, this causes proper generation of records in<br>
        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><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;<div class=""><br>
<br>
<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><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;<u></u>&gt;<br>
<br>
                 Before filing a bug ticket i would like to confirm as i<br>
        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>
<br>
                 modparam(&quot;dialog&quot;, &quot;db_mode&quot;, 1) # 1=REALTIME,<br>
        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>
<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>
<br></div>
        &quot;domain=$avp(i:6);direction=$_<u></u>___avp(i:20);from_uname=$fU;<u></u>to_____uname=$tU;calling_<u></u>number=$__avp(__i:21);<u></u>destination=$avp(__i:22);__<u></u>anonymous=$avp(i:23);__gwid=$_<u></u>_avp(i:24);forward=$__avp(i:<u></u>25)&quot;)<div class="">
<br>
<br>
                 modparam(&quot;acc&quot;, &quot;log_extra&quot;,<br>
<br></div>
        &quot;domain=$avp(i:6);direction=$_<u></u>___avp(i:20);from_uname=$fU;<u></u>to_____uname=$tU;calling_<u></u>number=$__avp(__i:21);<u></u>destination=$avp(__i:22);__<u></u>anonymous=$avp(i:23);__gwid=$_<u></u>_avp(i:24);forward=$__avp(i:<u></u>25)&quot;)<div class="">
<br>
<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>_____________________<div class=""><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></div>
        &lt;mailto:<a href="mailto:Users@lists.opensips." target="_blank">Users@lists.opensips.</a>_<u></u>_org<br>
        &lt;mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.<u></u>org</a>&gt;&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/<u></u>users</a>&gt;<br>
<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><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;__&gt;<br>
<br>
<br>
             ______________________________<u></u>_____________________<div class=""><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></div>
        &lt;mailto:<a href="mailto:Users@lists.opensips." target="_blank">Users@lists.opensips.</a>_<u></u>_org<br>
        &lt;mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.<u></u>org</a>&gt;&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/<u></u>users</a>&gt;<br>
<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><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;__&gt;<div class=""><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> &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><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></div>