From 18999c7cb132b2c775b0232d459bef19197569fd Mon Sep 17 00:00:00 2001 From: Stefan-Cristian Mititelu Date: Tue, 14 May 2024 12:56:52 +0300 Subject: [PATCH] MT#55283 Fix ipv stats when calls are restored from redis closes #1828 closes #1829 Change-Id: I3de667b4b45c9d70ee82aec6646cc41e712f21ae --- daemon/redis.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/redis.c b/daemon/redis.c index 28859b28d5..9a1bfa6a56 100644 --- a/daemon/redis.c +++ b/daemon/redis.c @@ -2090,6 +2090,8 @@ static void json_restore_call(struct redis *r, const str *callid, bool foreign) // set it to what we want, updating the statistics if needed CALL_CLEAR(c, FOREIGN); call_make_own_foreign(c, foreign); + bf_set_clear(&c->call_flags, CALL_FLAG_MEDIA_COUNTED, false); + statistics_update_ip46_inc_dec(c, CMC_INCREMENT); err = NULL;