]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 3 Jul 2008 17:11:15 +0000 (17:11 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 3 Jul 2008 17:11:15 +0000 (17:11 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8890 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_dptools/mod_dptools.c

index ce3e9f7fd1a92884d2ff8e1a90f744c05e55c135..0afc4114a973857f93158fbd8d1865d3a80d8938 100644 (file)
@@ -175,9 +175,11 @@ SWITCH_STANDARD_APP(dtmf_bind_function)
                if (strchr(argv[1], 'a')) {
                        bind_flags |= SBF_DIAL_ALEG;
                }
+
                if (strchr(argv[1], 'b')) {
                        bind_flags |= SBF_DIAL_BLEG;
                }
+
                if (strchr(argv[2], 'a')) {
                        if ((bind_flags & SBF_EXEC_BLEG)) {
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot bind execute to multiple legs\n");
@@ -185,6 +187,7 @@ SWITCH_STANDARD_APP(dtmf_bind_function)
                                bind_flags |= SBF_EXEC_ALEG;
                        }
                }
+
                if (strchr(argv[2], 'b')) {
                        if ((bind_flags & SBF_EXEC_ALEG)) {
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot bind execute to multiple legs\n");
@@ -193,6 +196,14 @@ SWITCH_STANDARD_APP(dtmf_bind_function)
                        }
                }
 
+               if (strchr(argv[2], 'a')) {
+                       if ((bind_flags & SBF_EXEC_BLEG)) {
+                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot bind execute to multiple legs\n");
+                       } else {
+                               bind_flags |= SBF_EXEC_ALEG;
+                       }
+               }
+
                if (strchr(argv[2], 'o')) {
                        if ((bind_flags & SBF_EXEC_BLEG) || (bind_flags & SBF_EXEC_ALEG) || (bind_flags & SBF_EXEC_SAME)) {
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot bind execute to multiple legs\n");