From e2e9938d1a478a8085a8cdc0e5c5981e68dbc1eb Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 21 Nov 2012 18:14:15 -0600 Subject: [PATCH] only drop re-reg once instead of permenantly --- src/mod/endpoints/mod_sofia/sofia_reg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index e64dab7415..2dbdeaf5a8 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -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 {