<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }p { margin-top: 0px; margin-bottom: 0px; }div.FoxDiv20201207221231630577 { }body { font-size: 14px; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span><div>Is caused by the following settings,and the log to not appear in time</div><div><br></div><div>loadmodule "dialog.so"</div><div>modparam("dialog", "db_mode", 2)</div></div><div><br></div><div>Is this a bug? I encountered this problem in version 2.4.7,db_mode only used for database control,</div><div>or there is a problem with the document description?</div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>fun_yang@foxmail.com</div></div></span></div>
<blockquote style="margin-Top: 0px; margin-Bottom: 0px; margin-Left: 0.5em; margin-Right: inherit"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:social@bohboh.info">Social Boh</a></div><div><b>Date:</b> 2020-12-07 22:10</div><div><b>To:</b> <a href="mailto:users@lists.opensips.org">OpenSIPS users mailling list</a>; <a href="mailto:fun_yang@foxmail.com">fun_yang@foxmail.com</a></div><div><b>Subject:</b> Re: [OpenSIPS-Users] how to use cdr?</div></div></div><div><div class="FoxDiv20201207221231630577">
<p>Hello,</p>
<p>do you see cdr log on your syslog file? En CentOS is
/var/log/messages</p>
<p>If the answer is yes try this:</p>
<p>create the cdr file: <br>
</p>
<p>touch /var/log/opensips/opensips.cdr</p>
<p>restart rsyslog:</p>
<p>systemctl restart rsyslog</p>
<p>restart opensips:</p>
<p>systemctl restart opensips<br>
</p>
<p>If OpenSIPs run with opensips user:</p>
<p>chown -Rf opensips:opensips <span style="line-height: 1.5;
background-color: transparent;">/var/log/opensips</span></p>
<p><span style="line-height: 1.5; background-color: transparent;">Regards<br>
</span></p>
<pre class="moz-signature" cols="72">---
I'm SoCIaL, MayBe</pre>
<div class="moz-cite-prefix">El 07/12/2020 a las 04:04,
<a class="moz-txt-link-abbreviated" href="mailto:fun_yang@foxmail.com">fun_yang@foxmail.com</a> escribió:<br>
</div>
<blockquote type="cite" cite="mid:2020120717044959498614@foxmail.com" style="margin-top: 0px;">
<div><span></span>
<div>HI all !</div>
<div>i use opensips cdr as follows, but it have nothing in <span style="line-height: 1.5; background-color: transparent;">/var/log/opensips</span><span style="line-height: 1.5; background-color: transparent;">/opensips.cdr</span></div>
<div><span style="line-height: 1.5; background-color:
transparent;">i can't find any errors in log</span></div>
<div><span style="background-color: transparent;">Can provides
some possibilities for solving problems</span></div>
<div><br>
</div>
<div>loadmodule "acc.so"</div>
<div>/* what special events should be accounted ? */</div>
<div>modparam("acc", "early_media", 0)</div>
<div>modparam("acc", "report_cancels", 0)</div>
<div>/* by default we do not adjust the direct of the sequential
requests.</div>
<div> if you enable this parameter, be sure to enable
"append_fromtag"</div>
<div> in "rr" module */</div>
<div>modparam("acc", "detect_direction", 0)</div>
<div><br>
</div>
<div><br>
</div>
<div>modparam("acc", "log_level", 2)</div>
<div>modparam("acc", "log_facility", "LOG_LOCAL1")</div>
<div><br>
</div>
<div><br>
</div>
<div>if (is_method("INVITE")) {</div>
<div> do_accounting("log", "cdr|missed|failed");</div>
<div>}</div>
<div><br>
</div>
<div>if (is_method("BYE")) {</div>
<div> do_accounting("log","failed");</div>
<div>}</div>
<div><br>
</div>
<div><br>
</div>
<div>failure_route[missed_call] {</div>
<div> do_accounting("log","missed");</div>
<div> rtpengine_delete();</div>
<div> if (t_was_cancelled()) {</div>
<div> exit;</div>
<div> }</div>
<div><br>
</div>
<div><br>
</div>
<div>IN rsyslog.conf</div>
<div><br>
</div>
<div>local1.* /var/log/opensips/opensips.cdr</div>
</div>
<div><br>
</div>
<hr style="width: 210px; height: 1px;" size="1" color="#b5c4df" align="left">
<div><span>
<div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE:
10pt">
<div><a class="moz-txt-link-abbreviated" href="mailto:fun_yang@foxmail.com">fun_yang@foxmail.com</a></div>
</div>
</span></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div></div></blockquote>
</body></html>