From: Anthony Minessale Date: Wed, 27 Oct 2010 16:10:12 +0000 (-0500) Subject: FS-2800 X-Git-Tag: v1.2-rc1~265^2~11^2~121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ae933a2e9fea6a1e27f6cec442b97b368260821;p=thirdparty%2Ffreeswitch.git FS-2800 --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 58099de641..833cf6c51f 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -4609,7 +4609,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status, } if (status == 183 && !r_sdp) { - if (switch_true(switch_channel_get_variable(channel, "sip_ignore_183nosdp")) || sofia_test_pflag(profile, PFLAG_IGNORE_183NOSDP)) { + if ((channel && switch_true(switch_channel_get_variable(channel, "sip_ignore_183nosdp"))) || sofia_test_pflag(profile, PFLAG_IGNORE_183NOSDP)) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s Ignoring 183 w/o sdp\n", switch_channel_get_name(channel)); goto done; }