Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c (14249 => 14250)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c 2009-07-14 18:25:38 UTC (rev 14249)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c 2009-07-14 19:32:42 UTC (rev 14250)
@@ -264,11 +264,8 @@
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;