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::method] contains "DESCRIBE" and [RTSP::uri] contains "foo" }
{
RTSP::respond 302 Found "REDIRECT rtsp://1.1.1.1/foo.3gp RTSP/1.0\nLocation: rtsp://2.2.2.2/bar.3gp\n"
}
}
When the above rule is applied I don't get any response on the client side. I've tried looking through the forums, but unfortunately I haven't found anything with RTSP::respond examples.
Any help you can provide would be greatly appreciated!
Thanks,
Matt
6 Replies
Sort By
- Colin_Walker_12Historic F5 AccountThe first thing I would do is to add some logging inside your if statement to be sure the if comparison string is matching. If it's not, I'd try using the string tolower command on the method and uri respectively, and using single case comparisons to try and match.
- hoolio
Cirrostratus
I think the format for the RTSP::respond command might be slightly off. Following the format for HTTP::respond, can you try this syntax instead? - mnowina_63180
Nimbostratus
I agree that its likely a formatting issue, however I'm still stumped. It seems no matter what I put the LTM doesn't send a response. Logging shows the following: - hoolio
Cirrostratus
I think the format is: - mnowina_63180
Nimbostratus
Hi Aaron, - Deb_Allen_18Historic F5 AccountI have an open CR to get examples for these new commands, but don't yet have working examples for the wiki.
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