char *user_via = NULL;
char *contact_str = NULL;
char *dup_dest = NULL;
+ char *remote_host = NULL;
if (!to) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Missing To: header.\n");
/* sofia_glue is running sofia_overcome_sip_uri_weakness we do not, not sure if it matters */
- remote_ip = malloc(sizeof(80));
dup_dest = strdup(dst->contact);
if (switch_stristr("fs_path", dst->contact)) {
- char *remote_host = NULL;
const char *s;
if ((s = switch_stristr("fs_path=", dst->contact))) {
if (!zstr(remote_host)) {
switch_split_user_domain(remote_host, NULL, &remote_ip);
}
- switch_safe_free(remote_host);
}
if (zstr(remote_ip)) {
}
switch_safe_free(dup_dest);
- free(remote_ip);
+ switch_safe_free(remote_host);
status = SWITCH_STATUS_SUCCESS;