[asterisk-commits] mjordan: branch mjordan/AST_17288 r334567 - /team/mjordan/AST_17288/1.8/addons/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 6 13:24:37 CDT 2011


Author: mjordan
Date: Tue Sep  6 13:24:34 2011
New Revision: 334567

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=334567
Log:
Applied incomplete frame logic to add_on

Modified:
    team/mjordan/AST_17288/1.8/addons/chan_ooh323.c

Modified: team/mjordan/AST_17288/1.8/addons/chan_ooh323.c
URL: http://svnview.digium.com/svn/asterisk/team/mjordan/AST_17288/1.8/addons/chan_ooh323.c?view=diff&rev=334567&r1=334566&r2=334567
==============================================================================
--- team/mjordan/AST_17288/1.8/addons/chan_ooh323.c (original)
+++ team/mjordan/AST_17288/1.8/addons/chan_ooh323.c Tue Sep  6 13:24:34 2011
@@ -1228,19 +1228,27 @@
 	switch (condition) {
 	case AST_CONTROL_CONGESTION:
 		if (!ast_test_flag(p, H323_ALREADYGONE)) {
-            		ooHangCall(callToken, OO_REASON_LOCAL_CONGESTED, 
-						AST_CAUSE_SWITCH_CONGESTION);
+			ooHangCall(callToken, OO_REASON_LOCAL_CONGESTED, AST_CAUSE_SWITCH_CONGESTION);
 			ast_set_flag(p, H323_ALREADYGONE);
 		}
 		break;
 	case AST_CONTROL_BUSY:
 		if (!ast_test_flag(p, H323_ALREADYGONE)) {
-            		ooHangCall(callToken, OO_REASON_LOCAL_BUSY, AST_CAUSE_USER_BUSY);
+			ooHangCall(callToken, OO_REASON_LOCAL_BUSY, AST_CAUSE_USER_BUSY);
+			ast_set_flag(p, H323_ALREADYGONE);
+		}
+		break;
+	case AST_CONTROL_INCOMPLETE:
+		/* While h323 does support overlapped dialing, this channel driver does not
+		 * at this time.  Treat a response of Incomplete as if it were congestion.
+		 */
+		if (!ast_test_flag(p, H323_ALREADYGONE)) {
+			ooHangCall(callToken, OO_REASON_LOCAL_CONGESTED, AST_CAUSE_SWITCH_CONGESTION);
 			ast_set_flag(p, H323_ALREADYGONE);
 		}
 		break;
 	case AST_CONTROL_HOLD:
-		ast_moh_start(ast, data, NULL);		
+		ast_moh_start(ast, data, NULL);
 		break;
 	case AST_CONTROL_UNHOLD:
 		ast_moh_stop(ast);




More information about the asterisk-commits mailing list