Skip to content

Commit

Permalink
dialog: only publish cseq mappings for INVITEs
Browse files Browse the repository at this point in the history
(cherry picked from commit 8a6e78d)
  • Loading branch information
razvancrainea committed Oct 17, 2023
1 parent 6945abf commit ceb6f71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/dialog/dlg_handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,8 @@ static void dlg_caller_reinv_onreq_out(struct cell* t, int type, struct tmcb_par
/* we use the initial request, which already has the contact parsed/fixed */
dlg_update_contact(dlg, ps->req, DLG_CALLER_LEG);
dlg_update_out_sdp(dlg, DLG_CALLER_LEG, callee_idx(dlg), msg, 1);
dlg_leg_push_cseq_map(dlg, t, callee_idx(dlg), msg);
if (is_invite(t))
dlg_leg_push_cseq_map(dlg, t, DLG_CALLER_LEG, msg);
free_sip_msg(msg);
pkg_free(msg);
}
Expand Down Expand Up @@ -1380,7 +1381,8 @@ static void dlg_callee_reinv_onreq_out(struct cell* t, int type, struct tmcb_par

dlg_update_contact(dlg, ps->req, callee_idx(dlg));
dlg_update_out_sdp(dlg, callee_idx(dlg), DLG_CALLER_LEG, msg, 1);
dlg_leg_push_cseq_map(dlg, t, callee_idx(dlg), msg);
if (is_invite(t))
dlg_leg_push_cseq_map(dlg, t, callee_idx(dlg), msg);
free_sip_msg(msg);
pkg_free(msg);
}
Expand Down

0 comments on commit ceb6f71

Please sign in to comment.