From 2eadcd4bef59b91d14188ae51df2f2fc8caff695 Mon Sep 17 00:00:00 2001 From: lazedo Date: Tue, 19 Mar 2019 01:56:16 +0000 Subject: [PATCH] don't delete registrations on startup sync timer will take care of that --- kamailio/db_scripts/db_extra_check.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kamailio/db_scripts/db_extra_check.sql b/kamailio/db_scripts/db_extra_check.sql index 92e18ba..88210bd 100644 --- a/kamailio/db_scripts/db_extra_check.sql +++ b/kamailio/db_scripts/db_extra_check.sql @@ -6,7 +6,7 @@ if [[ $RESET_NON_UDP_ENABLED == "true" ]]; then KazooDB -db ${DB_CURRENT_DB} "delete from location where socket not like 'udp:%';" fi -KazooDB -db ${DB_CURRENT_DB} "delete from location where expires > 0 and datetime(expires) < datetime('now', '-30 seconds');" +##KazooDB -db ${DB_CURRENT_DB} "delete from location where expires > 0 and datetime(expires) < datetime('now', '-30 seconds');" KazooDB -db ${DB_CURRENT_DB} "delete from location_attrs where not exists(select id from location where ruid = location_attrs.ruid);" ## presence