mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
add i flag to bind_meta_app to do inline execute of the app (not wise to use unless app returns instantly)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14969 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -198,7 +198,7 @@ SWITCH_STANDARD_APP(dtmf_unbind_function)
|
||||
|
||||
}
|
||||
|
||||
#define BIND_SYNTAX "<key> [a|b|ab] [a|b|o|s|1] <app>"
|
||||
#define BIND_SYNTAX "<key> [a|b|ab] [a|b|o|s|i|1] <app>"
|
||||
SWITCH_STANDARD_APP(dtmf_bind_function)
|
||||
{
|
||||
char *argv[4] = { 0 };
|
||||
@@ -242,6 +242,10 @@ SWITCH_STANDARD_APP(dtmf_bind_function)
|
||||
}
|
||||
}
|
||||
|
||||
if (strchr(argv[2], 'i')) {
|
||||
bind_flags |= SBF_EXEC_INLINE;
|
||||
}
|
||||
|
||||
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_SESSION_LOG(session), SWITCH_LOG_ERROR, "Cannot bind execute to multiple legs\n");
|
||||
|
||||
Reference in New Issue
Block a user