]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't do this if its zero try one SFSIP-143
authorMichael Jerris <mike@jerris.com>
Tue, 19 May 2009 15:17:44 +0000 (15:17 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 19 May 2009 15:17:44 +0000 (15:17 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13384 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index d16a1d9155c69c416016cc08d1651958a09a2fbd..22b5c2f2e1b54a1ed6094b09cc2d83119ec88dfe 100644 (file)
@@ -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);