kuhn_52743
Jul 21, 2009Nimbostratus
RTSP/TCP connection merging
Hello,
I am new to iRules and want to know if it is possible to do something like this:
I have a pool member that is a media streaming server, so clients usually connect to it using RTSP over TCP to establish streaming sessions.
What I want to do is have a client connect as usual, but have a separate client (which may or may not be on the same host) connect on a separate TCP connection. This second client wants to issue commands to control the RTSP session that was opened by the first client. The server doesn't support this - it needs to view everything over a single RTSP/TCP connection.
Wondering if I can write an iRule to "merge" the two client side RTSP/TCP connections, into a single server side connection. So if either client sends an RTSP command, it would get forwarded on to the server using a shared server side TCP connection. When the server responded, the iRule would have to "route" the response to the correct client side connection.
The two clients could be assumed to use a common session id in the RTSP urls, so the iRule would be able to parse the URL to make the association between the two clients (in other words, to know that those two client connections need to get merged to the same server side connection.)
Anybody ever do anything similar to this?