Skip to content

Commit 1fef149

Browse files
authored
Merge pull request freeswitch#118 from xadhoom/fix_ignored_provisional_responses
Ignore provisional responses only if call is not answered yet freeswitch#117
2 parents b27a347 + f6ac484 commit 1fef149

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libsofia-sip-ua/nua/nua_session.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -948,8 +948,8 @@ static int nua_session_client_response(nua_client_request_t *cr,
948948
else if (!session_get_description(sip, &sdp, &len))
949949
/* No SDP */;
950950
else if (cr->cr_answer_recv) {
951-
if (cr->cr_answer_recv > status) {
952-
LOG3("status is older than previous answer, ignoring");
951+
if (status < 200 && cr->cr_answer_recv >= 200) {
952+
LOG3("call already answered, ignoring provisional response");
953953
sdp = NULL;
954954
return 0;
955955
} else {

0 commit comments

Comments
 (0)