|
|
|
|
@ -825,6 +825,12 @@ static void call_ng_flags_flags(struct sdp_ng_flags *out, str *s, void *dummy) {
|
|
|
|
|
case CSH_LOOKUP("pad-crypto"):
|
|
|
|
|
out->sdes_pad = 1;
|
|
|
|
|
break;
|
|
|
|
|
case CSH_LOOKUP("passthrough"):
|
|
|
|
|
out->passthrough_on = 1;
|
|
|
|
|
break;
|
|
|
|
|
case CSH_LOOKUP("no-passthrough"):
|
|
|
|
|
out->passthrough_off = 1;
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
// handle values aliases from other dictionaries
|
|
|
|
|
if (call_ng_flags_prefix(out, s, "SDES-no-", call_ng_flags_str_ht, &out->sdes_no))
|
|
|
|
|
@ -971,6 +977,26 @@ static void call_ng_process_flags(struct sdp_ng_flags *out, bencode_item_t *inpu
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (bencode_dictionary_get_str(input, "passthrough", &s)) {
|
|
|
|
|
switch (__csh_lookup(&s)) {
|
|
|
|
|
case CSH_LOOKUP("on"):
|
|
|
|
|
case CSH_LOOKUP("yes"):
|
|
|
|
|
case CSH_LOOKUP("enable"):
|
|
|
|
|
case CSH_LOOKUP("enabled"):
|
|
|
|
|
out->passthrough_on = 1;
|
|
|
|
|
break;
|
|
|
|
|
case CSH_LOOKUP("no"):
|
|
|
|
|
case CSH_LOOKUP("off"):
|
|
|
|
|
case CSH_LOOKUP("disable"):
|
|
|
|
|
case CSH_LOOKUP("disabled"):
|
|
|
|
|
out->passthrough_off = 1;
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
ilog(LOG_WARN, "Unknown 'passthrough' flag encountered: '"STR_FORMAT"'",
|
|
|
|
|
STR_FMT(&s));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
call_ng_flags_list(out, input, "rtcp-mux", call_ng_flags_rtcp_mux, NULL);
|
|
|
|
|
call_ng_flags_list(out, input, "SDES", ng_sdes_option, NULL);
|
|
|
|
|
call_ng_flags_list(out, input, "OSRTP", ng_osrtp_option, NULL);
|
|
|
|
|
|