]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
probably fix SFSIP-57 I'm feeling lucky -google
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 26 May 2008 02:22:37 +0000 (02:22 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 26 May 2008 02:22:37 +0000 (02:22 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8654 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index fb7d7f7fd8947379d67e699c647924fa3279af35..0d9aac28383c09a3942bd4f7b8b42c689c96dc73 100644 (file)
@@ -2086,9 +2086,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
                                                        }
                                                        if (switch_channel_get_state(channel) == CS_HIBERNATE) {
                                                                switch_set_flag_locked(tech_pvt, TFLAG_READY);
-                                                               if (switch_channel_get_state(channel) == CS_NEW) {
-                                                                       switch_channel_set_state(channel, CS_INIT);
-                                                               }
+                                                               switch_channel_set_state(channel, CS_INIT);
                                                                switch_set_flag(tech_pvt, TFLAG_SDP);
                                                        }
                                                        goto done;