<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"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></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'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 <<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a><br></div><div class="">
<mailto:<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>>> 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 <<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-<u></u>solutions.com</a>><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>
<<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>
<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 "dialog.so"<br>
modparam("dialog", "default_timeout", 10800)<br>
modparam("dialog", "profiles_with_value", "calls")<br>
modparam("dialog", "db_url",<br></div>
"mysql://opensips:opensipsrw@_<u></u>_localhost/opensips")<div class=""><br>
modparam("dialog", "db_mode", 1) # 1=REALTIME, 2=DELAYED, 3=SHUTDOWN<br>
modparam("dialog", "db_update_period", 10)<br>
<br>
<br>
loadmodule "acc.so"<br>
modparam("acc", "db_flag", "DB_FLAG")<br>
modparam("acc", "log_flag", "LOG_FLAG")<br>
modparam("acc", "log_level", -1)<br>
modparam("acc", "log_facility", "LOG_LOCAL0")<br>
modparam("acc", "db_url",<br></div>
"mysql://opensips:opensipsrw@_<u></u>_localhost/opensips")<div class=""><br>
modparam("acc", "failed_transaction_flag",<br>
"FAILED_TRANSACTION_FLAG")<br>
modparam("acc", "db_extra",<br></div>
"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)")<div class="">
<br>
modparam("acc", "log_extra",<br></div>
"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)")<div class="">
<br>
modparam("acc", "cdr_flag", "CDR_FLAG")<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> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.<u></u>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>
<<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>><br>
<br>
<br>
______________________________<u></u>___________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.<u></u>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><div class=""><br>
<<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>><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>