[OpenSIPS-Users] how to use cdr?

fun_yang at foxmail.com fun_yang at foxmail.com
Mon Dec 7 09:04:50 EST 2020


HI all !
i use opensips cdr as follows, but it have nothing in /var/log/opensips/opensips.cdr
i can't find any errors in log
Can  provides some possibilities for solving problems

loadmodule "acc.so"
/* what special events should be accounted ? */
modparam("acc", "early_media", 0)
modparam("acc", "report_cancels", 0)
/* by default we do not adjust the direct of the sequential requests.
   if you enable this parameter, be sure to enable "append_fromtag"
   in "rr" module */
modparam("acc", "detect_direction", 0)


modparam("acc", "log_level", 2)
modparam("acc", "log_facility", "LOG_LOCAL1")


if (is_method("INVITE")) {
    do_accounting("log", "cdr|missed|failed");
}

if (is_method("BYE")) {
    do_accounting("log","failed");
}


failure_route[missed_call] {
        do_accounting("log","missed");
        rtpengine_delete();
        if (t_was_cancelled()) {
                exit;
        }


IN rsyslog.conf

local1.*   /var/log/opensips/opensips.cdr



fun_yang at foxmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201207/64d55014/attachment.html>


More information about the Users mailing list