Skip to content

Commit

Permalink
Reset stored remote name in dialog (dlg->initial_dest) if transport i…
Browse files Browse the repository at this point in the history
…s server.
  • Loading branch information
nanangizz committed Nov 17, 2023
1 parent c224f26 commit 346f33e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pjsip/src/pjsip/sip_dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -1878,6 +1878,11 @@ static void dlg_update_routeset(pjsip_dialog *dlg, const pjsip_rx_data *rdata)
{
pj_strdup(dlg->pool, &dlg->initial_dest,
&rdata->tp_info.transport->remote_name.host);
} else {
/* Reset the stored remote name if the transport is a server
* transport.
*/
dlg->initial_dest.slen = 0;
}

/* Ignore subsequent request from remote */
Expand Down

0 comments on commit 346f33e

Please sign in to comment.