<div dir="ltr"><div><div>Hello,<br>I am trying to upgrade from opensips 1.10 (commit bfd86ab25554082053167a82655e669ca1c0ea7c)<br></div>to 1.11 (latest 313f41ad46921d543980fa9fc71fb0715d385085).<br><br></div><div>Almost everything works.<br>
However, in my opensips.cfg I set dialog db_mode to REALTIME. And I have acc in CDR mode.<br><div>Then after making some calls and confirming the dialogs were inserted in the opensips.dialog table, I kill and restart opensips. Then I terminate the calls.<br>
</div><div>In 1.10, this causes proper generation of records in the acc table.<br></div><div>However, in 1.11, no records are written to acc table.<br></div><div>I checked the release notes for 1.11 but could not find any indication that this behavior would change:<br>
<a href="http://opensips.org/pub/opensips/1.11.0/src/ChangeLog">http://opensips.org/pub/opensips/1.11.0/src/ChangeLog</a><br></div><div><br></div><div>Before filing a bug ticket i would like to confirm as i might be overlooking something.<br>
</div><div></div><div><br></div>Here is the significant snippets of opensips.cfg:<br></div><div><div><br>loadmodule "dialog.so"<br>modparam("dialog", "default_timeout", 10800)<br>modparam("dialog", "profiles_with_value", "calls")<br>
modparam("dialog", "db_url", "mysql://opensips:opensipsrw@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@localhost/opensips")<br>modparam("acc", "failed_transaction_flag", "FAILED_TRANSACTION_FLAG")<br>
modparam("acc", "db_extra", "domain=$avp(i:6);direction=$avp(i:20);from_uname=$fU;to_uname=$tU;calling_number=$avp(i:21);destination=$avp(i:22);anonymous=$avp(i:23);gwid=$avp(i:24);forward=$avp(i:25)")<br>
modparam("acc", "log_extra", "domain=$avp(i:6);direction=$avp(i:20);from_uname=$fU;to_uname=$tU;calling_number=$avp(i:21);destination=$avp(i:22);anonymous=$avp(i:23);gwid=$avp(i:24);forward=$avp(i:25)")<br>
modparam("acc", "cdr_flag", "CDR_FLAG")<br><br></div><div>Regards,<br>Takeshi<br></div><br></div></div>