mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	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 ........ Merged revisions 408314 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@408315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -535,11 +535,13 @@ int ooOnReceivedSetup(OOH323CallData *call, Q931Message *q931Msg) | ||||
|       } | ||||
|    } | ||||
|  | ||||
| /* 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 */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user