提交 b4250c87 authored 作者: Moises Silva's avatar Moises Silva

Fix switch_ivr_parse_event() to not hangup a session when there is no media yet

If the lead-frames header is set but there is no media ready yet do not
attempt to read media from the channel and continue with command execution

FS-7455 #resolve
上级 777c1154
...@@ -521,7 +521,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se ...@@ -521,7 +521,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se
elp = 1; elp = 1;
} }
if (lead_frames) { if (lead_frames && switch_channel_media_ready(channel)) {
switch_frame_t *read_frame; switch_frame_t *read_frame;
int frame_count = atoi(lead_frames); int frame_count = atoi(lead_frames);
int max_frames = frame_count * 2; int max_frames = frame_count * 2;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论