[svn-commits] file: branch 1.4 r162341 - /branches/1.4/apps/app_directed_pickup.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Dec 9 15:14:29 CST 2008


Author: file
Date: Tue Dec  9 15:14:29 2008
New Revision: 162341

URL: http://svn.digium.com/view/asterisk?view=rev&rev=162341
Log:
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

Modified:
    branches/1.4/apps/app_directed_pickup.c

Modified: branches/1.4/apps/app_directed_pickup.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_directed_pickup.c?view=diff&rev=162341&r1=162340&r2=162341
==============================================================================
--- branches/1.4/apps/app_directed_pickup.c (original)
+++ branches/1.4/apps/app_directed_pickup.c Tue Dec  9 15:14:29 2008
@@ -83,7 +83,7 @@
 /* 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;




More information about the svn-commits mailing list