Skip to content

Commit f6ac484

Browse files
author
Matteo Brancaleoni
committed
Ignore provisional responses only if call is not answered yet, closes #117
1 parent b27a347 commit f6ac484

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libsofia-sip-ua/nua/nua_session.c

Lines changed: 2 additions & 2 deletions
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)