]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
eliminate shadowing of function level variables (functionally equivalent but redundan...
authorMichael Jerris <mike@jerris.com>
Wed, 14 Feb 2007 02:56:31 +0000 (02:56 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 14 Feb 2007 02:56:31 +0000 (02:56 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4250 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index 2b814654c97c1fed966bf136db63173502f5a2e0..fb8bae1607da741f95901679c6cc3dcb00d0bea3 100644 (file)
@@ -2047,15 +2047,6 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
                nua_respond(tech_pvt->nh, SIP_180_RINGING, SIPTAG_CONTACT_STR(tech_pvt->profile->url), TAG_END());
                break;
        case SWITCH_MESSAGE_INDICATE_PROGRESS: {
-               struct private_object *tech_pvt;
-           switch_channel_t *channel = NULL;
-
-           channel = switch_core_session_get_channel(session);
-           assert(channel != NULL);
-
-           tech_pvt = switch_core_session_get_private(session);
-           assert(tech_pvt != NULL);
-
                if (!switch_test_flag(tech_pvt, TFLAG_ANS)) {
                        switch_set_flag_locked(tech_pvt, TFLAG_EARLY_MEDIA);
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Asked to send early media by %s\n", msg->from);