mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-09 14:36:48 +00:00
Fix deadlock potential with some ast_indicate/ast_indicate_data calls.
Calling ast_indicate()/ast_indicate_data() with the channel lock held can result in a deadlock with a local channel because of how local channels need to avoid deadlock. ........ Merged revisions 359451 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 359453 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@359455 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1525,6 +1525,7 @@ int ast_call(struct ast_channel *chan, const char *addr, int timeout);
|
||||
|
||||
/*!
|
||||
* \brief Indicates condition of channel
|
||||
* \note Absolutely _NO_ channel locks should be held before calling this function.
|
||||
* \note Indicate a condition such as AST_CONTROL_BUSY, AST_CONTROL_RINGING, or AST_CONTROL_CONGESTION on a channel
|
||||
* \param chan channel to change the indication
|
||||
* \param condition which condition to indicate on the channel
|
||||
@@ -1534,6 +1535,7 @@ int ast_indicate(struct ast_channel *chan, int condition);
|
||||
|
||||
/*!
|
||||
* \brief Indicates condition of channel, with payload
|
||||
* \note Absolutely _NO_ channel locks should be held before calling this function.
|
||||
* \note Indicate a condition such as AST_CONTROL_HOLD with payload being music on hold class
|
||||
* \param chan channel to change the indication
|
||||
* \param condition which condition to indicate on the channel
|
||||
|
Reference in New Issue
Block a user