[Asterisk-code-review] chan sip: tcp/tls honour insecure=port (asterisk[master])

Jaco Kroon asteriskteam at digium.com
Mon Aug 13 08:29:29 CDT 2018


Jaco Kroon has uploaded this change for review. ( https://gerrit.asterisk.org/9858


Change subject: chan_sip: tcp/tls honour insecure=port
......................................................................

chan_sip: tcp/tls honour insecure=port

Prior to b2c4e8660a9c89d07041271371151779b7ec75f6 insecure=port was
the defacto standard.  That commit also prevented insecure=port from
being applied for sip/tcp or sip/tls.  This just allows insecure=port on
all transport types.

ASTERISK-27881 #close

Change-Id: I61a9804e4feba9c7224c481f7a10bf7eb7c7f2a2
---
M channels/chan_sip.c
1 file changed, 1 insertion(+), 3 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/58/9858/1

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index e23915b..867c6a6 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -34429,9 +34429,7 @@
 	}
 
 	/* We matched the IP, check to see if we need to match by port as well. */
-	if (((peer->transports & peer2->transports) &
-		(AST_TRANSPORT_UDP | AST_TRANSPORT_WS | AST_TRANSPORT_WSS)) &&
-		ast_test_flag(&peer2->flags[0], SIP_INSECURE_PORT)) {
+	if (ast_test_flag(&peer2->flags[0], SIP_INSECURE_PORT)) {
 		/* We are allowing match without port for peers configured that
 		 * way in this pass through the peers. */
 		return ast_test_flag(&peer->flags[0], SIP_INSECURE_PORT) ?

-- 
To view, visit https://gerrit.asterisk.org/9858
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I61a9804e4feba9c7224c481f7a10bf7eb7c7f2a2
Gerrit-Change-Number: 9858
Gerrit-PatchSet: 1
Gerrit-Owner: Jaco Kroon <jaco at uls.co.za>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180813/901af22e/attachment.html>


More information about the asterisk-code-review mailing list