Revision
15376
Author
anthm
Date
2009-11-05 12:39:43 -0600 (Thu, 05 Nov 2009)

Log Message

oh yeah, it can be true too

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c (15375 => 15376)


--- freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	2009-11-05 18:12:01 UTC (rev 15375)
+++ freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	2009-11-05 18:39:43 UTC (rev 15376)
@@ -2328,16 +2328,20 @@
 				}
 
 				if (continue_on_fail) {
-					char *lbuf = switch_core_session_strdup(session, continue_on_fail);
-					char *argv[256] = { 0 };
-					int argc = switch_separate_string(lbuf, ',', argv, (sizeof(argv) / sizeof(argv[0])));
-					int i;
-					
-					for (i = 0; i < argc; i++) {
-						if (!strcasecmp(argv[i], cause_str) || !strcasecmp(argv[i], cause_num)) {
-							switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, 
-											  "Continue on fail [%s]:  Cause: %s\n", continue_on_fail, cause_str);
-							return;
+					if (switch_true(continue_on_fail)) {
+						return;
+					} else {
+						char *lbuf = switch_core_session_strdup(session, continue_on_fail);
+						char *argv[256] = { 0 };
+						int argc = switch_separate_string(lbuf, ',', argv, (sizeof(argv) / sizeof(argv[0])));
+						int i;
+						
+						for (i = 0; i < argc; i++) {
+							if (!strcasecmp(argv[i], cause_str) || !strcasecmp(argv[i], cause_num)) {
+								switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, 
+												  "Continue on fail [%s]:  Cause: %s\n", continue_on_fail, cause_str);
+								return;
+							}
 						}
 					}
 				}