Forum Discussion

funkdaddy_31014's avatar
funkdaddy_31014
Icon for Nimbostratus rankNimbostratus
May 31, 2017

RTMP Streams to different pools based on path

I have been attempting (with no success) to route RTMP traffic to different pools based on the path of the stream. E.G. if the stream path starts with /01 I'd like to route the requests to pool pool01, /02 to pool02, etc.

Since this is NOT HTTP traffic, obviously we cannot use the typical:

when HTTP_REQUEST {
    switch -glob [HTTP::path] {
        "/01/*" {
            pool pool01
        }
        "/02/*" {
            pool pool01
        }
        ....
}

Is there a way to get the path in the CLIENT_DATA event and route it from there? This seems like a straightforward issue with an easy fix (but it has eluded me thusfar)...

Thanks, -Funkdaddy

No RepliesBe the first to reply