API stream-list info changes
After a while (10-20 minutes) the stream info list returned by the API seems to change.
The parameters are farIp and I think also bandwidth. For external streams coming in it starts with the external IP address, but changes to 127.0.0.1. Is this expected behaviour, or an known issue?
Below is a sample JSON result. Both stream1 and stream2 are incoming streams from server xx.xx.xx.xx. The problem I encountered is that during the two last longer running streams the system went down as I check on the incoming streams to establish if the server is ‘healthy’ and distribute the end-node IP’s accordingly. I used (with 1.6.4) to select on NOT farIp 127.0.0.1, type INR, and bandwidth > 0 (to prevent false positives for some internal streams). The same for the out count. But that doesn’t seem to be reliable anymore since 1.6.5 (or at least I never ran into strange effects with 1.6.4 in 6 months use, and have problems with this since I upgraded to 1.6.5).
One observation, but nor verified, is that on the web interface the 127.0.0.1 stream appeared in one test. Then I deleted it, and it was replaced by the same stream but now with the proper IP. As if the one with 127.0.0.1 overshadowd the proper data.
[{"appName":"evostreamms","audio":{"bytesCount":32179071,"codec":"AAAC","codecNumeric":4702111241970122752,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":291993},"bandwidth":628,"connectionType":1,"creationTimestamp":1.3941072312247778E12,"edgePid":8227,"farIp":"127.0.0.1","farPort":1936,"ip":"127.0.0.1","name”:"stream2","nearIp":"127.0.0.1","nearPort":32848,"outStreamsUniqueIds":[35334695944198,35334695944211],"port":32848,"processId":8227,"processType":"edge","pullSettings":{"emulateUserAgent":null,"forceTcp":true,"height":0,"keepAlive":false,"localStreamName":"stream2","pageUrl":"","rangeEnd":-1,"rangeStart":-2,"swfUrl":"","tcUrl":null,"tos":256,"ttl":256,"uri":"rtmp://localhost:1936/live/stream2","width":0},"queryTimestamp":1.39410923129355E12,"serverAgent":"FMS/3,0,1,123","type":"INR","typeNumeric":5282249572905648128,"uniqueId":35334695944196,"upTime":2000068.7722,"video":{"bytesCount":120444101,"codec":"VH264","codecNumeric":6217274493967007744,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":965183}},{"appName":"evostreamms","audio":{"bytesCount":32104792,"codec":"AAAC","codecNumeric":4702111241970122752,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":93465},"bandwidth":628,"canDropFrames":true,"connectionType":0,"creationTimestamp":1.394107235847074E12,"edgePid":8227,"farIp":"87.33.106.189","farPort":59875,"inStreamUniqueId":35334695944196,"ip":"92.63.169.59","name":"stream2","nearIp”:”xx.xx.xx.xx","nearPort":1935,"port":1935,"processId":8227,"processType":"edge","queryTimestamp":1.394109231293634E12,"type":"ONR","typeNumeric":5714595137133215744,"uniqueId":35334695944198,"upTime":1995446.5601,"userAgent":"WIN 12,0,0,70","video":{"bytesCount":120166976,"codec":"VH264","codecNumeric":6217274493967007744,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":48031}},{"appName":"evostreamms","audio":{"bytesCount":6391148,"codec":"AAAC","codecNumeric":4702111241970122752,"droppedBytesCount":5016789,"droppedPacketsCount":14605,"packetsCount":18606},"bandwidth":628,"canDropFrames":true,"connectionType":0,"creationTimestamp":1.394108832980264E12,"edgePid":8227,"farIp":"87.36.171.54","farPort":50083,"inStreamUniqueId":35334695944196,"ip":"xx.xx.xx.xx","name":"stream2","nearIp":"xx.xx.xx.xx","nearPort":1935,"port":1935,"processId":8227,"processType":"edge","queryTimestamp":1.3941092312936658E12,"type":"ONR","typeNumeric":5714595137133215744,"uniqueId":35334695944211,"upTime":398313.4019,"userAgent":"WIN 12,0,0,70","video":{"bytesCount":20296718,"codec":"VH264","codecNumeric":6217274493967007744,"droppedBytesCount":14953895,"droppedPacketsCount":5970,"packetsCount":8103}},{"appName":"evostreamms","audio":{"bytesCount":32508783,"codec":"AAAC","codecNumeric":4702111241970122752,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":294911},"bandwidth":1128,"connectionType":1,"creationTimestamp":1.394107210739044E12,"edgePid":0,"farIp":"185.27.174.214","farPort":1935,"ip":"xx.xx.xx.xx","name":"stream1","nearIp":"xx.xx.xx.xx","nearPort":47480,"outStreamsUniqueIds":null,"port":47480,"processId":8226,"processType":"origin","pullSettings":{"audioCodecBytes":"","configId":1,"emulateUserAgent":"EvoStream Media Server (www.evostream.com) player","forceTcp":true,"httpProxy":"","isAudio":true,"keepAlive":false,"localStreamName":"stream1","operationType":1,"pageUrl":"","ppsBytes":"","rangeEnd":-1,"rangeStart":-2,"rtcpDetectionInterval":10,"sendRenewStream":false,"spsBytes":"","ssmIp":"","swfUrl":"","tcUrl":"","tos":256,"ttl":256,"uri":"rtmp://185.27.174.214/live/icatholic1"},"queryTimestamp":1.394109231294043E12,"serverAgent":"FMS/3,0,1,123","type":"INR","typeNumeric":5282249572905648128,"uniqueId":1,"upTime":2020554.999,"video":{"bytesCount":243526204,"codec":"VH264","codecNumeric":6217274493967007744,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":1932004}},{"appName":"evostreamms","audio":{"bytesCount":32179067,"codec":"AAAC","codecNumeric":4702111241970122752,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":93681},"bandwidth":628,"canDropFrames":true,"connectionType":0,"creationTimestamp":1.394107231225057E12,"edgePid":0,"farIp":"127.0.0.1","farPort":32848,"inStreamUniqueId":2,"ip":"127.0.0.1","name":"icatholic2","nearIp":"127.0.0.1","nearPort":1936,"port":1936,"processId":8226,"processType":"origin","queryTimestamp":1.394109231294156E12,"type":"ONR","typeNumeric":5714595137133215744,"uniqueId":4,"upTime":2000069.0991,"userAgent":"EvoStream Media Server (www.evostream.com)","video":{"bytesCount":120444032,"codec":"VH264","codecNumeric":6217274493967007744,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":48146}}]