]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6341: fix compiler warning from set but unused var
authorMichael Jerris <mike@jerris.com>
Mon, 17 Mar 2014 22:42:02 +0000 (18:42 -0400)
committerMichael Jerris <mike@jerris.com>
Mon, 17 Mar 2014 22:42:02 +0000 (18:42 -0400)
src/mod/endpoints/mod_sofia/sofia.c

index 430f0311aff879658da2490e7cef9a0a13447f81..430a7c72aca3361d3e14adc4fbdb1e7a6b5b8e7c 100644 (file)
@@ -6580,7 +6580,6 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
        case nua_callstate_early:
                if (answer_recv) {
                        uint8_t match = 0;
-                       int is_ok = 0;
                        sofia_set_flag_locked(tech_pvt, TFLAG_EARLY_MEDIA);
                        switch_channel_mark_pre_answered(channel);
                        sofia_set_flag(tech_pvt, TFLAG_SDP);
@@ -6600,14 +6599,12 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
 
                                if (sofia_media_activate_rtp(tech_pvt) != SWITCH_STATUS_SUCCESS) {
                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Early Media RTP Error!\n");
-                                       is_ok = 0;
                                        switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
                                }
                                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Processing updated SDP\n");
                        } else {
                                switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
                                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Early Media Codec Error!\n");
-                               is_ok = 0;
                        }
                }
                break;