Revision: 34730
http://sourceforge.net/p/opalvoip/code/34730
Author: rjongbloed
Date: 2016-03-28 16:54:00 +0000 (Mon, 28 Mar 2016)
Log Message:
-----------
Added ability to set remote gatekeeper time to live for OPAL server.
Modified Paths:
--------------
opal/trunk/samples/server/h323serv.cxx
Modified: opal/trunk/samples/server/h323serv.cxx
===================================================================
--- opal/trunk/samples/server/h323serv.cxx 2016-03-28 16:48:20 UTC (rev 34729)
+++ opal/trunk/samples/server/h323serv.cxx 2016-03-28 16:54:00 UTC (rev 34730)
@@ -40,6 +40,7 @@
static const char GatekeeperInterfaceKey[] = "Remote Gatekeeper Interface";
static const char GatekeeperPasswordKey[] = "Remote Gatekeeper Password";
static const char GatekeeperTokenOIDKey[] = "Remote Gatekeeper Token OID";
+static const char GatekeeperTimeToLiveKey[] = "Remote Gatekeeper Time To Live";
static const char GatekeeperAliasLimitKey[] = "Remote Gatekeeper Alias Limit";
static const char GatekeeperSimulatePatternKey[] = "Remote Gatekeeper Simulate Pattern";
static const char GatekeeperRasRedirectKey[] = "Remote Gatekeeper RAS Redirect";
@@ -206,6 +207,10 @@
SetGkAccessTokenOID(rsrc->AddStringField(GatekeeperTokenOIDKey, 0, GetGkAccessTokenOID(),
"Gatekeeper access token OID for H.235 support", 1, 30));
+ SetGatekeeperTimeToLive(PTimeInterval(0,rsrc->AddIntegerField(GatekeeperTimeToLiveKey,
+ 10, 24*60*60, GetGatekeeperTimeToLive().GetSeconds(), "seconds",
+ "Time to Live for gatekeeper re-registration.")));
+
SetGatekeeperAliasLimit(rsrc->AddIntegerField(GatekeeperAliasLimitKey,
1, H323EndPoint::MaxGatekeeperAliasLimit, GetGatekeeperAliasLimit(), NULL,
"Compatibility issue with some gatekeepers not being able to register large numbers of aliases in single RRQ."));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|