[Asterisk-code-review] Better support for RFC3581 (asterisk[master])

Oleg Rabinovich asteriskteam at digium.com
Sun May 10 07:09:52 CDT 2015


Oleg Rabinovich has uploaded a new change for review.

  https://gerrit.asterisk.org/427

Change subject: Better support for RFC3581
......................................................................

Better support for RFC3581

Change-Id: Iab4469db0dc5f9535f2a90ec5bb5ba2f1cf527a6
---
M channels/chan_sip.c
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/27/427/1

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 528e208..abf7ece 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -17147,7 +17147,8 @@
 
 			set_peer_nat(p, peer);
 
-			ast_copy_flags(&p->flags[0], &peer->flags[0], SIP_NAT_FORCE_RPORT);
+ 			ast_copy_flags(&peer->flags[0], &p->flags[0], SIP_NAT_FORCE_RPORT);
+ 			ast_copy_flags(&peer->flags[0], &p->flags[0], SIP_NAT_RPORT_PRESENT);
 
 			if (!(res = check_auth(p, req, peer->name, peer->secret, peer->md5secret, SIP_REGISTER, uri2, XMIT_UNRELIABLE))) {
 				if (sip_cancel_destroy(p))

-- 
To view, visit https://gerrit.asterisk.org/427
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iab4469db0dc5f9535f2a90ec5bb5ba2f1cf527a6
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Oleg Rabinovich <olegrtecno at gmail.com>



More information about the asterisk-code-review mailing list