Answer for Still Stuck on Consuming Event Notifications

Hi Bonnie, The Event Notifications is quite straightforward. It is a simple JSON (or XML) over HTTP message. Here is an example of the message which is sent by the EMS, with HTTP headers and all:
POST / HTTP/1.1
Host: localhost
User-Agent: EvoStream Media Server (www.evostream.com)
Content-Type: application/json
Content-Length: 3170


{"id":1,"payload":{"PID":2200,"config":{"acceptors":[{"ip":"127.0.0.1","port":1112,"protocol":"inboundJsonCli","sslCert":"","sslKey":"","useLengthPadding":true},{"ip":"127.0.0.1","port":7777,"protocol":"inboundHttpJsonCli","sslCert":"","sslKey":""},{"ip":"0.0.0.0","port":1935,"protocol":"inboundRtmp","sslCert":"","sslKey":""},{"clustering":true,"ip":"127.0.0.1","port":1936,"protocol":"inboundRtmp","sslCert":"","sslKey":""},{"clustering":true,"ip":"127.0.0.1","port":1113,"protocol":"inboundBinVariant","sslCert":"","sslKey":""},{"ip":"0.0.0.0","port":5544,"protocol":"inboundRtsp","sslCert":"","sslKey":""},{"ip":"0.0.0.0","port":6666,"protocol":"inboundLiveFlv","sslCert":"","sslKey":"","waitForMetadata":true},{"ip":"0.0.0.0","port":8080,"protocol":"inboundHttp","sslCert":"","sslKey":""}],"aliases":["er","live","vod"],"appDir":"D:\PROJECTS\evostream\trunk\builders\VS2010\out\Debug static\64\config\","authPersistenceFile":"..\config\auth.xml","bandwidthLimitPersistenceFile":"..\config\bandwidthlimits.xml","connectionsLimitPersistenceFile":"..\config\connlimits.xml","default":true,"description":"EVOSTREAM MEDIA SERVER","eventLogger":{"customData":123,"sinks":[{"enabledEvents":["inStreamCreated","outStreamCreated","streamCreated","inStreamCodecsUpdated","outStreamCodecsUpdated","streamCodecsUpdated","inStreamClosed","outStreamClosed","streamClosed","cliRequest","cliResponse","applicationStart","applicationStop","carrierCreated","carrierClosed","serverStarted","serverStopping","protocolRegisteredToApp","protocolUnregisteredFromApp","processStarted","processStopped","timerCreated","timerTriggered","timerClosed","hlsChunkCreated","hlsChunkClosed","hlsChunkError","hlsChildPlaylistUpdated","hlsMasterPlaylistUpdated","hdsChunkCreated","hdsChunkClosed","hdsChunkError","hdsChildPlaylistUpdated","hdsMasterPlaylistUpdated"],"serializerType":"JSON","type":"RPC","url":"http://localhost:999"}]},"hasIngestPoints":false,"hasStreamAliases":false,"ingestPointsPersistenceFile":"..\config\ingestpoints.xml","initApplicationFunction":"GetApplication_evostreamms","initFactoryFunction":"GetFactory_evostreamms","isOrigin":true,"library":"","maxRtmpOutBuffer":524288,"mediaStorage":{"0x00000001":{"description":"Default media storage","mediaFolder":"../media"},"lstStorage":{"mediaFolder":"D:\PROJECTS\TestVideos\lst","metaFolder":"D:\PROJECTS\TestVideos\lst\meta"},"mp4Storage":{"mediaFolder":"D:\PROJECTS\TestVideos\mp4","metaFolder":"D:\PROJECTS\TestVideos\mp4\meta"},"recordedStreamsStorage":"../media","vodStorage":{"mediaFolder":"D:\PROJECTS\TestVideos\vod","metaFolder":"D:\PROJECTS\TestVideos\vod\meta"}},"metaFileGenerator":false,"mp4BinPath":"..\evo-mp4writer.exe","name":"evostreamms","protocol":"dynamiclinklibrary","pushPullPersistenceFile":"..\config\pushPullSetup.xml","rtcpDetectionInterval":15,"streamsExpireTimer":10,"transcoder":{"dstUriPrefix":"-f flv tcp://localhost:6666/","scriptPath":"..\emsTranscoder.bat","srcUriPrefix":"rtsp://localhost:5544/"},"validateHandshake":false},"customData":123,"id":1,"name":"evostreamms"},"processId":2200,"timestamp":1402976834,"type":"applicationStart"}
Unless EMS logs a TCP error, the log
1402680108:3:c:jenkinsworkspaceEvoStream_windows_1.6labelWindows_2008_64bitsourcesthelibincludenetio/iocp/tcpconnector.h:138:TCPConnector<class BaseRPCAppProtocolHandler>::OnEvent:Outbound connection established: (Far: 127.0.0.1:999; Near: 127.0.0.1:54053) CTCP(400) <-> TCP(64) <-> OHTT2(65) <-> [ORPC(66)]
would tell you that EMS has successfully sent the notification. I hope this helps. Regards, Ian

Offcanvas

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.