]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_registrar.c: Fix named AOR and pjproject group deadlock.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 6 Nov 2017 22:37:49 +0000 (16:37 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 7 Nov 2017 18:00:24 +0000 (12:00 -0600)
commit7ad4c19b2056cbf78a3493ff68f4586f180055ba
treeea5ab56d1f7856a4fa24e0cfe02f6c6deec17af2
parent8824ed44dc902a4852002bbaa51e6dd8d36fef46
res_pjsip_registrar.c: Fix named AOR and pjproject group deadlock.

One of the patches for ASTERISK_27147 introduced a deadlock regression.
When the connection oriented transport shut down, the code attempted to
remove the associated contact.  However, that same transport had just
requested a registration that we hadn't responded to yet.  Depending
upon timing we could deadlock.

* Made send the REGISTER response after we completed processing the
request contacts and released the named AOR lock to avoid the deadlock.

ASTERISK-27391

Change-Id: I89a90f87cb7a02facbafb44c75d8845f93417364
res/res_pjsip_registrar.c