]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
only drop re-reg once instead of permenantly
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 22 Nov 2012 00:14:15 +0000 (18:14 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 22 Nov 2012 00:14:15 +0000 (18:14 -0600)
src/mod/endpoints/mod_sofia/sofia_reg.c

index e64dab7415bc211470427157fad7fdac2b529f9f..2dbdeaf5a8c00f678ae44c7f5a35c1c6c016d1c6 100644 (file)
@@ -2018,9 +2018,9 @@ void sofia_reg_handle_sip_r_register(int status,
                                        expi = (uint32_t) atoi(new_expires);
 
                                        if (expi > 0 && expi != sofia_private->gateway->freq) {
-                                               sofia_private->gateway->freq = expi;
-                                               sofia_private->gateway->expires_str = switch_core_sprintf(sofia_private->gateway->pool, "%d", expi);
-
+                                               //sofia_private->gateway->freq = expi;
+                                               //sofia_private->gateway->expires_str = switch_core_sprintf(sofia_private->gateway->pool, "%d", expi);
+                                               
                                                if (expi > 60) {
                                                        sofia_private->gateway->expires = switch_epoch_time_now(NULL) + (expi - 15);
                                                } else {