Browse Source

MT#63317 add strict bundle mode

Change-Id: Ic2076525b9e655cfb7d6fb665898018d29b87d5e
rfuchs/2010
Richard Fuchs 3 months ago
parent
commit
9790ee9232
2 changed files with 10 additions and 0 deletions
  1. +6
    -0
      daemon/call_interfaces.c
  2. +4
    -0
      daemon/sdp.c

+ 6
- 0
daemon/call_interfaces.c View File

@ -858,6 +858,12 @@ static void call_ng_flags_bundle(str *s, unsigned int idx, helper_arg arg) {
out->bundle_require = true;
out->generate_mid = true;
break;
case CSH_LOOKUP("strict"):
out->bundle_offer = true;
out->bundle_require = true;
out->bundle_strict = true;
out->generate_mid = true;
break;
default:
ilog(LOG_WARN, "Unknown 'BUNDLE' flag encountered: '" STR_FORMAT "'",
STR_FMT(s));


+ 4
- 0
daemon/sdp.c View File

@ -3496,6 +3496,10 @@ int sdp_create(str *out, struct call_monologue *monologue, sdp_ng_flags *flags)
&sdp_address);
unsigned int port = sdp_address.port;
if (media->bundle && MEDIA_ISSET(media, BUNDLE_ONLY) && flags->opmode == OP_OFFER &&
flags->bundle_strict && media->bundle != media)
port = 0;
prtp = NULL;
if (media->protocol && media->protocol->srtp)
prtp = &transport_protocols[media->protocol->rtp_proto];


Loading…
Cancel
Save