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:
commit
37d8ce6185
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue