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;
}
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);
switch_channel_set_variable_printf(nchannel, "sip_route_uri", "sip:%s", tmp);