java sip 携带sdp,如何在SIP / SDP呼叫中启动RTP流

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.

解决方案

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),(JMF-RTP Architecture) is a good place to start, though there are others like JRTP. JMF video specifics can be found here

你可能感兴趣的:(java,sip,携带sdp)