Forum Discussion
mnowina_63180
Nimbostratus
May 30, 2008RTSP::method
Hi,
This is my first attempt at using an iRule and I think I'm having a formating issue with the RTSP header/body in this rule:
when RTSP_REQUEST {
if { [RTSP::met...
mnowina_63180
Nimbostratus
Jun 02, 2008Hi Aaron,
Thanks for all of your help! I was able to get this functionality working with a slightly modified string, but your suggestion to use netcat was really what helped the most. So now with the following irule, I am able to redirect certain clients to an alternate file:
when RTSP_REQUEST {
if { [RTSP::method] contains "SETUP" and [RTSP::uri] contains "foo" }
{
RTSP::respond 302 "Moved Temporarily" "Location: rtsp://2.2.2.2/bar.3gp\n\r\r"
}
}
Unfortunately at this point, I've only been able to redirect connection attempts from the Real Player client. Quicktime and VLC just appear to hang. It was also interesting to note that the trailing "\n\r\r" are necessary for Real to work as well, without them the client just appears to hang. I'm now trying to see if there is a way to have the LTM respond with "REDIRECT rstp://1.1.1.1/foo.3gp RTSP/1.0" (and subsequent headers) which in theory can be applied at any time during the stream. I just haven't seen a way to respond without a numeric status code.
Matt
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects