Hello!
How can I send RADIUS Accounting-Request in case of terminating dialog via default_timeout timer? I tried to catch Kamailio's own generated BYE in event_route AND tried to use cdr_expired_dlg_enable , but it looks like acc module is not triggered.
event_route[dialog:end] { if ( dlg_isflagset(FLT_ACC_START) && is_method("BYE") ) { setflag(FLT_ACC); } dlg_resetflag(FLT_ACC_START); }
modparam("acc", "log_flag", FLT_ACC) modparam("acc", "cdr_expired_dlg_enable", 1) modparam("acc_radius", "radius_config", "/etc/radiusclient/radiusclient.conf") modparam("acc_radius", "radius_flag", FLT_ACC) modparam("acc_radius", "radius_missed_flag", FLT_ACCMISSED) modparam("dialog", "default_timeout", 3600) modparam("dialog", "send_bye", 1)
version: kamailio 4.4.2 (x86_64/linux) 892ad6 flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: 892ad6 compiled on 12:58:38 Aug 28 2017 with gcc 4.8.5