summaryrefslogtreecommitdiff
path: root/addons/ooh323c
diff options
context:
space:
mode:
authorAlexandr Anikin <may@telecom-service.ru>2014-02-19 10:41:01 +0000
committerAlexandr Anikin <may@telecom-service.ru>2014-02-19 10:41:01 +0000
commitac622442885a26551711bec3ec239093583833fc (patch)
tree13dde2b3d461b262ae99b7ad10a3a06b62d27f3a /addons/ooh323c
parentce18fcebf3782796356d2cc98a064020a14c6524 (diff)
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
Diffstat (limited to 'addons/ooh323c')
-rw-r--r--addons/ooh323c/src/ooh323.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/addons/ooh323c/src/ooh323.c b/addons/ooh323c/src/ooh323.c
index e7708af4a..d91c64942 100644
--- a/addons/ooh323c/src/ooh323.c
+++ b/addons/ooh323c/src/ooh323.c
@@ -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 */