Browse Source

expires in location table is timestamp

4.3
lazedo 7 years ago
committed by Luis Azedo
parent
commit
022c0dd8b0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      kamailio/db_scripts/db_extra_check.sql

+ 1
- 1
kamailio/db_scripts/db_extra_check.sql View File

@ -3,7 +3,7 @@ do_db_extra_check() {
# location
KazooDB -db ${DB_CURRENT_DB} "delete from location where socket not like 'udp:%';"
KazooDB -db ${DB_CURRENT_DB} "delete from location where expires > 0 and datetime(expires, 'unixepoch') < datetime('now', '-10 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


Loading…
Cancel
Save