mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 11:42:27 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@8607 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Doxygenified Copyright Header */
|
/* Doxygenified Copyright Header */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \mainpage Asterisk -- An Open Source Telephony Toolkit
|
* \mainpage Asterisk -- An Open Source Telephony Toolkit
|
||||||
*
|
*
|
||||||
|
@@ -2005,10 +2005,12 @@ int ast_indicate(struct ast_channel *chan, int condition)
|
|||||||
{
|
{
|
||||||
int res = -1;
|
int res = -1;
|
||||||
|
|
||||||
/* Stop if we're a zombie or need a soft hangup */
|
|
||||||
if (ast_test_flag(chan, AST_FLAG_ZOMBIE) || ast_check_hangup(chan))
|
|
||||||
return -1;
|
|
||||||
ast_mutex_lock(&chan->lock);
|
ast_mutex_lock(&chan->lock);
|
||||||
|
/* Stop if we're a zombie or need a soft hangup */
|
||||||
|
if (ast_test_flag(chan, AST_FLAG_ZOMBIE) || ast_check_hangup(chan)) {
|
||||||
|
ast_mutex_unlock(&chan->lock);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
if (chan->tech->indicate)
|
if (chan->tech->indicate)
|
||||||
res = chan->tech->indicate(chan, condition);
|
res = chan->tech->indicate(chan, condition);
|
||||||
ast_mutex_unlock(&chan->lock);
|
ast_mutex_unlock(&chan->lock);
|
||||||
|
Reference in New Issue
Block a user