diff --git a/src/mod/mod_bridgecall/mod_bridgecall.c b/src/mod/mod_bridgecall/mod_bridgecall.c index 5ce63aaff7..9ebf6a1757 100644 --- a/src/mod/mod_bridgecall/mod_bridgecall.c +++ b/src/mod/mod_bridgecall/mod_bridgecall.c @@ -76,11 +76,11 @@ static void *audio_bridge_thread(switch_thread *thread, void *obj) } if (switch_core_session_read_frame(session_a, &read_frame, -1) == SWITCH_STATUS_SUCCESS && read_frame->datalen) { if (switch_core_session_write_frame(session_b, read_frame, -1) != SWITCH_STATUS_SUCCESS) { - switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Bad Frame.... %d Bubye!\n", read_frame->datalen); + switch_console_printf(SWITCH_CHANNEL_CONSOLE, "write: Bad Frame.... %d Bubye!\n", read_frame->datalen); data->running = -1; } } else { - switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Bad Frame....Bubye!\n"); + switch_console_printf(SWITCH_CHANNEL_CONSOLE, "read: Bad Frame.... %d Bubye!\n", read_frame->datalen); data->running = -1; } } diff --git a/src/mod/mod_iaxchan/mod_iaxchan.c b/src/mod/mod_iaxchan/mod_iaxchan.c index c0254a6ddd..524d16ff56 100644 --- a/src/mod/mod_iaxchan/mod_iaxchan.c +++ b/src/mod/mod_iaxchan/mod_iaxchan.c @@ -602,7 +602,7 @@ static switch_status channel_read_frame(switch_core_session *session, switch_fra if (switch_test_flag(tech_pvt, TFLAG_IO)) { switch_clear_flag(tech_pvt, TFLAG_VOICE); if(!tech_pvt->read_frame.datalen) { - break; + continue; } *frame = &tech_pvt->read_frame; diff --git a/src/mod/mod_portaudio/mod_portaudio.c b/src/mod/mod_portaudio/mod_portaudio.c index 3c96005813..04241c30ba 100644 --- a/src/mod/mod_portaudio/mod_portaudio.c +++ b/src/mod/mod_portaudio/mod_portaudio.c @@ -416,12 +416,12 @@ static switch_status channel_write_frame(switch_core_session *session, switch_fr return SWITCH_STATUS_FALSE; } - switch_mutex_lock(globals.device_lock); + //switch_mutex_lock(globals.device_lock); if (tech_pvt->audio_out) { WriteAudioStream(tech_pvt->audio_out, (short *)frame->data, (int)(frame->datalen / sizeof(SAMPLE))); status = SWITCH_STATUS_SUCCESS; } - switch_mutex_unlock(globals.device_lock); + //switch_mutex_unlock(globals.device_lock); return status;