<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"><style>body { line-height: 1.5; }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>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;" 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>
</body></html>