I want to generate RTP packets from a .wav file . I am using "dd -dump data" to convert this .wav file into a .txt file which will be the payload for my RTP packet. But how do i set the 12 bytes of RTP header when i use a DATAGRAM socket to send the data.Can you explain me in a little detail. I later want wireshark to detect these packets as RTP, do i have set the protocol number for RTP (e.g 17 for UDP) in the ip header to make this happen ? What default values of the RTP header will i have to set (CSRC field,seq no., timestamp, flags)?
Start Free Trial