mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
do lookup in dingaling when an address is specified as host:foo.bar.com like sofia does
This commit is contained in:
parent
d905bc8488
commit
fbfe830abf
@ -1511,8 +1511,14 @@ static int do_tport_candidates(struct private_object *tech_pvt, ldl_transport_ty
|
||||
}
|
||||
address = advip;
|
||||
|
||||
if(address && !strncasecmp(address, "host:", 5)) {
|
||||
address = address + 5;
|
||||
if (address && !strncasecmp(address, "host:", 5)) {
|
||||
char *lookup = switch_stun_host_lookup(address + 5, switch_core_session_get_pool(tech_pvt->session));
|
||||
|
||||
if (zstr(lookup)) {
|
||||
address = address + 5;
|
||||
} else {
|
||||
address = lookup;
|
||||
}
|
||||
}
|
||||
|
||||
memset(cand, 0, sizeof(*cand));
|
||||
|
Loading…
x
Reference in New Issue
Block a user