Alexander, thanks a lot for your reply!

I'm working with an old branch of sipXtapi-media-update adding new features
to the sipXezPhone.

Best regards,
Manuela

2007/8/16, Alexander Chemeris < [EMAIL PROTECTED]>:
>
> Hi,
>
> On 8/15/07, Manuela Ramos < [EMAIL PROTECTED]> wrote:
> >  I am working with a branch of sipxezphone
>
> I'm not sure which branch you're refering too, but it seems it is
> so called "main branch". While we'd strongly recommend to use
> sipXtapi branch:
> https://scm.sipfoundry.org/rep/sipX/branches/sipXtapi/
>
> > 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.
>
> This expression add 0-3 bytes to make RTP packet length multiple of 4.
>
> >  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.
>
> This is required if it will be later encrypted. 'doPadRtp' is a flag,
> which simply
> turn on/off this length aligning.
>
>
> --
> Regards,
> Alexander Chemeris.
>
> SIPez LLC.
> SIP VoIP, IM and Presence Consulting
> http://www.SIPez.com
> tel: +1 (617) 273-4000
>
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to