eat inbound vid while playing fsv files

This commit is contained in:
Anthony Minessale
2012-01-17 12:19:23 -06:00
parent 362c571647
commit c358f67fe4
4 changed files with 44 additions and 10 deletions
+4
View File
@@ -370,6 +370,8 @@ SWITCH_STANDARD_APP(play_fsv_function)
}
switch_core_session_set_read_codec(session, &codec);
switch_core_service_session_av(session, SWITCH_FALSE, SWITCH_TRUE);
while (switch_channel_ready(channel)) {
if (read(fd, &bytes, sizeof(bytes)) != sizeof(bytes)) {
@@ -440,6 +442,8 @@ SWITCH_STANDARD_APP(play_fsv_function)
}
switch_core_thread_session_end(session);
switch_channel_set_variable(channel, SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE, "OK");
end: