Long time ago I have added in the configuration: latency_limit_db=500
After the upgrade from version 5.1.7 to version 5.1.8, kamailio started printing a lot of log lines related to db slow query: <core> [db_query.c:68]: db_do_submit_query(): alert - query execution too long [1136 us] <core> [db_query.c:68]: db_do_submit_query(): alert - query execution too long [914 us] <core> [db_query.c:68]: db_do_submit_query(): alert - query execution too long [741 us] <core> [db_query.c:68]: db_do_submit_query(): alert - query execution too long [621 us]
It seems that after the upgrade the latency_limit_db parameter configuration changed from milliseconds to microseconds.
Here the commit that probably caused the issue: https://github.com/kamailio/kamailio/commit/ce8d36f301d7688255597a67693e47dc...
If a fix is released, please backport it till 5.1 branch.
Thank you. Marco