[asterisk-commits] jpeeler: trunk r240179 - /trunk/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 14 12:03:32 CST 2010


Author: jpeeler
Date: Thu Jan 14 12:03:31 2010
New Revision: 240179

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=240179
Log:
Fix broken call pickup

The problem was the OUTGOING flag was not getting set properly on the channel,
resulting in pickup failing as ast_read thought the call was inbound. Refer to
170393 for a more verbose description as this is the same exact change.

Modified:
    trunk/main/channel.c

Modified: trunk/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/channel.c?view=diff&rev=240179&r1=240178&r2=240179
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Thu Jan 14 12:03:31 2010
@@ -5357,7 +5357,7 @@
 	/* XXX What about blocking, softhangup, blocker, and lock and blockproc? XXX */
 	/* Application and data remain the same */
 	/* Clone exception  becomes real one, as with fdno */
-	ast_copy_flags(original, clonechan, AST_FLAG_EXCEPTION | AST_FLAG_OUTGOING);
+	ast_set_flag(original, ast_test_flag(clonechan, AST_FLAG_EXCEPTION | AST_FLAG_OUTGOING));
 	original->fdno = clonechan->fdno;
 	/* Schedule context remains the same */
 	/* Stream stuff stays the same */




More information about the asterisk-commits mailing list