[OpenSIPS-Users] how to use cdr?

Social Boh social at bohboh.info
Mon Dec 7 14:10:39 EST 2020


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/c5e30ced/attachment-0001.html>


More information about the Users mailing list