]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
SFSIP-162 (part 2)
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 14 Jul 2009 19:32:42 +0000 (19:32 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 14 Jul 2009 19:32:42 +0000 (19:32 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14250 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index 0d0b63f6e1b50f2fc1e45ae611c8fa136c3d6d20..a4d9b59bd56b3602823f1eeb920a03e960fe1ee0 100644 (file)
@@ -264,11 +264,8 @@ void sofia_reg_check_gateway(sofia_profile_t *profile, time_t now)
                        gateway_ptr->expires_str = "0";
                }
 
-               if (!sofia_test_pflag(gateway_ptr->profile, PFLAG_RUNNING) || gateway_ptr->deleted) {
-                       continue;
-               }
-
-               if (gateway_ptr->ping && !gateway_ptr->pinging && (now >= gateway_ptr->ping && (ostate == REG_STATE_NOREG || ostate == REG_STATE_REGED))) {
+               if (gateway_ptr->ping && !gateway_ptr->pinging && (now >= gateway_ptr->ping && (ostate == REG_STATE_NOREG || ostate == REG_STATE_REGED)) &&
+                       !gateway_ptr->deleted) {
                        nua_handle_t *nh = nua_handle(profile->nua, NULL, NUTAG_URL(gateway_ptr->register_url), TAG_END());
                        sofia_private_t *pvt;