提交 13dab11c authored 作者: Anthony Minessale's avatar Anthony Minessale 提交者: Ken Rice

add ignore_early_media=consume for hmmhesays

上级 4825e2ed
......@@ -2153,6 +2153,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
if (switch_true(var_val)) {
oglobals.early_ok = 0;
oglobals.ignore_early_media = 1;
} else if (!strcmp(var_val, "consume")) {
oglobals.early_ok = 0;
oglobals.ignore_early_media = 4;
} else if (!strcmp(var_val, "ring_ready")) {
oglobals.early_ok = 0;
oglobals.ignore_early_media = 2;
......@@ -2697,7 +2700,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
switch_channel_add_state_handler(originate_status[i].peer_channel, table);
}
if (oglobals.monitor_early_media_ring || oglobals.monitor_early_media_fail) {
if (oglobals.monitor_early_media_ring || oglobals.monitor_early_media_fail || oglobals.ignore_early_media == 4) {
switch_channel_set_flag(originate_status[i].peer_channel, CF_CONSUME_ON_ORIGINATE);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论