diff --git a/daemon/call.c b/daemon/call.c index 8b6e3d914..0c5f5bc96 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -189,6 +189,12 @@ static void call_timer_iterator(void *key, void *val, void *ptr) { cm = c->callmaster; + if (!(c->redis_call_responsible)) { + ilog(LOG_DEBUG, "Redis-Notification: Timeout resets the deletion timers for a call where I am not responsible."); + c->deleted = c->ml_deleted = poller_now + cm->conf.delete_delay; + goto out; + } + if (c->deleted && poller_now >= c->deleted && c->last_signal <= c->deleted) goto delete; @@ -259,11 +265,6 @@ next: } } - if (!(c->redis_call_responsible)) { - ilog(LOG_INFO, "Timeout did not lead to close the call since I am not responisble"); - goto out; - } - ilog(LOG_INFO, "Closing call due to timeout"); drop: