From: Anthony Minessale Date: Fri, 12 Jul 2013 18:54:50 +0000 (-0500) Subject: use this and send {sip_gethostbyname=true} in the dial string to force this behaviour X-Git-Tag: v1.5.3~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57a13694f727680dc9e3b03ba987dd121dd34bfb;p=thirdparty%2Ffreeswitch.git use this and send {sip_gethostbyname=true} in the dial string to force this behaviour --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index b8b00ac758..d8cd0219f8 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -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;