Forum Discussion

Adrian_1807's avatar
Adrian_1807
Icon for Nimbostratus rankNimbostratus
Jun 26, 2007

RTSP transport header

Hi to all,

 

 

I´m working on one iRule and we are completily stopped at one point... you´ll see that my experience on this iRules is not the biggest ;-)

 

 

So, the question is:

 

 

I want to filter one Transport RTSP header. I mean, for instance, I have this line:

 

Transport:RTP/AVP/UDP;unicast;source=208.65.153.241;client_port=3456-3457;server_port=6970-6971;ssrc=3D6A7DA2

 

 

And the key question is that I want to remove the parameter source. So, the new line would be like:

 

Transport:RTP/AVP/UDP;unicast;client_port=3456-3457;server_port=6970-6971;ssrc=3D6A7DA2

 

 

So, what should I do? My question is only related on how can I handle this string. For sure, there is a command or something like that used for this issue.

 

 

Sorry for my lack of knowledge and thank you very much in advance.

 

 

Ciao

 

 

1 Reply

  • use string map. I'm assuming the source IP is the client address, so if it's not, you'll need a different target.

     

     

    set new_header [string map {"source=[IP::client_addr];" ""} $original_header]

     

     

    The TCL Reference can be found at:

     

     

    http://tmml.sourceforge.net/doc/tcl/string.html Click here