Wowza Community

ModuleTimedDisconnect Exceptions

I’m not exactly sure how to configure prefixes and exemptions to the time out rule. I would like to have the module in place so we don’t have viewer chewing up bandwidth for no good reason. However, I would like to play the stream in my retail establishment continuously, with no time out. Is this something that can be done by exempting IP address. We have a static IP.

It sounds like you’d need to modify the ModuleTimedDisconnect module (source included within the Module Collection) to check for an IP address (your continuous stream playback IP) as an exception. It currently only whitelists by user agent (flash version).

I’d suggest adding another function to the source of ModuleTimedDisconnect that checks the IP address against your new property for whitelisted IP’s in addition to the user agent check.

That could work. You would likely want to add support for http and rtp connections as well in their respective conditionals using httpSession.getIpAddress() and rtpSession.getIp(). You will also want to put back the test for 127.0.0.1 originally in the code.

OK so I would just add a value which would be the static IP of the location it will be played >> timedDisconnectAllowedAgents

[HTML]IClient client = clients.next();

if (client.getTimeRunningSeconds() > disconnectTime)

{

if (!client.getIp().equals(“my-static-ip”) && checkAllowedUserAgent(client.getFlashVer()))

{

if (debugLog)

logger.info(MODULE_NAME + ": RTMP disconnecting client " + client.getClientId() + " FlashVer is " + client.getFlashVer(), WMSLoggerIDs.CAT_application, WMSLoggerIDs.EVT_comment);

client.setShutdownClient(false);

}

}[/HTML]

Something like that?