提交 de7fa863 authored 作者: Giovanni Maruzzelli's avatar Giovanni Maruzzelli

skypiax: write_silence_when_idle in config, general configuration code reshuffle

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16891 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 d8214d52
......@@ -286,6 +286,7 @@ struct private_object {
switch_buffer_t *write_buffer;
switch_buffer_t *read_buffer;
int silent_mode;
int write_silence_when_idle;
};
......
......@@ -996,11 +996,13 @@ void *skypiax_do_tcp_cli_thread_func(void *obj)
switch_mutex_unlock(tech_pvt->mutex_audio_cli);
if (!bytes_to_write) {
continue;
memset(cli_out, 255, sizeof(cli_out));
bytes_to_write = 640;
//NOTICA("WRITE Silence!\n", SKYPIAX_P_LOG);
if(tech_pvt->write_silence_when_idle){
memset(cli_out, 255, sizeof(cli_out));
bytes_to_write = 640;
DEBUGA_SKYPE("WRITE Silence!\n", SKYPIAX_P_LOG);
}else{
continue;
}
}
/* send the 16khz frame to the Skype client waiting for incoming audio to be sent to the remote party */
if (tech_pvt->skype_callflow != CALLFLOW_STATUS_REMOTEHOLD) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论