mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
use portable switch_inet_ntop
This commit is contained in:
@@ -4292,7 +4292,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
|
||||
|
||||
if (he) {
|
||||
memcpy(&sa.sin_addr, he->h_addr, sizeof(struct in_addr));
|
||||
ip = inet_ntop(AF_INET, &sa.sin_addr, buf, sizeof(buf));
|
||||
ip = switch_inet_ntop(AF_INET, &sa.sin_addr, buf, sizeof(buf));
|
||||
tmp = switch_string_replace(dest, host, ip);
|
||||
//host = switch_core_session_strdup(nsession, ip);
|
||||
//dest = switch_core_session_strdup(nsession, tmp);
|
||||
|
||||
Reference in New Issue
Block a user