提交 37d8ce61 authored 作者: Mike Jerris's avatar Mike Jerris

Merge pull request #239 in FS/freeswitch from ~MOY/freeswitch:park-before-media to master

* commit 'b4250c87':
  Fix switch_ivr_parse_event() to not hangup a session when there is no media yet
...@@ -530,7 +530,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se ...@@ -530,7 +530,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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论