devopsec left a comment (kamailio/kamailio#4447)

kk, went through a full fresh build from source.  
Updated the DB version check to handle the default for `cdrs_table` properly.  
Duration validated with new precision as well, this is what it looks like 
(`cdr_duration_mode` set to 2):

```
kamailio=# select * from acc_cdrs;
 id |     start_time      |      end_time       | duration
----+---------------------+---------------------+----------
 10 | 2025-11-06 22:38:31 | 2025-11-06 22:38:31 | 0.074269
(1 row)
```

The default precision is left at milliseconds, i.e. `cdr_duration_mode` set to 
1:

```
kamailio=# select * from acc_cdrs where id>10;
 id |     start_time      |      end_time       | duration
----+---------------------+---------------------+----------
 11 | 2025-11-06 22:44:19 | 2025-11-06 22:44:31 |   11.571
(1 row)
```

And seconds precision is available now (`cdr_duration_mode` set to 0):

```
kamailio=# select * from acc_cdrs where id>11;
 id |     start_time      |      end_time       | duration
----+---------------------+---------------------+----------
 12 | 2025-11-06 22:45:59 | 2025-11-06 22:46:07 |        8
(1 row)
```

I am pretty confident that was enough testing, let me know your thoughts team.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4447#issuecomment-3499702785
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/4447/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to