Skip to content
Snippets Groups Projects
Commit 0df23734 authored by zuul's avatar zuul Committed by Gerrit Code Review
Browse files

Merge "res_pjsip_multihomed: Change Contact port to listening port."

parents ea8105cf 9d894ee0
Branches
Tags
No related merge requests found
......@@ -109,8 +109,11 @@ static pj_status_t multihomed_on_tx_message(pjsip_tx_data *tdata)
return PJ_SUCCESS;
}
/* The port in the message should always be that of the original transport */
prm.ret_port = tdata->tp_info.transport->local_name.port;
/* For UDP we can have multiple transports so the port needs to be maintained */
if (tdata->tp_info.transport->key.type == PJSIP_TRANSPORT_UDP ||
tdata->tp_info.transport->key.type == PJSIP_TRANSPORT_UDP6) {
prm.ret_port = tdata->tp_info.transport->local_name.port;
}
/* If the IP source differs from the existing transport see if we need to update it */
if (pj_strcmp(&prm.ret_addr, &tdata->tp_info.transport->local_name.host)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment