I tested setting up acc module to use the cdr_flag with dialog module.<div>Works nicely until opensips is restarted while there is an open call.</div><div>After an opensips restart, calls that were started before the restart do not get an entry in the DB. Not even an old style BYE record.</div>

<div>I verified that the dialog was matched using:</div><div>  xlog(&quot;L_NOTICE&quot;, &quot;CID-&gt;$ci, fU-&gt;$fU, orU-&gt;$oU: Loose Route $rm Request - si=$si - next via $rd:$rp\n&quot;);</div><div>    if ( $DLG_status == NULL ) {</div>

<div>        xlog(&quot;L_WARN&quot;, &quot;CID-&gt;$ci, fU-&gt;$fU, orU-&gt;$oU: WARNING: BYE without dialog. NO CDR, just old style rec for BYE in acc table.\n&quot;);</div><div>in the loose routing logic that handles the bye.</div>

<div>I get the first message but not the warning.</div><div>I also ran into this problem previously with media_proxy_engage. It cleans itself up because of no RTP after a bit though and so is not as big of a deal.</div><div>

<br></div><div>Am I missing something or is this a bug I need to report?</div><div><br></div><div>Dave</div><div><br></div>