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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 26 13:13:24 CST 2010


Author: mmichelson
Date: Tue Jan 26 13:13:20 2010
New Revision: 243329

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=243329
Log:
Only call ast_cc_callback if ast_request failed due to busy or congestion scenarios.


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=243329&r1=243328&r2=243329
==============================================================================
--- team/group/CCSS/apps/app_dial.c (original)
+++ team/group/CCSS/apps/app_dial.c Tue Jan 26 13:13:20 2010
@@ -1938,7 +1938,9 @@
 			if (!rest) /* we are on the last destination */
 				chan->hangupcause = cause;
 			chanlist_free(tmp);
-			ast_cc_callback(chan, tech, numsubst, ast_cc_busy_interface);
+			if (cause == AST_CAUSE_BUSY || cause == AST_CAUSE_CONGESTION) {
+				ast_cc_callback(chan, tech, numsubst, ast_cc_busy_interface);
+			}
 			continue;
 		}
 		pbx_builtin_setvar_helper(tc, "DIALEDPEERNUMBER", numsubst);




More information about the asterisk-commits mailing list