提交 16abf085 authored 作者: Anthony Minessale's avatar Anthony Minessale

update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@327 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 17ec402b
......@@ -309,12 +309,13 @@ static switch_status iax_set_codec(struct private_object *tech_pvt, struct iax_s
channel = switch_core_session_get_channel(tech_pvt->session);
assert(channel != NULL);
if (*samprate) {
unsigned short samples = iax_build_codec_rates();
unsigned short mixed = (*samprate & samples);
srate = 8000;
if (mixed & IAX_RATE_16KHZ) {
srate = 16000;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论