streaming

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

 



On 1/21/08, Giuseppina Senzatela <giuseppina.senzatela at eunics.it> wrote:
>
> Sorry, you're right... :-\
> In my case, I've a sip proxy that provides  to all the sip signalling
> between the UACs,
> and the media proxy should simply forward the media (the RTP, I mean)
> between UACs involved in the call.


In that case, I think you probably don't need to use stream at all. Stream
is needed if you need to work with the media at the PCM level, while in this
case, probably what you want is just to forward the RTP packets (without
having to decode/encode etc.).

If this is the case, then the solution couldn't be simpler:
 - create two media transports, one for each UA
 - call pjmedia_transport_attach() to attach your RTP/RTCP RX callbacks.
 - when your RTP/RTCP callback is called by one transport, call
pjmedia_transport_send_rtp/rtcp() to to send the packet with the other
transport.

You will still need  to configure worker threads in pjmedia_endpt to poll
the ioqueue, or otherwise create these threads yourself and make them poll
the ioqueue. See pjmedia_endpt_create() documentation for the details.

What do you think?

cheers,
 -benny


I hope it is more clear to you..
> TNX!
> Giusy
>
>
> Hi Giusy,
>
> sorry I'm not too clear about your use case.
>
> So you have mediaproxy acting as, well, a media proxy, in the middle of
> the
> call between the UAs, is that right?
>
> Now, do you want to proxy the media between UA1 and UA2, or do you want to
> somehow have the media proxy involved in the media as well (by involved, I
> mean the media proxy is sending its own media to the UAs, rather than just
> forwarding media), or do you want both? We can do all of these of course,
> it's easy. ;-)
>
> cheers,
> -benny
>
>
> _______________________________________________
> 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/20080121/3df7e960/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