only drop re-reg once instead of permenantly

This commit is contained in:
Anthony Minessale 2012-11-21 18:14:15 -06:00
parent cf32d24b5d
commit e2e9938d1a
1 changed files with 3 additions and 3 deletions

View 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 {