mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
FS-7846: [mod_dptools] add eavesdrop_whisper_aleg=true and eavesdrop_whisper_bleg=true channel variables to allow you to start eavesdrop in whisper mode of specific call leg
This commit is contained in:
parent
7b47e29919
commit
e0ef31930d
@ -852,11 +852,20 @@ SWITCH_STANDARD_APP(eavesdrop_function)
|
|||||||
const char *enable_dtmf = switch_channel_get_variable(channel, "eavesdrop_enable_dtmf");
|
const char *enable_dtmf = switch_channel_get_variable(channel, "eavesdrop_enable_dtmf");
|
||||||
const char *bridge_aleg = switch_channel_get_variable(channel, "eavesdrop_bridge_aleg");
|
const char *bridge_aleg = switch_channel_get_variable(channel, "eavesdrop_bridge_aleg");
|
||||||
const char *bridge_bleg = switch_channel_get_variable(channel, "eavesdrop_bridge_bleg");
|
const char *bridge_bleg = switch_channel_get_variable(channel, "eavesdrop_bridge_bleg");
|
||||||
|
const char *whisper_aleg = switch_channel_get_variable(channel, "eavesdrop_whisper_aleg");
|
||||||
|
const char *whisper_bleg = switch_channel_get_variable(channel, "eavesdrop_whisper_bleg");
|
||||||
|
|
||||||
if (enable_dtmf) {
|
if (enable_dtmf) {
|
||||||
flags = switch_true(enable_dtmf) ? ED_DTMF : ED_NONE;
|
flags = switch_true(enable_dtmf) ? ED_DTMF : ED_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (switch_true(whisper_aleg)) {
|
||||||
|
flags |= ED_MUX_READ;
|
||||||
|
}
|
||||||
|
if (switch_true(whisper_bleg)) {
|
||||||
|
flags |= ED_MUX_WRITE;
|
||||||
|
}
|
||||||
|
|
||||||
/* Defaults to both, if neither is set */
|
/* Defaults to both, if neither is set */
|
||||||
if (switch_true(bridge_aleg)) {
|
if (switch_true(bridge_aleg)) {
|
||||||
flags |= ED_BRIDGE_READ;
|
flags |= ED_BRIDGE_READ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user