提交 29cff9c6 authored 作者: Mathieu Rene's avatar Mathieu Rene

revert + fix typo

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12808 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 751e3976
......@@ -547,10 +547,15 @@ static uint8_t check_channel_status(originate_global_t *oglobals, originate_stat
const char *var = switch_channel_get_variable(caller_channel, "inherit_codec");
if (switch_true(var)) {
switch_codec_implementation_t impl;
char tmp[128] = "";
switch_core_session_get_read_impl(originate_status[pindex].peer_session, &impl);
switch_channel_set_variable_printf(caller_channel, "absolute_codec_string", "%s@%uk@%ui", impl.iananame, impl.samples_per_second, impl.microseconds_per_packet / 1000);
switch_snprintf(tmp, sizeof(tmp), "%s@%uh@%ui", impl.iananame, impl.samples_per_second, impl.microseconds_per_packet / 1000);
switch_channel_set_variable(caller_channel, "absolute_codec_string", tmp);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Setting codec string on %s to %s\n", switch_channel_get_name(caller_channel), tmp);
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论