Changes between Initial Version and Version 2 of Ticket #2211


Ignore:
Timestamp:
Jul 10, 2019 7:56:14 AM (5 years ago)
Author:
riza
Comment:

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. 
     1On B2BUA scenario (with 2 leg/dialog): 
     21. B2BUA receive a BYE on one leg, while the other leg also receive a BYE. 
     32. 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. 
     4It will lead to a deadlock scenario. 
    25 
    3 The patch will also introduce new API: 
     6For this scenario, it is useful for both dialog to use the same lock (e.g: group lock). 
     7 
     8The patch will introduce new API which will help for the above scenario. 
    49* ```pjsip_dlg_create_uac2()``` and  
    510* ```pjsip_dlg_get_lock()``` 
    6 which will be useful for B2BUA scenario. 
     11 
     12Thanks to Peter Koletzki for the report.