mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
eat inbound vid while playing fsv files
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user