(closes issue #14005)
Reported by: ddl
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@162341
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
/* Helper function that determines whether a channel is capable of being picked up */
static int can_pickup(struct ast_channel *chan)
{
- if (!chan->pbx && (chan->_state == AST_STATE_RINGING || chan->_state == AST_STATE_RING))
+ if (!chan->pbx && (chan->_state == AST_STATE_RINGING || chan->_state == AST_STATE_RING || chan->_state == AST_STATE_DOWN))
return 1;
else
return 0;