[asterisk-commits] oej: branch oej/cancel_elsewhere_1.4 r168637 - /team/oej/cancel_elsewhere_1.4...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 15 07:03:49 CST 2009


Author: oej
Date: Thu Jan 15 07:03:49 2009
New Revision: 168637

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=168637
Log:
Add support for cancelling with reason-header to not update "missed calls" counter
on certain phones in the call queue. Previously, only dial() was supported.

EDV-102

Modified:
    team/oej/cancel_elsewhere_1.4/apps/app_queue.c

Modified: team/oej/cancel_elsewhere_1.4/apps/app_queue.c
URL: http://svn.digium.com/svn-view/asterisk/team/oej/cancel_elsewhere_1.4/apps/app_queue.c?view=diff&rev=168637&r1=168636&r2=168637
==============================================================================
--- team/oej/cancel_elsewhere_1.4/apps/app_queue.c (original)
+++ team/oej/cancel_elsewhere_1.4/apps/app_queue.c Thu Jan 15 07:03:49 2009
@@ -1702,9 +1702,13 @@
 	struct callattempt *oo;
 
 	while (outgoing) {
+		/* If someone else answered the call we should indicate this in the CANCEL */
 		/* Hangup any existing lines we have open */
-		if (outgoing->chan && (outgoing->chan != exception))
+		if (outgoing->chan && (outgoing->chan != exception)) {
+			if (exception)
+				ast_set_flag(outgoing->chan, AST_FLAG_ANSWERED_ELSEWHERE);
 			ast_hangup(outgoing->chan);
+		}
 		oo = outgoing;
 		outgoing = outgoing->q_next;
 		if (oo->member)




More information about the asterisk-commits mailing list