You can limit the number of simultaneous live and playback connections that the Media
Gateway role will accept by generating a configuration file (gconfig).
What you should know
- If you save the gconfig file on the machine hosting the Media Gateway role, the
configuration is forwarded to all Agent machines. If you require a unique configuration on
a specific Agent machine, you can save a modified gconfig file on the Agent machine.
- Both RTSP and web interface connections are included in the total number of
connections.
To limit Media Gateway connections:
-
Create the following mediagateway.gconfig file where n1 is
the maximum simultaneous number of live connections and n2 is the maximum
simultaneous number of playback connections that the Media Gateway role accepts.
<configuration>
<MediaGateway MaximumLiveSessionCount="n1" MaximumPlaybackSessionCount="n2"></MediaGateway>
</configuration>
NOTE:
- The default value is 0 and allows an unlimited number of connections.
- A negative value prevents any connections.
-
Save the mediagateway.gconfig file to the Security
Center installation folder.
On a 64-bit machine, the default location is C:\Program Files (x86)\Genetec
Security Center 5.8\ConfigurationFiles.
NOTE:
- Saving the file to the machine hosting the Media Gateway role configures that
machine and all Agent machines.
- Saving the file to an Agent machine configures only that machine.
-
Restart the role.
NOTE:
- If you saved the gconfig file to the machine hosting the Media Gateway role,
restart the role.
- If you saved the gconfig file to an Agent machine, restart the machine.