Hi Guys! I'm trying to store CDRs for Kamailio calls.
Following Siremis tutorial (http://siremis.asipto.com/install-accounting/) I'm able to gather Succesfull Calls and using the MySQL stored procedure I can have a CDR table. But what I can see now is that only outbound calls with a duration are stored and that failed attempts are not stored into the database. How to capture those attempts too?
Here is my accounting configuration:
# ----- acc params ----- modparam("acc", "early_media", 0) modparam("acc", "report_ack", 0) modparam("acc", "report_cancels", 0) modparam("acc", "detect_direction", 0) modparam("acc", "log_flag", FLT_ACC) modparam("acc", "log_missed_flag", FLT_ACCMISSED) modparam("acc", "log_extra", "src_user=$fU;src_domain=$fd;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd") modparam("acc", "failed_transaction_flag", FLT_ACCFAILED) #!ifdef WITH_ACCDB modparam("acc", "db_flag", FLT_ACC) modparam("acc", "db_missed_flag", FLT_ACCMISSED) modparam("acc", "db_url", DBURL) modparam("acc", "db_extra", "src_user=$fU;src_domain=$fd;dst_user=$rU;dst_domain=$rd;src_ip=$si") modparam("acc", "cdr_enable", 1) #!endif
Thanks Max
Hi Massimo
you've to modify also your scripts and set flag FLT_ACCMISSED when you want to log the missed or failed call
Marino
----- Marino Mileti -- View this message in context: http://sip-router.1086192.n5.nabble.com/Kamailio-CDRs-tp133331p133332.html Sent from the Users mailing list archive at Nabble.com.
Hi Marino, now the parameter is set to number 2
#!define FLT_ACCMISSED 2
Should raised to 3 or more?
Thanks
Il giorno 18/dic/2014, alle ore 11:02, Marino Mileti ha scritto:
Hi Massimo
you've to modify also your scripts and set flag FLT_ACCMISSED when you want to log the missed or failed call
Marino
Marino Mileti
View this message in context: http://sip-router.1086192.n5.nabble.com/Kamailio-CDRs-tp133331p133332.html Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
No no you've to edit you scripts... For example....in a failure_route:
if (t_check_status("408")) { #!ifdef WITH_ACCOUNTING setflag(FLT_ACCFAILED); #!endif }
In this way you can "log" a call missed for timeout.
Massimo Varriale (IPZeta) wrote
Hi Marino, now the parameter is set to number 2
#!define FLT_ACCMISSED 2
Should raised to 3 or more?
Thanks
----- Marino Mileti -- View this message in context: http://sip-router.1086192.n5.nabble.com/Kamailio-CDRs-tp133331p133337.html Sent from the Users mailing list archive at Nabble.com.