From: Michael Jerris Date: Tue, 25 Nov 2008 17:08:27 +0000 (+0000) Subject: avoid seg. X-Git-Tag: v1.0.2~409 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50e1a8c23f74754e597ed3772770e1e87e958d21;p=thirdparty%2Ffreeswitch.git avoid seg. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10532 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_session.c b/src/switch_core_session.c index 7d91dcbdca..b0c6610554 100644 --- a/src/switch_core_session.c +++ b/src/switch_core_session.c @@ -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);