]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
oh yeah, it can be true too
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 5 Nov 2009 18:39:43 +0000 (18:39 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 5 Nov 2009 18:39:43 +0000 (18:39 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15376 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_dptools/mod_dptools.c

index d3597ffbae74fa9b2d578acd3ba55b2f8b122bd1..862bc5bcd4a3eefd951f3a66ab841ab29ec30d47 100644 (file)
@@ -2328,16 +2328,20 @@ SWITCH_STANDARD_APP(audio_bridge_function)
                                }
 
                                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;
+                                                       }
                                                }
                                        }
                                }