[OpenSIPS-Users] how to use cdr?

fun_yang at foxmail.com fun_yang at foxmail.com
Mon Dec 7 14:20:00 EST 2020


Is caused by the following settings,and the log to not appear in time

loadmodule "dialog.so"
modparam("dialog", "db_mode", 2)

Is this a bug? I encountered this problem in version 2.4.7,db_mode only used for database control,
or there is a problem with the document description?



fun_yang at foxmail.com
 
From: Social Boh
Date: 2020-12-07 22:10
To: OpenSIPS users mailling list; fun_yang at foxmail.com
Subject: Re: [OpenSIPS-Users] how to use cdr?
Hello,
do you see cdr log on your syslog file? En CentOS is /var/log/messages
If the answer is yes try this:
create the cdr file: 
touch /var/log/opensips/opensips.cdr
restart rsyslog:
systemctl restart rsyslog
restart opensips:
systemctl restart opensips
If OpenSIPs run with opensips user:
chown -Rf opensips:opensips /var/log/opensips
Regards
---
I'm SoCIaL, MayBe
El 07/12/2020 a las 04:04, fun_yang at foxmail.com escribió:
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

_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201207/5979be8c/attachment.html>


More information about the Users mailing list