Forum Discussion

Eldad_162351's avatar
Eldad_162351
Icon for Nimbostratus rankNimbostratus
Sep 10, 2014

RTP Wrapped in UDP Packet

Hello,

 

im trying to find a solution for a client sending me rtp traffic wrapped inside udp since he has to modify the udp header without touching the rtp. im trying to achieve that using an iRule with UDP::Payload and replace. i saw the example in DevCentral but im not sure how to remove the current header and use the rtp header and payload inside.

 

help would be appriciated.

 

thanks O.

 

  • Sorry but I'm confused, RTP is normally carried over UDP. What exactly are you trying to do with an iRule?

     

  • Yes youre right but this time im getting in wrapped twice. rtp packet wrapped by udp. [udp[rtp]]

     

    thanks O.

     

  • So you mean [udp[udp[rtp]]]?

     

    If not, I'd expect [udp[rtp]]. What exactly do you need to modify please?

     

  • correct, i mean [udp[udp[rtp]]]

     

    i would like to remove the first udp header, to stay with [udp[rtp]], meaning normal rtp packet to deliver to an rtp server.

     

  • OK, well, I'm sure this is possible, the packet header is a fixed length right so you could use UDP::collect and payload and strip off the first 8Bytes of every packet.

     

    However, whether this would break things in relation to the outer UDP header checksum I don't know.

     

    Apologies but I don't have the time to give this the thought it deserves, hopefully this helps you make a start.