From: Joshua Colp Date: Tue, 9 Dec 2008 21:14:29 +0000 (+0000) Subject: Add 'down' as a valid state for directed call pickup. This creeps up when we receive... X-Git-Tag: 1.4.23-rc3~3^2~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a7520ee4bf90a281d4ee524431023639d305997b;p=thirdparty%2Fasterisk.git 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/branches/1.4@162341 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_directed_pickup.c b/apps/app_directed_pickup.c index 1d5318f56d..68d9652444 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;