app_dial and app_queue: Make lock the forwarding channel while taking the channel...
authorRichard Mudgett <rmudgett@digium.com>
Fri, 18 Apr 2014 16:19:17 +0000 (16:19 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 18 Apr 2014 16:19:17 +0000 (16:19 +0000)
commitf9967aa7e392be3687f2dd4c42bce25bb4ae1bd3
tree2e14bec357760005f59c9ae4e7198f6b2d98bfb7
parente634bf84eb1f3059ab7468c3033c02e7199658bf
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/

git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/12@412579 f38db490-d61c-443f-a65b-d21fe96a405b
apps/app_dial.c
apps/app_queue.c
main/stasis_channels.c