Skip to content

Commit

Permalink
sip/transp: Allow ACK w/o Max-Forwards header (#1124)
Browse files Browse the repository at this point in the history
  • Loading branch information
juha-h authored May 21, 2024
1 parent 25b1e40 commit 24671f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sip/transp.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ static bool have_essential_fields(const struct sip_msg *msg)
pl_isset(&(msg->from.auri)) &&
pl_isset(&(msg->cseq.met)) &&
pl_isset(&(msg->callid)) &&
pl_isset(&(msg->maxfwd)) &&
(pl_isset(&(msg->maxfwd)) ||
!pl_strncmp(&msg->met, "ACK", 3)) &&
pl_isset(&(msg->via.branch)))
return true;

Expand Down

0 comments on commit 24671f1

Please sign in to comment.