MT#63317 add strict bundle mode

Change-Id: Ic2076525b9e655cfb7d6fb665898018d29b87d5e
rfuchs/2010
Richard Fuchs 4 months ago
parent 2348888932
commit 9790ee9232

@ -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));

@ -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