From: Anthony Minessale Date: Thu, 3 Jul 2008 17:11:15 +0000 (+0000) Subject: tweak X-Git-Tag: v1.0.1~275 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53da93061a0800ef3287fd01c1ad002775c2ba83;p=thirdparty%2Ffreeswitch.git tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8890 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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");