]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3576 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 7 Mar 2013 14:44:32 +0000 (08:44 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 7 Mar 2013 14:44:32 +0000 (08:44 -0600)
src/mod/endpoints/mod_sofia/mod_sofia.c

index 241cf88c2d434aae8d81ef33d21ba40174a8d459..099c04295bf0a4e9d30b1033ac0c185cf47ee5f2 100644 (file)
@@ -722,6 +722,9 @@ static switch_status_t sofia_answer_channel(switch_core_session_t *session)
                        TAG_IF(sofia_test_pflag(tech_pvt->profile, PFLAG_DISABLE_100REL), NUTAG_INCLUDE_EXTRA_SDP(1)),
                        TAG_END());
                sofia_clear_flag(tech_pvt, TFLAG_3PCC_INVITE); // all done
+               sofia_set_flag_locked(tech_pvt, TFLAG_ANS);
+               sofia_set_flag_locked(tech_pvt, TFLAG_SDP);
+               switch_channel_mark_answered(channel);     // ... and remember to actually answer the call!
                return SWITCH_STATUS_SUCCESS;
        }