mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-05 02:34:18 +00:00
use this and send {sip_gethostbyname=true} in the dial string to force this behaviour
This commit is contained in:
parent
647f3fd3fb
commit
57a13694f7
@ -4276,7 +4276,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
|
|||||||
} else {
|
} else {
|
||||||
host++;
|
host++;
|
||||||
|
|
||||||
if (!strchr(host, '.')) {
|
if (!strchr(host, '.') || switch_true(switch_event_get_header(var_event, "sip_gethostbyname"))) {
|
||||||
struct sockaddr_in sa;
|
struct sockaddr_in sa;
|
||||||
struct hostent *he = gethostbyname(host);
|
struct hostent *he = gethostbyname(host);
|
||||||
char *ip, *tmp;
|
char *ip, *tmp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user