Skip to content

Commit

Permalink
dialog: get ACK cseq from src leg, rather than dst
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Jan 30, 2024
1 parent f8205d1 commit b8bbf14
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/dialog/dlg_handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -2324,11 +2324,12 @@ void dlg_onroute(struct sip_msg* req, str *route_params, void *param)
} else {

dlg_lock (d_table, d_entry);
src_leg = other_leg(dlg, dst_leg);

if (dlg->legs[dst_leg].last_gen_cseq ||
dlg->legs[dst_leg].cseq_maps) {
LM_DBG("dlg_leg_get_cseq(dlg, [%d], req)\n", dst_leg);
update_val = dlg_leg_get_cseq(dlg, dst_leg, req);
dlg->legs[src_leg].cseq_maps) {
LM_DBG("dlg_leg_get_cseq(dlg, [%d], req)\n", src_leg);
update_val = dlg_leg_get_cseq(dlg, src_leg, req);
if (update_val == 0) {
LM_DBG("dlg->legs[%d].last_gen_cseq=[%d]\n",
dst_leg, dlg->legs[dst_leg].last_gen_cseq);
Expand Down

0 comments on commit b8bbf14

Please sign in to comment.