提交 57a13694 authored 作者: Anthony Minessale's avatar Anthony Minessale

use this and send {sip_gethostbyname=true} in the dial string to force this behaviour

上级 647f3fd3
......@@ -4276,7 +4276,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
} else {
host++;
if (!strchr(host, '.')) {
if (!strchr(host, '.') || switch_true(switch_event_get_header(var_event, "sip_gethostbyname"))) {
struct sockaddr_in sa;
struct hostent *he = gethostbyname(host);
char *ip, *tmp;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论