From 67aefcec14fdcb4bf9aca0a3a400b5d8153cd108 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 25 Oct 2024 10:38:08 -0400 Subject: [PATCH] MT#61371 replace code with helper function This function does the same thing Change-Id: If6b8088af3f5cda81d05af5a3f176122f8f55591 (cherry picked from commit d2d9603ddf9f2da1bbf02d9a1e9bb2f45fc3717d) (cherry picked from commit ba8ea72a6cb3e9df44b377cbb6d3b80dc374ab81) --- daemon/call.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/daemon/call.c b/daemon/call.c index 619508bcf..50e888427 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -4514,18 +4514,7 @@ static int call_get_monologue_new(struct call_monologue *monologues[2], call_t * __C_DBG("found existing monologue"); /* unkernelize existing monologue medias, which are subscribed to something */ - __monologue_unconfirm(ret, "signalling on existing monologue"); - for (int i = 0; i < ret->medias->len; i++) - { - struct call_media * media = ret->medias->pdata[i]; - if (!media) - continue; - - for (__auto_type subcription = media->media_subscriptions.head; subcription; subcription = subcription->next) { - struct media_subscription * ms = subcription->data; - __media_unconfirm(ms->media, "signalling on existing media"); - } - } + dialogue_unconfirm(ret, "signalling on existing monologue"); /* If to-tag is present, retrieve it. * Create a new monologue for the other side, if the monologue with such to-tag not found.