Problems with payload.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think you should not use the pjmedia_rtp_encode_rtp,
just forward to the UA pair whatever received on on_rx_rtp/rtcp callback.
So you dont need pjmedia_rtp_session_init / pjmedia_rtcp_init.

nanang


On 06/02/2008, Giuseppina Senzatela <giuseppina.senzatela at eunics.it> wrote:
>
> Maybe you're right...but I've checked, the bytes_read is always >0 on
> on_rx_rtp/rtcp callbacks.
>
>
> First I create two media transports, one for each UA.
> I initialize the rtp/rtcp session with pjmedia_rtp_session_init /
> pjmedia_rtcp_init.
>
> I call pjmedia_transport_attach() to attach my RTP/RTCP RX callbacks, one
> for each UA.
>
> Then I create 2 worker threads, one for each UA in which I call
> pjmedia_rtp_encode_rtp and then pjmedia_transport_send_rtp/rtcp()  to send
> the packet with the other transport.
>
> Am I missing something?
>
> Bye,
>
>
>
>
>
>
>
>
>
> AFAIK, the pjmedia_transport doesn't modify any part of the packet.
> So perhaps some 'logic error' in the code (buffer sharing, etc).
> And please make sure you check the "bytes_read" on on_rx_rtp/rtcp
> callback,
> because it can be < 0.
>
> nanang
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080206/ba33eca1/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux