From: Michael Jerris Date: Tue, 19 May 2009 15:17:44 +0000 (+0000) Subject: don't do this if its zero try one SFSIP-143 X-Git-Tag: v1.0.4~820 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=123d724377725333412b0bb19f4a842d43c8e9de;p=thirdparty%2Ffreeswitch.git don't do this if its zero try one SFSIP-143 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13384 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index d16a1d9155..22b5c2f2e1 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -1375,7 +1375,7 @@ void sofia_reg_handle_sip_r_register(int status, new_expires = contact->m_expires; expi = (uint32_t) atoi(new_expires); - if (expi != sofia_private->gateway->freq) { + if (expi > 0 && expi != sofia_private->gateway->freq) { sofia_private->gateway->freq = expi; switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Changing expire time to %d by request of proxy %s\n", expi, sofia_private->gateway->register_proxy);