[SR-Users] ACC CDR accounting

Oleg Podguyko podguiko at mail.ru
Sat Jun 11 15:15:43 CEST 2022


Yes, I tried to use next lines:
 
    if (is_method("INVITE")) {
              
 
        setflag(FLAG_ACC_LOG);
         dlg_manage();
        setflag(FLAG_ACC_LOG_MISSED);
        setflag(FLAG_ACC_LOG_FAILED);
 
}
 
 
and still got only INVITE transaction
  
>Суббота, 11 июня 2022, 15:15 +03:00 от Henning Westerholt <hw at gilawa.com>:
> 
>Hello,
> 
>do you also engage the dialog module on the initial INVITE, e.g. with dlg_manage()?
> 
>Cheers,
> 
>Henning
> 
>-- 
>Henning Westerholt –  https://skalatan.de/blog/
>Kamailio services –  https://gilawa.com
> 
>From: sr-users < sr-users-bounces at lists.kamailio.org >  On Behalf Of  Oleg Podguyko
>Sent: Saturday, June 11, 2022 11:27 AM
>To: sr-users at lists.kamailio.org
>Subject: [SR-Users] ACC CDR accounting
> 
>HI
>I’m trying to get CDR function. I would like to have one CDR for whole call at the syslog.
> 
>I use:
> 
> 
>……
>loadmodule "db_text.so"
>loadmodule "dialog.so"
>loadmodule "acc.so"
>……..
> 
># -----Dialog module -----
>modparam("dialog", "db_mode", 0)
> 
> 
># -----ACCounting module -----
>modparam("acc", "early_media", 0)
>modparam("acc", "report_cancels", 1)
>modparam("acc", "log_facility", "LOG_LOCAL1")
>modparam("acc", "detect_direction", 0)
>modparam("acc", "log_level", ACC_LOG_LEVEL)
>modparam("acc", "log_flag", FLAG_ACC_LOG)
>modparam("acc", "log_missed_flag", FLAG_ACC_LOG_MISSED)
>modparam("acc", "failed_transaction_flag", FLAG_ACC_LOG_FAILED)
>modparam("acc", "log_extra", "ip_src=$si;ip_dst=$avp(ip_dst);sip_from=$fU;sip_to=$tU;ruri_user=$rU;spx_rs=$avp(spx_http_rs)") ## TODO
>modparam("acc", "cdr_enable", 1)
>modparam("acc", "cdr_enable_log", 1)
>modparam("acc", "cdr_facility", "LOG_LOCAL1")
> 
> 
> 
>request_route {
> 
>    if (is_method("INVITE")) {
>              
> 
>        setflag(FLAG_ACC_LOG);
>        setflag(FLAG_ACC_LOG_MISSED);
>        setflag(FLAG_ACC_LOG_FAILED);
> 
>}
> 
>At the kamailio.log I see only transaction for INVITE, but I wait for  some CDR  for all dialog. Whats wrong in my config? 
>--
> 
> 
>--
>Олег Подгуйко 
 
 
--
Олег Подгуйко
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220611/1b8d4d76/attachment.htm>


More information about the sr-users mailing list