mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-05 18:13:27 +00:00
skypiax: ooops, forgot to 'demote' debug output
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16868 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
d82d868ffe
commit
87f46f0e88
src/mod/endpoints/mod_skypiax
@ -701,7 +701,7 @@ read:
|
|||||||
try++;
|
try++;
|
||||||
if(try < 5)
|
if(try < 5)
|
||||||
goto read;
|
goto read;
|
||||||
NOTICA("skypiax_audio_read Silence\n", SKYPIAX_P_LOG);
|
DEBUGA_SKYPE("skypiax_audio_read Silence\n", SKYPIAX_P_LOG);
|
||||||
memset(tech_pvt->read_frame.data, 255, SAMPLES_PER_FRAME * sizeof(short));
|
memset(tech_pvt->read_frame.data, 255, SAMPLES_PER_FRAME * sizeof(short));
|
||||||
tech_pvt->read_frame.datalen = 640;
|
tech_pvt->read_frame.datalen = 640;
|
||||||
|
|
||||||
@ -822,7 +822,7 @@ static switch_status_t channel_write_frame(switch_core_session_t *session, switc
|
|||||||
|
|
||||||
switch_mutex_lock(tech_pvt->mutex_audio_cli);
|
switch_mutex_lock(tech_pvt->mutex_audio_cli);
|
||||||
if (switch_buffer_freespace(tech_pvt->write_buffer) < frame->datalen) {
|
if (switch_buffer_freespace(tech_pvt->write_buffer) < frame->datalen) {
|
||||||
WARNINGA("NO SPACE WRITE: %d\n", SKYPIAX_P_LOG, frame->datalen);
|
DEBUGA_SKYPE("NO SPACE WRITE: %d\n", SKYPIAX_P_LOG, frame->datalen);
|
||||||
//switch_buffer_toss(tech_pvt->write_buffer, frame->datalen);
|
//switch_buffer_toss(tech_pvt->write_buffer, frame->datalen);
|
||||||
switch_buffer_zero(tech_pvt->write_buffer);
|
switch_buffer_zero(tech_pvt->write_buffer);
|
||||||
}
|
}
|
||||||
|
@ -851,7 +851,7 @@ void *skypiax_do_tcp_srv_thread_func(void *obj)
|
|||||||
switch_buffer_write(tech_pvt->read_buffer, srv_in, len);
|
switch_buffer_write(tech_pvt->read_buffer, srv_in, len);
|
||||||
switch_mutex_unlock(tech_pvt->mutex_audio_srv);
|
switch_mutex_unlock(tech_pvt->mutex_audio_srv);
|
||||||
if (nospace) {
|
if (nospace) {
|
||||||
WARNINGA("NO SPACE READ: there was no space for: %d\n", SKYPIAX_P_LOG, len);
|
DEBUGA_SKYPE("NO SPACE READ: there was no space for: %d\n", SKYPIAX_P_LOG, len);
|
||||||
}
|
}
|
||||||
} else if (len == 0) {
|
} else if (len == 0) {
|
||||||
DEBUGA_SKYPE("CLOSED\n", SKYPIAX_P_LOG);
|
DEBUGA_SKYPE("CLOSED\n", SKYPIAX_P_LOG);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user