]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-2800
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 27 Oct 2010 16:10:12 +0000 (11:10 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 27 Oct 2010 16:10:21 +0000 (11:10 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index 58099de6412a8c09bc05b529803494ad013c0ac4..833cf6c51f058190d0c55927454f440865f72c53 100644 (file)
@@ -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;
                }