From 0bc78550f8c56efbd0f82e16318b1980a21e84c4 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 26 Apr 2023 14:06:28 -0400 Subject: [PATCH] TT#146201 reverse redis restore directions Set up codec handlers by their subscribers, not subscriptions. Change-Id: Ib06d2f06965d08cda248ae059c269ff5d6f2b5a7 --- daemon/redis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/redis.c b/daemon/redis.c index 020234c90..6383a1614 100644 --- a/daemon/redis.c +++ b/daemon/redis.c @@ -1852,7 +1852,7 @@ static int json_link_medias(struct call *c, struct redis_list *medias, // find the pair media struct call_monologue *ml = med->monologue; - for (GList *sub = ml->subscriptions.head; sub; sub = sub->next) { + for (GList *sub = ml->subscribers.head; sub; sub = sub->next) { struct call_subscription *cs = sub->data; struct call_monologue *other_ml = cs->monologue; for (unsigned int j = 0; j < other_ml->medias->len; j++) { @@ -1861,7 +1861,7 @@ static int json_link_medias(struct call *c, struct redis_list *medias, continue; other_m->monologue = other_ml; if (other_m->index == med->index) { - codec_handlers_update(med, other_m, NULL, NULL); + codec_handlers_update(other_m, med, NULL, NULL); break; } }