]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6222 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 13 Feb 2014 15:45:57 +0000 (20:45 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 13 Feb 2014 15:46:05 +0000 (20:46 +0500)
src/mod/endpoints/mod_sofia/sofia.c

index f10d4ea9db22438f948890cac47b68251ff06a97..7cb025c8298435f13730a87e709520d1d6510ace 100644 (file)
@@ -6092,7 +6092,10 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
                                        if (sofia_media_activate_rtp(tech_pvt) != SWITCH_STATUS_SUCCESS) {
                                                nua_respond(nh, SIP_488_NOT_ACCEPTABLE, TAG_END());
                                                switch_channel_hangup(channel, SWITCH_CAUSE_INCOMPATIBLE_DESTINATION);
+                                       } else{
+                                               switch_channel_mark_pre_answered(channel);
                                        }
+
                                } else {
                                        if (sofia_media_tech_media(tech_pvt, (char *) r_sdp) != SWITCH_STATUS_SUCCESS) {
                                                switch_channel_set_variable(channel, SWITCH_ENDPOINT_DISPOSITION_VARIABLE, "CODEC NEGOTIATION ERROR");