[asterisk-commits] res pjsip nat.c: Remove unnecessary CMP STOP. (asterisk[14])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Aug 7 08:57:47 CDT 2017
Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/6137 )
Change subject: res_pjsip_nat.c: Remove unnecessary CMP_STOP.
......................................................................
res_pjsip_nat.c: Remove unnecessary CMP_STOP.
Change-Id: I6279b0d723bc3b75b8d65e81e02da9ea9bc0c3da
---
M res/res_pjsip_nat.c
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Sean Bright: Looks good to me, but someone else must approve
George Joseph: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved
Jenkins2: Approved for Submit
diff --git a/res/res_pjsip_nat.c b/res/res_pjsip_nat.c
index 7dfd5ec..45b0d7c 100644
--- a/res/res_pjsip_nat.c
+++ b/res/res_pjsip_nat.c
@@ -35,6 +35,7 @@
static void rewrite_uri(pjsip_rx_data *rdata, pjsip_sip_uri *uri)
{
pj_cstr(&uri->host, rdata->pkt_info.src_name);
+ uri->port = rdata->pkt_info.src_port;
if (!strcasecmp("WSS", rdata->tp_info.transport->type_name)) {
/* WSS is special, we don't want to overwrite the URI at all as it needs to be ws */
} else if (strcasecmp("udp", rdata->tp_info.transport->type_name)) {
@@ -42,7 +43,6 @@
} else {
uri->transport_param.slen = 0;
}
- uri->port = rdata->pkt_info.src_port;
}
static int rewrite_route_set(pjsip_rx_data *rdata, pjsip_dialog *dlg)
@@ -165,7 +165,7 @@
((details->type == transport_state->type) && (transport_state->factory) &&
!pj_strcmp(&transport_state->factory->addr_name.host, &details->local_address) &&
transport_state->factory->addr_name.port == details->local_port))) {
- return CMP_MATCH | CMP_STOP;
+ return CMP_MATCH;
}
return 0;
--
To view, visit https://gerrit.asterisk.org/6137
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-MessageType: merged
Gerrit-Change-Id: I6279b0d723bc3b75b8d65e81e02da9ea9bc0c3da
Gerrit-Change-Number: 6137
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-commits/attachments/20170807/f48fe87e/attachment-0001.html>
More information about the asterisk-commits
mailing list