Fix deadlock when Gosub used with alternate dialplan switches.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 1 Jun 2012 23:53:59 +0000 (23:53 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 1 Jun 2012 23:53:59 +0000 (23:53 +0000)
commit91a20ee2f95e2eb8f080bb90568459659960d726
tree46894d256ffc39b60fadd84260e6d67cffead8e4
parentdd02d976f59bd85844ea9a4d35d716843aec3923
Fix deadlock when Gosub used with alternate dialplan switches.

Attempting to remove a channel from autoservice with the channel lock held
will result in deadlock.

* Restructured gosub_exec() to not call ast_parseable_goto() and
ast_exists_extension() with the channel lock held.

(closes issue ASTERISK-19764)
Reported by: rmudgett
Tested by: rmudgett
........

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

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368311 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_stack.c