]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_registrar.c: Fix 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 17:40:39 +0000 (11:40 -0600)
commit84983c122209b1c978c118c41f5add36cb1907e0
tree1a09c80fc9dceaa3b63d3f96f9888dfdde3ba2e4
parent9c7c441a0fa70b4a5cbec4588f8a658c717849e5
res_pjsip_registrar.c: Fix 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 AOR lock to avoid the deadlock.

ASTERISK-27391

Change-Id: I89a90f87cb7a02facbafb44c75d8845f93417364
res/res_pjsip_registrar.c