From: Jeff Lenk Date: Mon, 23 May 2011 00:10:52 +0000 (-0500) Subject: FS-3152 --resolve dup_dest was being overwritten by switch_split_user_domain X-Git-Tag: v1.2-rc1~108^2~11^2~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=765908f356916bf248c71dae6c395c16276db0a5;p=thirdparty%2Ffreeswitch.git FS-3152 --resolve dup_dest was being overwritten by switch_split_user_domain --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 3259808d4d..6c7c0cf648 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -195,15 +195,9 @@ switch_status_t sofia_presence_chat_send(const char *proto, const char *from, co } - if (dst->route_uri) { - remote_host = strdup(dst->route_uri); - if (!zstr(remote_host)) { - switch_split_user_domain(remote_host, NULL, &remote_ip); - } - } - - if (zstr(remote_ip)) { - switch_split_user_domain(dup_dest, NULL, &remote_ip); + remote_host = strdup(dup_dest); + if (!zstr(remote_host)) { + switch_split_user_domain(remote_host, NULL, &remote_ip); } if (!zstr(remote_ip) && sofia_glue_check_nat(profile, remote_ip)) {