views:

1451

answers:

4

I've managed to set up a SIP call using the JAIN-SIP API for Java.

Now I would like to stream some video once a dialog has been established. I've read that this is possible with SDP and RTP, and I've found multiple examples on how to define a SDP/RTP body in a SIP packet.

But once you have negotiated capability etc. on nodes, how do you actually start the RTP stream? Do you start an RTP streaming server outside or inside your Java application? If so, how? What is the link?

In what I'm able to find online, nodes just "start exchanging RTP packets".

Thank you.

+2  A: 

You need an RTP stack. As you are starting out, it would be best to keep everything together in the same app. JMF (Java Media Framework) is a good place to start, though there are others like JRTP. JMF video specifics can be found here

Stuart
A: 

HI IS it possible to play the RTP streaming in Blackberry devices. Please provide the different idea's on developing the RTP pstreaming in blackberry or provide any example source.

Regards, Suresh A [email protected]

Suresh A
A: 

Hi,

Are JMF or JRTP Stacks for Mobiles?

As far as I know, these stacks run on Desktop. Correct me if I m wrong.

Also, kindly let me know if there is any RTP stack which can run on BlackBerry handsets.

niddhi
A: 

Try to search on keyword "re-INVITE" and appropriate examples. As soon as you found yourself in need of another audio / video stream into existing SIP call with already established media you need to start new INVITE / OK / ACK sequence. New streams could replace your existing media streams or could be added. It's your choice and this depends on signalling. Of course you need RTP stack with capability / codecs supported to satisfy your actual needs.

People often implement this to handle T.38 fax switching inside SIP calls. You can obtain required reference logs dumping call from device which supports T.38 (or actually having any modem over IP support). Remember your voice streams should be LBR (low bit rate) codecs such as G.729 or G.723.1. This could bring you with many answers at least 'when' to start RTP and how to signal this. At least initiating INVITE with proposed new RTP stream you should be ready to receive this stream right from the start. You can start sending RTP after OK with proposed ports 'where' to send RTP.

Roman Nikitchenko