From 2c222063cada55bbcc87388da065f67f4cdd109a Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Wed, 20 Nov 2024 15:32:43 +0100 Subject: [PATCH] MT#56465 call_get_dialogue: add some code comments Add some code commentaries shedding light on to what ft and tt objects indeed are correlated to. Change-Id: Ic6e6681e5d048940d53b894893b63720e5a82b53 --- daemon/call.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index f37836feb..4ed5e023b 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -4734,6 +4734,10 @@ static int call_get_dialogue(struct call_monologue *monologues[2], call_t *call, __C_DBG("getting dialogue for tags '"STR_FORMAT"'<>'"STR_FORMAT"' in call '"STR_FORMAT"'", STR_FMT(fromtag), STR_FMT(totag), STR_FMT(&call->callid)); + /* ft - is always this side's tag (in offer it's message's from-tag, in answer it's message's to-tag) + * tt - is always other side's tag (in offer it's message's to-tag, in answer it's message's from-tag) + */ + /* we start with the to-tag. if it's not known, we treat it as a branched offer */ tt = call_get_monologue(call, totag); if (!tt)