]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
use portable switch_inet_ntop
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 11 Feb 2014 22:31:21 +0000 (03:31 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 11 Feb 2014 22:31:21 +0000 (03:31 +0500)
src/mod/applications/mod_commands/mod_commands.c
src/mod/endpoints/mod_sofia/mod_sofia.c

index 1e10a8f8f4c71ac8b806d58cc2144d900b087f58..90dd06d314940c8e237c57927e134c1b4cac6dff 100644 (file)
@@ -529,7 +529,7 @@ SWITCH_STANDARD_API(gethost_api_function)
 
                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));
                        stream->write_function(stream, "%s", ip);
                        return SWITCH_STATUS_SUCCESS;
                }
index 3454de053e36ba6f89172400fb365452a94ff297..f16a1477a71285558bc7bb9c37f34cf52ffac1f0 100644 (file)
@@ -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);