[asterisk-commits] mmichelson: branch group/CCSS r220669 - /team/group/CCSS/apps/app_dial.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 28 09:52:56 CDT 2009


Author: mmichelson
Date: Mon Sep 28 09:52:52 2009
New Revision: 220669

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=220669
Log:
Set the ignore_cc flag if the agent policy for a caller is set to "never"


Modified:
    team/group/CCSS/apps/app_dial.c

Modified: team/group/CCSS/apps/app_dial.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/apps/app_dial.c?view=diff&rev=220669&r1=220668&r2=220669
==============================================================================
--- team/group/CCSS/apps/app_dial.c (original)
+++ team/group/CCSS/apps/app_dial.c Mon Sep 28 09:52:52 2009
@@ -1957,6 +1957,15 @@
 	struct dial_cc_interfaces *interfaces;
 	struct ast_cc_tree_item *tree_item;
 	ast_channel_lock(chan);
+
+	if (ast_get_cc_agent_policy(ast_channel_get_cc_config_params(chan)) == AST_CC_AGENT_NEVER) {
+		/* We can't offer CC to this caller anyway, so don't bother with CC on this call
+		 */
+		*ignore_cc = 1;
+		ast_channel_unlock(chan);
+		return 0;
+	}
+
 	if (!(cc_interfaces_datastore = ast_channel_datastore_find(chan, &dial_cc_interfaces_info, NULL))) {
 		/* Situation 1 has occurred */
 		ast_channel_unlock(chan);




More information about the asterisk-commits mailing list