Wowza Community

onHTTPSessionCreate never called, but onHTTPSessionDestroy in 4.4.1

Hi,

I’ve even also a Module which should secure the session during HTTP Streaming.

The same module works greate in Wowza 3.x but now, I’m testing Wowza 4.4.1, it won’t work.

When I debug my methods I can see that a onSessionDestroy is called, but the onHTTPSessionCreate never.

Are there any interface or method Name changes which I’ve probably not seen??:confused:

The Module runs on a LiveEdge Application which connects on

rtmp://10.10.23.114/sectest

to an Origin Server (without this module).

public class AccessControlHttpStreaming extends ModuleBase {
	private static final Log	logger	= LogFactory.getLog(AccessControlHttpStreaming.class);
	public void onHTTPSmoothStreamingSessionCreate(HTTPStreamerSessionSmoothStreamer httpSmoothStreamingSession) {
		onSessionCreate(new InternalSmoothStreamerSession(httpSmoothStreamingSession), httpSmoothStreamingSession.getIpAddress());
	}
	public void onRTPSessionCreate(RTPSession rtpSession) {
		onSessionCreate(new InternalRTPSession(rtpSession), rtpSession.getIp());
	}
	public void onHTTPSessionCreate(IHTTPStreamerSession httpSession) {
		onSessionCreate(new InternalHTTPSession(httpSession, false, httpSession.getIpAddress());
	}
	public void onHTTPSessionDestroy(IHTTPStreamerSession session) {
		onSessionDestroy(new InternalHTTPSession(session, null));
	}
	public void onSessionDestroy(IInternalSession session) {
		final Set<String> removeFromKeys = SecureManager.unbindSessionID(session.getSessionID());
		// DO SOME CRAZY STUFF
		session.rejectSession();
	}
	public void onSessionCreate(final InternalHTTPSession session, String ipAddress) {
		// DO SOME REALLY CRAZY STUFF
	}
}

For Testings I’ve run that Module just on the Origin and it works…

Thanks a lot,

Tom

Ok, closed…

What a simple solution… I’ve made a mistake,

forgotten to define definst

Could not delete this thread…