mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 01:06:00 +00:00
Compare commits
2 Commits
e5e556328d
...
7489eb204f
Author | SHA1 | Date | |
---|---|---|---|
|
7489eb204f | ||
|
07ebb73882 |
@ -515,7 +515,7 @@ static void *SWITCH_THREAD_FUNC switch_core_service_thread(switch_thread_t *thre
|
|||||||
channel = switch_core_session_get_channel(session);
|
channel = switch_core_session_get_channel(session);
|
||||||
|
|
||||||
switch_channel_set_flag(channel, CF_SERVICE);
|
switch_channel_set_flag(channel, CF_SERVICE);
|
||||||
while (switch_channel_test_flag(channel, CF_SERVICE)) {
|
while (switch_channel_test_flag(channel, CF_SERVICE) && switch_channel_up_nosig(channel)) {
|
||||||
|
|
||||||
if (switch_channel_test_flag(channel, CF_SERVICE_AUDIO)) {
|
if (switch_channel_test_flag(channel, CF_SERVICE_AUDIO)) {
|
||||||
switch (switch_core_session_read_frame(session, &read_frame, SWITCH_IO_FLAG_NONE, 0)) {
|
switch (switch_core_session_read_frame(session, &read_frame, SWITCH_IO_FLAG_NONE, 0)) {
|
||||||
|
@ -2057,7 +2057,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
|
|||||||
switch_core_codec_destroy(&codec);
|
switch_core_codec_destroy(&codec);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (timer.samplecount) {
|
if (timer_name) {
|
||||||
/* End the audio absorbing thread */
|
/* End the audio absorbing thread */
|
||||||
switch_core_thread_session_end(session);
|
switch_core_thread_session_end(session);
|
||||||
switch_core_timer_destroy(&timer);
|
switch_core_timer_destroy(&timer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user