[pjsip] Problem with payload.

Nanang Izzuddin nanang.izzuddin at gmail.com
Wed Feb 6 10:44:00 EST 2008


the pkt & size is exactly as from the callback params.
for example:

void rtp_cb (void *userdata, const void *rx_pkt, pj_ssize_t rx_size)
{
  session_t * s = (session_t*) userdata;
  pjmedia_transport *tp = s->peer_transport;

  /* validation, etc */
  ....

  pjmedia_transport_send_rtp(tp, rx_pkt, rx_size);
}


nanang


On 06/02/2008, Giuseppina Senzatela <giuseppina.senzatela at eunics.it> wrote:
>
> Maybe you're right. It seems easier.
> I'm trying and I don't have any problem on the on_rx_rtp callback.
>
> But if I don't use the pjmedia_rtp_encode_rtp before sending the packet
> with
> pjmedia_transport_send_rtp to the other transport, how can I know the
> parameters
> "pkt" (the packet to send) and the "size" (the size of the packet)??
>
> (from the definition: pjmedia_transport_send_rtp(pjmedia_transport *tp,
> const void *pkt, pj_size_t size))
>
> What do you think?
> Thanks, Giusy
>
>
>
> 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
>
>
> _______________________________________________
> 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/5e08be26/attachment.html>


More information about the pjsip mailing list