]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 1 Feb 2008 22:56:08 +0000 (22:56 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 1 Feb 2008 22:56:08 +0000 (22:56 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7480 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index bf150906d9a861ad018fe93f0208a26fce853ffe..451c7eb853679b5c372f2ccef01c4ca0ebfdb668 100644 (file)
@@ -1521,7 +1521,13 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
                                        }
                                        switch_set_flag(tech_pvt, TFLAG_SDP);
                                        goto done;
-                               } else {
+                               } else if (switch_test_flag(tech_pvt, TFLAG_LATE_NEGOTIATION)) {
+                    switch_channel_set_variable(channel, SWITCH_ENDPOINT_DISPOSITION_VARIABLE, "DELAYED NEGOTIATION");
+                    switch_set_flag_locked(tech_pvt, TFLAG_READY);
+                    if (switch_channel_get_state(channel) == CS_NEW) {
+                        switch_channel_set_state(channel, CS_INIT);
+                    }
+                } else {
                                        sdp_parser_t *parser;
                                        sdp_session_t *sdp;
                                        uint8_t match = 0;