Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dialog: do not populate dst_leg on unmatched dlg
Avoid chaning the dst_leg on unmatched dialogs, as this might lead to inconsistent states. A common pattern is to match a dialog in state 5, which would set a dst_leg, but then "invalidate" the dialog due to the bad state - proceeding to a next dialog would not set the dst_leg (as it was set by the previous match), leading to an invalid access in the second dialog. Credits go to NFON for reporting and providing valuable troubleshooting information
- Loading branch information