Reset stored remote name in dialog (dlg->initial_dest) if transport is server. (#3783)

This commit is contained in:
Nanang Izzuddin 2023-11-24 14:46:31 +07:00 committed by GitHub
parent f9ed97b87d
commit 04f81212a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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 */