Reputation: 41
I am working on developing a soft-phone, for this I am implementing my own module. I am able to successfully send the RTP packets to my SIP Server and on the other hand I am getting RTP packets, from which I need to parse the header and payload.
I know that the length of the RTP header is 12 and after that follows the payload. Now can somebody shed some light of how to parse header and payload. I am working with C as programming language.
Regards
Upvotes: 1
Views: 6484
Reputation: 9573
The best thing to do is to follow the RFC3550 and then to look at the corresponding RFC for the payload type. Another link you could look at is http://www.networksorcery.com/enp/protocol/rtp.htm. It also contains links to the various RFCs.
Alternatively if you want some example code as a starting point, there are loads of open source RTP libraries in both c and c++ that you could have a look at. LiveMedia, jRtpLib, RtpLib are some you could use but there were tons more.
Upvotes: 2