Browse Source

MT#55283 Fix ipv stats when calls are restored from redis

closes #1828
closes #1829

Change-Id: I3de667b4b45c9d70ee82aec6646cc41e712f21ae
mr12.4
Stefan-Cristian Mititelu 2 years ago
committed by Richard Fuchs
parent
commit
18999c7cb1
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      daemon/redis.c

+ 2
- 0
daemon/redis.c View File

@ -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 // set it to what we want, updating the statistics if needed
CALL_CLEAR(c, FOREIGN); CALL_CLEAR(c, FOREIGN);
call_make_own_foreign(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; err = NULL;


Loading…
Cancel
Save