mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
[core] add support for resolving (and ignoring) mdns style .local addresses in ice candidates
This commit is contained in:
committed by
Andrey Volk
parent
6a099f74f9
commit
53b459a687
@@ -2348,6 +2348,8 @@ static void switch_load_core_config(const char *file)
|
||||
} else {
|
||||
runtime.timer_affinity = atoi(val);
|
||||
}
|
||||
} else if (!strcasecmp(var, "ice-resolve-candidate")) {
|
||||
switch_core_media_set_resolveice(switch_true(val));
|
||||
} else if (!strcasecmp(var, "rtp-start-port") && !zstr(val)) {
|
||||
switch_rtp_set_start_port((switch_port_t) atoi(val));
|
||||
} else if (!strcasecmp(var, "rtp-end-port") && !zstr(val)) {
|
||||
@@ -3008,6 +3010,9 @@ SWITCH_DECLARE(int32_t) switch_core_session_ctl(switch_session_ctl_t cmd, void *
|
||||
switch_core_memory_reclaim_all();
|
||||
newintval = 0;
|
||||
break;
|
||||
case SCSC_MDNS_RESOLVE:
|
||||
switch_core_media_set_resolveice(!!oldintval);
|
||||
break;
|
||||
}
|
||||
|
||||
if (intval) {
|
||||
|
||||
Reference in New Issue
Block a user