aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_directed_pickup.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-09 21:14:29 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-09 21:14:29 +0000
commitcc936a2303ac006bbaced31fb8ebaf5032f288d5 (patch)
tree049cdcc177ef34097be634064ff5348ffd3fc2bd /apps/app_directed_pickup.c
parent87af640ccf9f1cfa1747bdf2b0b40a64c897d2c2 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@162341 f38db490-d61c-443f-a65b-d21fe96a405b
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 1d5318f56..68d965244 100644
--- a/apps/app_directed_pickup.c
+++ b/apps/app_directed_pickup.c
@@ -83,7 +83,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;