Hi!

I am working with a branch of sipxezphone and I'm trying to understand the
criteria for adding padding to the RTP packet. I'm looking at
MprToNet::writeRtp and I'm not quite getting the idea. I can't understand
the expression used to evaluate if padding is needed: pad = doPadRtp ? ((4 -
3 & len)) & 3 : 0.

Could someone explain to me in which cases and why is padding added? I would
also like to know why depending on the value of "pad" different amounts of
bytes are added.

Thanks in advance,
 Manuela
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to