]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
forgot to convert these to use sofia_glue_check_nat
authorBrian West <brian@freeswitch.org>
Thu, 4 Jun 2009 01:05:52 +0000 (01:05 +0000)
committerBrian West <brian@freeswitch.org>
Thu, 4 Jun 2009 01:05:52 +0000 (01:05 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13601 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_presence.c

index c26b23268c849079998806f3199b21d4d43a5a88..013ec4ee6d78de55dde16d9f6ed637a27339976c 100644 (file)
@@ -1417,9 +1417,7 @@ static int sofia_presence_mwi_callback2(void *pArg, int argc, char **argv, char
        }
 
        contact = sofia_glue_get_url_from_contact(o_contact, 1);
-
-       if (sofia_test_pflag(profile, PFLAG_AUTO_NAT) && profile->local_network &&
-               !switch_check_network_list_ip(network_ip, profile->local_network)) {
+       if (sofia_glue_check_nat(profile, network_ip)) {
                char *ptr = NULL;
                const char *transport_str = NULL;
 
@@ -1557,8 +1555,7 @@ void sofia_presence_handle_sip_i_subscribe(int status,
 
                sofia_glue_get_addr(nua_current_request(nua), network_ip,  sizeof(network_ip), &network_port);
 
-               if (sofia_test_pflag(profile, PFLAG_AUTO_NAT) && profile->local_network &&
-                       !switch_check_network_list_ip(network_ip, profile->local_network)) {
+               if (sofia_glue_check_nat(profile, network_ip)) {
                        is_auto_nat = 1;
                }