Skip to content

Commit

Permalink
Merge pull request freeswitch#118 from xadhoom/fix_ignored_provisiona…
Browse files Browse the repository at this point in the history
…l_responses

Ignore provisional responses only if call is not answered yet freeswitch#117
  • Loading branch information
andywolk authored Apr 1, 2022
2 parents b27a347 + f6ac484 commit 1fef149
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 1fef149

Please sign in to comment.