标签:
1.监听函数:eavesdrop
lua脚本中调用监听:
local cmd = "originate loopback/3333 &eavesdrop("..uuid..")"
api:executeString(cmd)
2、监听变量设置
参考C代码:mod_dptools.c 875行
const char *require_group = switch_channel_get_variable(channel, "eavesdrop_require_group");
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_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");
从代码中可以看出设置eavesdrop_bridge_al