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

This commit is contained in:
Anthony Minessale 2013-07-12 13:54:50 -05:00
parent 30926251cb
commit 4336f4fc28
1 changed files with 1 additions and 1 deletions

View File

@ -5044,7 +5044,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;