]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4640 please test
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 21 Sep 2012 19:45:30 +0000 (14:45 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 21 Sep 2012 19:45:30 +0000 (14:45 -0500)
src/mod/endpoints/mod_sofia/mod_sofia.c

index aa3f3207d51514db23ca0494c1ac6727b98483e7..b7450e4e47b246c4b0862ef0f32496fe03e6d1d1 100644 (file)
@@ -2600,7 +2600,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
                                                                switch_core_session_pass_indication(session, SWITCH_MESSAGE_INDICATE_ANSWER);
                                                        }
                                                } else {
-                                                       if (msg->numeric_arg) {
+                                                       if (msg->numeric_arg && !(switch_channel_test_flag(channel, CF_ANSWERED) && code == 488)) {
                                                                if (code > 399) {
                                                                        switch_call_cause_t cause = sofia_glue_sip_cause_to_freeswitch(code);
                                                                        if (code == 401 || cause == 407) cause = SWITCH_CAUSE_USER_CHALLENGE;