Skip to content

Commit

Permalink
dialog: do not remove SDP if no SDP is provided
Browse files Browse the repository at this point in the history
(cherry picked from commit d92f870)
  • Loading branch information
razvancrainea committed Jan 23, 2023
1 parent 5137709 commit de15084
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 @@ -784,8 +784,10 @@ static void dlg_update_out_sdp(struct dlg_cell *dlg, int in_leg, int out_leg, st

if (get_body(msg,&sdp) < 0) {
LM_ERR("Failed to extract SDP \n");
sdp.s = NULL;
sdp.len = 0;
return;
} else if (sdp.len == 0) {
LM_DBG("no outbound SDP to update\n");
return;
}

dlg_lock_dlg(dlg);
Expand Down

0 comments on commit de15084

Please sign in to comment.