<div dir="ltr"><div><div><div><div>Razvan,<br></div>no, I was only setting the CDR_FLAG on the initial INVITE. This works with 1.10.<br><br></div>Then with 1.11, I tested setting the CDR_FLAG when processing BYE requests but it didn't work.<br>
Then I set DB_FLAG for BYE and after that, it worked.<br></div>So this behavior changed.<br>Thanks a lot.<br><br></div>Regards,<br>Takeshi.<br><div><div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Apr 30, 2014 at 11:05 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>
I just tested and there are no issues on my setup. Are you setting the CDR_FLAG for all the requests? Have you also tried with different db modes?<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><div><div class="h5"><br>
<br>
On 04/23/2014 03:05 PM, mayamatakeshi wrote:<br>
</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><div class="h5">
Hello,<br>
I am trying to upgrade from opensips 1.10 (commit<br>
bfd86ab25554082053167a82655e66<u></u>9ca1c0ea7c)<br>
to 1.11 (latest 313f41ad46921d543980fa9fc71fb0<u></u>715d385085).<br>
<br>
Almost everything works.<br>
However, in my opensips.cfg I set dialog db_mode to REALTIME. And I have<br>
acc in CDR mode.<br>
Then after making some calls and confirming the dialogs were inserted in<br>
the opensips.dialog table, I kill and restart opensips. Then I 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 indication<br>
that this behavior would change:<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>
"mysql://opensips:opensipsrw@<u></u>localhost/opensips")<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", "mysql://opensips:opensipsrw@<u></u>localhost/opensips")<br>
modparam("acc", "failed_transaction_flag", "FAILED_TRANSACTION_FLAG")<br>
modparam("acc", "db_extra",<br>
"domain=$avp(i:6);direction=$<u></u>avp(i:20);from_uname=$fU;to_<u></u>uname=$tU;calling_number=$avp(<u></u>i:21);destination=$avp(i:22);<u></u>anonymous=$avp(i:23);gwid=$<u></u>avp(i:24);forward=$avp(i:25)")<br>
modparam("acc", "log_extra",<br>
"domain=$avp(i:6);direction=$<u></u>avp(i:20);from_uname=$fU;to_<u></u>uname=$tU;calling_number=$avp(<u></u>i:21);destination=$avp(i:22);<u></u>anonymous=$avp(i:23);gwid=$<u></u>avp(i:24);forward=$avp(i:25)")<br>
modparam("acc", "cdr_flag", "CDR_FLAG")<br>
<br>
Regards,<br>
Takeshi<br>
<br>
<br>
<br></div></div>
______________________________<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>
</blockquote>
<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>
</blockquote></div><br></div></div></div></div></div></div>