[OpenSIPS-Users] CDR in Flat files

Kirill Galinurov k.galinurov at gmail.com
Mon Jun 5 04:52:48 EDT 2017


Hi ALL.
 I try to store cdr in flat files.
My config is
loadmodule "acc.so"
modparam("acc", "detect_direction", 0)
modparam("acc", "extra_fields", "log: src_ip; dst_ip")
modparam("acc", "leg_fields", "log: caller; callee")
modparam("acc", "log_facility", "LOG_DAEMON")

       if(is_method("INVITE"))  {
           if (check_address("0","$si","$sp","any")){
               force_send_socket(udp:172.20.20.30:5060);
               setflag(CALL_AST);
               create_dialog("B");
               do_accounting("log", "cdr");
}

in cosole debug I see
ACC: call ended:
created=1496654777;call_start_time=1496654780;duration=7;ms_duration=7393;setuptime=3;method=I
NVITE;from_tag=SDipn2901-1544324631353641441C2115;to_tag=as51263d7c;call_id=SDipn2901-3f6bad0e2bf09ec16aeaedd37abb0661-v300g00030;code=
200;reason=OK;src_ip=;dst_ip=;caller=;callee=

But no records in log file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170605/c92aecec/attachment.html>


More information about the Users mailing list