]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix Hold.
authorBrian West <brian@freeswitch.org>
Wed, 28 Oct 2009 22:52:44 +0000 (22:52 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 28 Oct 2009 22:52:44 +0000 (22:52 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15263 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 0f4e4a591562d3067d998e7b3c714e05e95b84d2..b468071c49e3ccb03119703d2fc9278294ca5797 100644 (file)
@@ -3578,7 +3578,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
                        goto done;
                }
 
-               if ((switch_channel_test_flag(channel, CF_EARLY_MEDIA) || switch_channel_test_flag(channel, CF_ANSWERED)) && status < 200) {
+               if ((switch_channel_test_flag(channel, CF_EARLY_MEDIA) || switch_channel_test_flag(channel, CF_ANSWERED)) && status > 100 && status < 200) {
                        /* Must you send 180 after 183 w/sdp ? sheesh */
                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Channel %s skipping state [%s][%d]\n",
                                                          switch_channel_get_name(channel), nua_callstate_name(ss_state), status);