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
Proposal solution is attached
Thanks,
Alexey
proposal solution that fix this issue
Hi Alexey,
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.
Regards,
Bogdan
Ok, I did my own fix for this, so to solve all related issues and races - please update from SVN.
Regards,
Bogdan