Skip to content

Commit

Permalink
Fix ACK CSEQ generation for in-dialog RE-INVITEs where in-dialogs pin…
Browse files Browse the repository at this point in the history
…gs have been sent out

Closes #2678
  • Loading branch information
vladpaiu committed Nov 18, 2021
1 parent 614661c commit aaa3831
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/dialog/dlg_handlers.c
Expand Up @@ -2089,6 +2089,12 @@ void dlg_onroute(struct sip_msg* req, str *route_params, void *param)
/* save INVITE cseq, in case any requests follow after this
( pings or other in-dialog requests until the ACK comes in */
dlg->legs[dst_leg].last_inv_gen_cseq = dlg->legs[dst_leg].last_gen_cseq;

/* Received RE-INVITE where we mangle the CSEQ due to existing pings sent
*
* Set the FL_USE_UAC_CSEQ flag so that the TM build_local knows to get the
* CSEQ from the INVITE when generating the ACK */
req->msg_flags |= FL_USE_UAC_CSEQ;
}

dlg_unlock( d_table, d_entry );
Expand Down

0 comments on commit aaa3831

Please sign in to comment.