summaryrefslogtreecommitdiff
path: root/apps/app_directed_pickup.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2008-12-09 21:16:37 +0000
committerJoshua Colp <jcolp@digium.com>2008-12-09 21:16:37 +0000
commitf56edec570eb97460656a569fd258f15de606f28 (patch)
tree38e5fa869cb2843d0bbc6c32bc0af4d5d65e27f3 /apps/app_directed_pickup.c
parent92f7bae3df8ff770050f4203ffbfa6783bee69cf (diff)
Merged revisions 162341 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r162341 | file | 2008-12-09 17:14:29 -0400 (Tue, 09 Dec 2008) | 4 lines Add 'down' as a valid state for directed call pickup. This creeps up when we receive session progress when dialing a device and not ringing. (closes issue #14005) Reported by: ddl ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@162342 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_directed_pickup.c')
-rw-r--r--apps/app_directed_pickup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_directed_pickup.c b/apps/app_directed_pickup.c
index 7fb5f6fea..640911317 100644
--- a/apps/app_directed_pickup.c
+++ b/apps/app_directed_pickup.c
@@ -115,7 +115,7 @@ static int pickup_do(struct ast_channel *chan, struct ast_channel *target)
/* 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;