use the correct URI on endpoints behind nat
This commit is contained in:
parent
722b2ce168
commit
5f2857b8b8
|
@ -190,16 +190,8 @@ switch_status_t sofia_presence_chat_send(const char *proto, const char *from, co
|
||||||
|
|
||||||
dup_dest = strdup(dst->contact);
|
dup_dest = strdup(dst->contact);
|
||||||
|
|
||||||
if (switch_stristr("fs_path", dst->contact)) {
|
if (dst->route_uri) {
|
||||||
const char *s;
|
remote_host = strdup(dst->route_uri);
|
||||||
|
|
||||||
if ((s = switch_stristr("fs_path=", dst->contact))) {
|
|
||||||
s += 8;
|
|
||||||
}
|
|
||||||
if (s) {
|
|
||||||
remote_host = strdup(s);
|
|
||||||
switch_url_decode(remote_host);
|
|
||||||
}
|
|
||||||
if (!zstr(remote_host)) {
|
if (!zstr(remote_host)) {
|
||||||
switch_split_user_domain(remote_host, NULL, &remote_ip);
|
switch_split_user_domain(remote_host, NULL, &remote_ip);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue