MT#61371 prevent A <> A dialogue associations

Change-Id: I1f6a7bb4dd369e9f32f2514cf8496ad574232364
(cherry picked from commit e7143500ea)
mr12.5
Richard Fuchs 1 year ago committed by Donat Zenichev
parent 6b962a39e0
commit 0f50f8cc21

@ -4648,6 +4648,9 @@ static int call_get_dialogue(struct call_monologue *monologues[2], call_t *call,
ft = __monologue_create(call);
tag_setup:
if (ft == tt)
return -1; // it's a hard error to have a monologue talking to itself
/* the fromtag monologue may be newly created, or half-complete from the totag, or
* derived from the viabranch. */
if (!ft->tag.s || str_cmp_str(&ft->tag, fromtag))

Loading…
Cancel
Save