Browse Source

fix table name

update-rsyslog-config
lazedo 7 years ago
parent
commit
69d6b053cb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      kamailio/keepalive.cfg

+ 1
- 1
kamailio/keepalive.cfg View File

@ -44,7 +44,7 @@ route[KEEPALIVE_DB_TIMER]
route[KEEPALIVE_CLEANUP]
{
$var(Query) = $_s(update location set expires = last_modified where id in(select a.id from loc a inner join (select cast(substr(contact, 1, instr(contact,";")-1) as varchar(32)) contact from keepalive where slot = $rtimer_worker AND failed > $def(KEEPALIVE_FAILED_THRESHOLD)) b on substr(a.contact, 1, instr(a.contact,";")-1) = b.contact));
$var(Query) = $_s(update location set expires = last_modified where id in(select a.id from location a inner join (select cast(substr(contact, 1, instr(contact,";")-1) as varchar(32)) contact from keepalive where slot = $rtimer_worker AND failed > $def(KEEPALIVE_FAILED_THRESHOLD)) b on substr(a.contact, 1, instr(a.contact,";")-1) = b.contact));
sql_query("cb", "$var(Query)");
$var(Query) = $_s(DELETE FROM active_watchers where id in(select a.id from keepalive a inner join active_watchers b on a.contact=b.contact where slot = $rtimer_worker and failed > $def(KEEPALIVE_FAILED_THRESHOLD)));
sql_query("cb", "$var(Query)");


Loading…
Cancel
Save