Fix deadlock during dialplan reload.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 9 Nov 2011 20:55:43 +0000 (20:55 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 9 Nov 2011 20:55:43 +0000 (20:55 +0000)
commit6d481420ce07ea171736f891bed54828a5173789
treed1b92318cde73b71889db083953ba4abe528c659
parent04f04ff39d8067c836c0a19120113ab1c210a5ae
Fix deadlock during dialplan reload.

Another deadlock between the conlock/hints and channels/channel locking
orders.

* Don't hold the channel and private lock in sip_new() when calling
ast_exists_extension().

(closes issue ASTERISK-18740)
Reported by: Byron Clark
Patches:
      sip_exists_exten_dlock_3.diff (license #5041) patch uploaded by Gregory Hinton Nietsky
      ASTERISK-18740.patch (license #6157) patch uploaded by Byron Clark
Tested by: Byron Clark
........

Merged revisions 344268 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 344271 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@344272 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c