[asterisk-commits] may: branch 12 r408314 - in /branches/12: ./ addons/ooh323c/src/ooh323.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 19 04:20:06 CST 2014


Author: may
Date: Wed Feb 19 04:20:02 2014
New Revision: 408314

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=408314
Log:
Allow different socket and signalling ip on h.323 connection if gk mode is active
Reported by: Gabriele Odone
Patches:
	ASTERISK-22738-1.patch
Tested by: Gabriele Odone
(closes issue ASTERISK-22738)
........

Merged revisions 408312 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    branches/12/   (props changed)
    branches/12/addons/ooh323c/src/ooh323.c

Propchange: branches/12/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: branches/12/addons/ooh323c/src/ooh323.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/addons/ooh323c/src/ooh323.c?view=diff&rev=408314&r1=408313&r2=408314
==============================================================================
--- branches/12/addons/ooh323c/src/ooh323.c (original)
+++ branches/12/addons/ooh323c/src/ooh323.c Wed Feb 19 04:20:02 2014
@@ -535,11 +535,13 @@
       }
    }
 
+/* Allow sourceCallSignallAddress different with socket IP for gk routed calls */
    if (strncmp(remoteIP, call->remoteIP, strlen(remoteIP))) {
-     OOTRACEERR5("ERROR: Security denial remote sig IP isn't a socket ip, %s not %s "
-		     "(%s, %s)\n", remoteIP, call->remoteIP, call->callType, 
-		     call->callToken);
-     return OO_FAILED;
+	if(!gH323ep.gkClient || OO_TESTFLAG(call->flags, OO_M_DISABLEGK) || (gH323ep.gkClient->state != GkClientRegistered)) {
+     		OOTRACEERR5("ERROR: Security denial remote sig IP isn't a socket ip, %s not %s "
+		     	"(%s, %s)\n", remoteIP, call->remoteIP, call->callType, call->callToken);
+     		return OO_FAILED;
+	}
    }
    
    /* check for fast start */




More information about the asterisk-commits mailing list