via: 5f2857b8b8e2d426f9b442e5afb9a26997635330 (commit)
from: 722b2ce16807e77228f7698275a177af9901ad61 (commit)
= COMMIT LOG ===========================================================
committer: Brian West
comments:
use the correct URI on endpoints behind nat
diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c
index 3755894..df472f2 100644
--- a/src/mod/endpoints/mod_sofia/sofia_presence.c
+++ b/src/mod/endpoints/mod_sofia/sofia_presence.c
@@ -190,16 +190,8 @@ switch_status_t sofia_presence_chat_send(const char *proto, const char *from, co
dup_dest = strdup(dst->contact);
- if (switch_stristr("fs_path", dst->contact)) {
- const char *s;
-
- if ((s = switch_stristr("fs_path=", dst->contact))) {
- s += 8;
- }
- if (s) {
- remote_host = strdup(s);
- switch_url_decode(remote_host);
- }
+ if (dst->route_uri) {
+ remote_host = strdup(dst->route_uri);
if (!zstr(remote_host)) {
switch_split_user_domain(remote_host, NULL, &remote_ip);
}
Summary of changes: src/mod/endpoints/mod_sofia/sofia_presence.c | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-)
this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630
--
FreeSWITCH Source