|
|
@ -861,6 +861,7 @@ static void call_ng_process_flags(struct sdp_ng_flags *out, bencode_item_t *inpu |
|
|
|
|
|
|
|
|
out->trust_address = trust_address_def; |
|
|
out->trust_address = trust_address_def; |
|
|
out->dtls_passive = dtls_passive_def; |
|
|
out->dtls_passive = dtls_passive_def; |
|
|
|
|
|
out->dtls_reverse_passive = dtls_passive_def; |
|
|
|
|
|
|
|
|
call_ng_flags_list(out, input, "flags", call_ng_flags_flags, NULL); |
|
|
call_ng_flags_list(out, input, "flags", call_ng_flags_flags, NULL); |
|
|
call_ng_flags_list(out, input, "replace", call_ng_flags_replace, NULL); |
|
|
call_ng_flags_list(out, input, "replace", call_ng_flags_replace, NULL); |
|
|
@ -925,6 +926,9 @@ static void call_ng_process_flags(struct sdp_ng_flags *out, bencode_item_t *inpu |
|
|
case CSH_LOOKUP("passive"): |
|
|
case CSH_LOOKUP("passive"): |
|
|
out->dtls_passive = 1; |
|
|
out->dtls_passive = 1; |
|
|
break; |
|
|
break; |
|
|
|
|
|
case CSH_LOOKUP("active"): |
|
|
|
|
|
out->dtls_passive = 0; |
|
|
|
|
|
break; |
|
|
case CSH_LOOKUP("no"): |
|
|
case CSH_LOOKUP("no"): |
|
|
case CSH_LOOKUP("off"): |
|
|
case CSH_LOOKUP("off"): |
|
|
case CSH_LOOKUP("disabled"): |
|
|
case CSH_LOOKUP("disabled"): |
|
|
@ -937,6 +941,20 @@ static void call_ng_process_flags(struct sdp_ng_flags *out, bencode_item_t *inpu |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (bencode_dictionary_get_str(input, "DTLS-reverse", &s)) { |
|
|
|
|
|
switch (__csh_lookup(&s)) { |
|
|
|
|
|
case CSH_LOOKUP("passive"): |
|
|
|
|
|
out->dtls_reverse_passive = 1; |
|
|
|
|
|
break; |
|
|
|
|
|
case CSH_LOOKUP("active"): |
|
|
|
|
|
out->dtls_reverse_passive = 0; |
|
|
|
|
|
break; |
|
|
|
|
|
default: |
|
|
|
|
|
ilog(LOG_WARN, "Unknown 'DTLS-reverse' 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, "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, "SDES", ng_sdes_option, NULL); |
|
|
call_ng_flags_list(out, input, "OSRTP", ng_osrtp_option, NULL); |
|
|
call_ng_flags_list(out, input, "OSRTP", ng_osrtp_option, NULL); |
|
|
|