I've found some strange cdr records produced by kamailio. Haven't experienced this before in earlier versions.
One example (last field is kamailios call duration): 1442923048|1442923184|136298900000.000000 The duration of this call is in reality ~136 seconds. This matches the first three digits of the duration-field. Is this just a coincidence?
Another example: 1443011985|1443012286|301148.400000 This call has a duration of 301 seconds. Same as the first three digits.
I haven't found anything special with these calls, and it doesn't seem possible to reproduce. Just happens sometimes.
Settings for acc module: modparam("acc", "db_url", "flatstore:/accounting") modparam("acc", "log_level", 3) modparam("acc", "cdr_enable", 1) modparam("acc", "cdr_start_on_confirmed", 1) modparam("acc", "cdr_extra", "anum=$dlg_var(caller);bnum=$dlg_var(callee);dlg_start_time=$dlg_var(inv_start);cancel_time=$dlg_var(cancel);account=$dlg_var(account);calltype=$dlg_var(calltype);callid=$dlg_var(callid);callid_system=$dlg_var(callid_system);trunk_id=$dlg_var(trunk_id)") modparam("dialog", "dlg_flag", 4) modparam("acc", "cdrs_table", "cdr") modparam("acc", "cdr_on_failed", 0)
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/350
Checking quickly the logs, I see that the column types where changed from string/varchar to datetime and double. What is your structure for cdr table?
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/350#issuecomment-144722223
I'm using flatstore.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/350#issuecomment-144727529
It might have been related to a race when storing dlg variable in database, which should be fixed in 4.3.3. Can you update and try to see if that was the issue?
I stress tested after the fix with sipp, in chunks of 50k calls at 400cps with max 4k of active calls and the duration seemed to be ok.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/350#issuecomment-145242054
I will test with the newest version and let you know. Thank you.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/350#issuecomment-145486365
Closed #350.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/350#event-439197827
Going to close this one, re-open if the issue is there with the latest version.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/350#issuecomment-149233142