From 53da93061a0800ef3287fd01c1ad002775c2ba83 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 3 Jul 2008 17:11:15 +0000 Subject: [PATCH] tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8890 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_dptools/mod_dptools.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index ce3e9f7fd1..0afc4114a9 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -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");