CDR in Flat files

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

CDR in Flat files

Kirill Galinurov
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

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CDR in Flat files

Michele Pinassi

Did you check your rsyslog (/etc/rsyslogd.conf) configuration ?

Michele


On 05/06/2017 10:52, Kirill Galinurov wrote:
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:Servizio Antispam attenzione!: i link numerici sono spesso insicuri!: 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


-- 
Michele Pinassi
Responsabile Telefonia di Ateneo
Servizio Reti, Sistemi e Sicurezza Informatica - Università degli Studi di Siena
tel: 0577.(23)5000 - [hidden email]

Per trovare una soluzione rapida ai tuoi problemi tecnici consulta le FAQ di Ateneo, http://www.faq.unisi.it 

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CDR in Flat files

Kirill Galinurov
In reply to this post by Kirill Galinurov
Yes i change my rsyslog.conf and now. Everything looks OK

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Loading...