RTSP::url replace iRule

Hi All,

Our customer have a RTSP::URL replaced request.

like: rtsp://www.xxxx.com/CCTV5

replaced by: rtsp://www.xxxx.com/11111111/000000000/222222222/sports5.sdp

Would anybody help me to develop this iRule? I check that RTSP::url can’t set value and I really don’t familiar with RTSP protocols. Thanks!

Hi Aaron,

Thanks for your support!

If our customer use TCP, Would I use tcp::playload to finish the iRule? I find we also have "TCP::payload replace "?

If it’s TCP, you should be able to add a blank stream profile to the VIP and then use the STREAM::expression and STREAM::enable commands in an iRule to replace the find string with the replace string:

when CLIENT_ACCEPTED {
   STREAM::expression {find replace}
   STREAM::enable
}

This is a bit easier than collecting the TCP data and performing the replacement in the CLIENT_DATA event.

Aaron