Changes between Initial Version and Version 2 of Ticket #2211
- Timestamp:
- Jul 10, 2019 7:56:14 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2211
- Property Owner set to riza
- Property Status changed from new to closed
- Property Resolution changed from to fixed
- Property Summary changed from Use group lock for SIP dialog to Use group lock instead of mutex for SIP dialog which is useful for B2BUA scenarios
-
Ticket #2211 – Description
initial v2 1 This ticket will modify SIP dialog to use group lock to avoid deadlock, etc. 1 On B2BUA scenario (with 2 leg/dialog): 2 1. B2BUA receive a BYE on one leg, while the other leg also receive a BYE. 3 2. While holding the lock on one leg, the B2BUA will try to forward the BYE it received to the other leg. The same goes for the other leg, however the process will stuck since it's unable to obtain the other's dialog lock. 4 It will lead to a deadlock scenario. 2 5 3 The patch will also introduce new API: 6 For this scenario, it is useful for both dialog to use the same lock (e.g: group lock). 7 8 The patch will introduce new API which will help for the above scenario. 4 9 * ```pjsip_dlg_create_uac2()``` and 5 10 * ```pjsip_dlg_get_lock()``` 6 which will be useful for B2BUA scenario. 11 12 Thanks to Peter Koletzki for the report.