From 4d00147c048b73c8376342001180df632f414f53 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 9 Sep 2014 08:35:29 -0400 Subject: [PATCH] s/force_relay/force-relay/ --- README.md | 4 ++-- daemon/call_interfaces.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3a6f2ed2e..3671ea560 100644 --- a/README.md +++ b/README.md @@ -599,7 +599,7 @@ Optionally included keys are: * `ICE` - Contains a string, valid values are `remove`, `force` or `force_relay`. + Contains a string, valid values are `remove`, `force` or `force-relay`. With `remove`, any ICE attributes are stripped from the SDP body. With `force`, ICE attributes are first stripped, then new attributes are generated and inserted, which leaves the media proxy as the only ICE candidate. The default behavior @@ -607,7 +607,7 @@ Optionally included keys are: media proxy lists itself as ICE candidate; otherwise, the media proxy inserts itself as a low-priority candidate. - With `force_relay`, existing ICE candidates are left in place except `relay` + With `force-relay`, existing ICE candidates are left in place except `relay` type candidates, and *rtpengine* inserts itself as a `relay` candidate. It will also leave SDP c= and m= lines unchanged. diff --git a/daemon/call_interfaces.c b/daemon/call_interfaces.c index 9dee5e20a..b15df81e7 100644 --- a/daemon/call_interfaces.c +++ b/daemon/call_interfaces.c @@ -529,7 +529,7 @@ static void call_ng_process_flags(struct sdp_ng_flags *out, bencode_item_t *inpu out->ice_remove = 1; else if (!str_cmp(&s, "force")) out->ice_force = 1; - else if (!str_cmp(&s, "force_relay")) + else if (!str_cmp(&s, "force_relay") || !str_cmp(&s, "force-relay")) out->ice_force_relay = 1; else ilog(LOG_WARN, "Unknown 'ICE' flag encountered: '"STR_FORMAT"'",