提交 fbfe830a authored 作者: Anthony Minessale's avatar Anthony Minessale

do lookup in dingaling when an address is specified as host:foo.bar.com like sofia does

上级 d905bc84
...@@ -1511,8 +1511,14 @@ static int do_tport_candidates(struct private_object *tech_pvt, ldl_transport_ty ...@@ -1511,8 +1511,14 @@ static int do_tport_candidates(struct private_object *tech_pvt, ldl_transport_ty
} }
address = advip; address = advip;
if(address && !strncasecmp(address, "host:", 5)) { if (address && !strncasecmp(address, "host:", 5)) {
address = address + 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)); memset(cand, 0, sizeof(*cand));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论