Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Submitted By: Alexey Popov (aap061)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: the second transaction is not linked with the dialog
If we have multiple transactions within one dialog, all of them must be linked to the dialog.
Overwise, reply route can't use dialog flags for the second and all the following transactions.
This situation can be easily reproduced for re-INVITE case
indeed the report is correct, but not the fix - you link the dialog to the
follow-up transactions without ref counting the dialog (to prevent it to be
removed from other places).
The correct approach is to ref count the dialog (when attached) and to
register to the transaction a DESTROY callback to do the unref for the
dialog (when the transaction is deleted).
Let me know if you re-work the patch, otherwise I will do it.