提交 50e1a8c2 authored 作者: Michael Jerris's avatar Michael Jerris

avoid seg.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10532 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 4ace4097
......@@ -346,7 +346,7 @@ SWITCH_DECLARE(switch_call_cause_t) switch_core_session_outgoing_channel(switch_
profile = switch_channel_get_caller_profile(channel);
if (read_codec) {
if (read_codec && read_codec->implementation) {
char tmp[80];
switch_codec2str(read_codec, tmp, sizeof(tmp));
switch_channel_set_variable(peer_channel, SWITCH_ORIGINATOR_CODEC_VARIABLE, tmp);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论