diff options
author | Joshua Colp <jcolp@digium.com> | 2017-06-30 18:55:57 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2017-07-13 14:47:50 +0000 |
commit | 065c3005ad920f5fe2cedcf062e38b8e28eeb015 (patch) | |
tree | 6f10effde768ae19faa7342b1eeef1004cf2fddc /res/res_pjsip.c | |
parent | e1c0e14fac7cdca276a0fd61fa891ea54f4ab5d8 (diff) |
res_rtp_asterisk / res_pjsip: Add support for BUNDLE.
BUNDLE is a specification used in WebRTC to allow multiple
streams to use the same underlying transport. This reduces
the number of ICE and DTLS negotiations that has to occur
to 1 normally.
This change implements this by adding support for it to
the RTP SDP module in PJSIP. BUNDLE can be turned on using
the "bundle" option and on an offer we will offer to
bundle streams together. On an answer we will accept any
bundle groups provided. Once accepted each stream is bundled
to another RTP instance for transport.
For the res_rtp_asterisk changes the ability to bundle
an RTP instance to another based on the SSRC received
from the remote side has been added. For outgoing traffic
if an RTP instance is bundled to another we will use the
other RTP instance for any transport related things. For
incoming traffic received from the transport instance we
look up the correct instance based on the SSRC and use it
for any non-transport related data.
ASTERISK-27118
Change-Id: I96c0920b9f9aca7382256484765a239017973c11
Diffstat (limited to 'res/res_pjsip.c')
-rw-r--r-- | res/res_pjsip.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c index 0cf034374..1b546eff9 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -995,6 +995,14 @@ streams allowed for the endpoint. </para></description> </configOption> + <configOption name="bundle" default="no"> + <synopsis>Enable RTP bundling</synopsis> + <description><para> + With this option enabled, Asterisk will attempt to negotiate the use of bundle. + If negotiated this will result in multiple RTP streams being carried over the same + underlying transport. Note that enabling bundle will also enable the rtcp_mux option. + </para></description> + </configOption> </configObject> <configObject name="auth"> <synopsis>Authentication type</synopsis> |