[pjsip] Problem with payload.
nanang.izzuddin at gmail.com
Wed Feb 6 10:44:00 EST 2008
the pkt & size is exactly as from the callback params.
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);
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
> pjmedia_transport_send_rtp to the other transport, how can I know the
> "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.
> Visit our blog: http://blog.pjsip.org
> pjsip mailing list
> pjsip at lists.pjsip.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pjsip