Help needed in Media Proxy implementation

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

 



Hi,

I am working on a Media Proxy app which we do the RTP(Encode/Decode) plus RTCP message translation between two servers.

The questions i have are :-
1) I will have to create 2 streams (on top of 2 transports) talking to each of the two servers.
But i am confused about Get_Frame/Put_Frame callbacks and on_rx_rtp/on_rx_rtcp callback. which one i have to use?? What is the difference between the two and when to use each?

Similarly when we shall use 

pjmedia_port_get_frame() & pjmedia_port_put_frame() OR pjmedia_transport_send_rtp() & pjmedia_transport_send_rtcp()?

Can we use on_rx_rtp/on_rx_rtcp? with streams too?

2) As pjmedia_stream_create, calls the "pjmedia_transport_attach" and assigns its own on_rx_rtp/on_rx_rtcp callbacks?

Do i have to again call "pjmedia_transport_attach" in my application code and give my own 
on_rx_rtp/on_rx_rtcp callbacks to receive rtp/rtcp?

Right now the seq of APIs i have called is :-

pj_init(), pj_caching_pool_init, pj_pool_create, pjmedia_endpt_create (call twice as i need 2 endpoints talking to 2 servers), initcodecs (register the codecs i need for each endpoint like pjmedia_codec_g711_init and pjmedia_codec_ipp_init), pjmedia_transport_udp_create2 (called twice to create 2 transports to talk to 2 servers), pjmedia_stream_create(), pjmedia_transport_attach(), defined my own on_rx_rtp, on_rx_rtcp.

Please let me know if the sequence of API call is correct?

Am new to PJMedia stack, so will highly appreciate any help provided?

Thanks n regards,
Mannu








      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090128/ab3818f6/attachment-0001.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