]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5806 please test HEAD
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 20 Sep 2013 15:20:01 +0000 (10:20 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 20 Sep 2013 15:20:01 +0000 (10:20 -0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index f8cd9a6ede1aa7ec4878a7ab247ada451ae85bf4..11228355bfb8d343b15bdb238f6144db80b6deb5 100644 (file)
@@ -2122,7 +2122,9 @@ static void _send_presence_notify(sofia_profile_t *profile,
                cparams += 3;
        }
 
-       path = sofia_glue_get_path_from_contact((char *) o_contact);
+       if (!switch_stristr("fs_nat=yes", o_contact)) {
+               path = sofia_glue_get_path_from_contact((char *) o_contact);
+       }
 
        tmp = (char *)o_contact;
        o_contact_dup = sofia_glue_get_url_from_contact(tmp, 1);