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

* commit 'b4250c87a53310d934052ef2226b9a5983ff9e6f':
  Fix switch_ivr_parse_event() to not hangup a session when there is no media yet
This commit is contained in:
Mike Jerris 2015-06-01 13:03:37 -05:00
commit 37d8ce6185
1 changed files with 1 additions and 1 deletions

View File

@ -530,7 +530,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se
elp = 1;
}
if (lead_frames) {
if (lead_frames && switch_channel_media_ready(channel)) {
switch_frame_t *read_frame;
int frame_count = atoi(lead_frames);
int max_frames = frame_count * 2;