app_dial and app_queue: Make lock the forwarding channel while taking the channel...
authorRichard Mudgett <rmudgett@digium.com>
Fri, 18 Apr 2014 16:27:31 +0000 (16:27 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 18 Apr 2014 16:27:31 +0000 (16:27 +0000)
commitcbe7f656749f5cf7e4d8321ef74a99c9281a2284
tree08eaecfa4a7d3e1693aa6c18e808b069f1e6aea0
parent9a85fc0aa0f471fe3ea5bfa1496239044d8d8de6
app_dial and app_queue: Make lock the forwarding channel while taking the channel snapshot.

* Fixed ast_channel_publish_dial_forward() not locking the forwarded
channel when taking the channel snapshot.

* Fixed app_dial.c:do_forward() using the wrong channel to get the
original call forwarding string.

* Removed unnecessary locking when calling ast_channel_publish_dial() and
ast_channel_publish_dial_forward() in app_dial and app_queue.  Holding
channel locks when calling ast_channel_publish_dial_forward() with a
forwarded channel could result in pausing the system while the stasis bus
completes processsing a forwarded channel subscription.

Review: https://reviewboard.asterisk.org/r/3451/
........

Merged revisions 412579 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_dial.c
apps/app_queue.c
main/stasis_channels.c