]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
missed one
authorBrian West <brian@freeswitch.org>
Thu, 4 Jun 2009 05:50:16 +0000 (05:50 +0000)
committerBrian West <brian@freeswitch.org>
Thu, 4 Jun 2009 05:50:16 +0000 (05:50 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13610 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index a8d9324a463102e946bcce03242f5c5d0ea1bce7..f01aaf29145c4de8ca739203c63fa61bf290aa24 100644 (file)
@@ -141,8 +141,10 @@ void sofia_sub_check_gateway(sofia_profile_t *profile, time_t now)
                                gw_sub_ptr->expires_str = "0";
                        }
 
-                       user_via = sofia_glue_create_external_via(NULL, gateway_ptr->profile, gateway_ptr->register_transport);
-                       
+                       if (sofia_glue_check_nat(gateway_ptr->profile, gateway_ptr->register_proxy)) {
+                               user_via = sofia_glue_create_external_via(NULL, gateway_ptr->profile, gateway_ptr->register_transport);
+                       }
+
                        switch (ostate) {
                        case SUB_STATE_NOSUB:
                                break;