Skip to content

Commit

Permalink
Ignore provisional responses only if call is not answered yet, closes f…
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Brancaleoni committed Apr 1, 2022
1 parent b27a347 commit f6ac484
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libsofia-sip-ua/nua/nua_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -948,8 +948,8 @@ static int nua_session_client_response(nua_client_request_t *cr,
else if (!session_get_description(sip, &sdp, &len))
/* No SDP */;
else if (cr->cr_answer_recv) {
if (cr->cr_answer_recv > status) {
LOG3("status is older than previous answer, ignoring");
if (status < 200 && cr->cr_answer_recv >= 200) {
LOG3("call already answered, ignoring provisional response");
sdp = NULL;
return 0;
} else {
Expand Down

0 comments on commit f6ac484

Please sign in to comment.