mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8890 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
286362ca64
commit
53da93061a
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user