提交 5aaef9ef authored 作者: Anthony Minessale's avatar Anthony Minessale

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@331 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 97f60804
......@@ -323,7 +323,7 @@ static switch_status iax_set_codec(struct private_object *tech_pvt, struct iax_s
srate = 16000;
}
if (mixed & IAX_RATE_22KHZ) {
srate = 22000;
srate = 22050;
}
if (mixed & IAX_RATE_32KHZ) {
srate = 32000;
......
......@@ -731,6 +731,7 @@ static switch_status engage_device(struct private_object *tech_pvt)
return SWITCH_STATUS_FALSE;
}
}
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Loaded codec L16 %dhz %dms on %s\n", sample_rate, codec_ms, switch_channel_get_name(channel));
tech_pvt->read_frame.rate = sample_rate;
tech_pvt->read_frame.codec = &tech_pvt->read_codec;
switch_core_session_set_read_codec(tech_pvt->session, &tech_pvt->read_codec);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论