mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
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
This commit is contained in:
parent
09b2fd335a
commit
123d724377
@ -1375,7 +1375,7 @@ void sofia_reg_handle_sip_r_register(int status,
|
|||||||
new_expires = contact->m_expires;
|
new_expires = contact->m_expires;
|
||||||
expi = (uint32_t) atoi(new_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;
|
sofia_private->gateway->freq = expi;
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,
|
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);
|
"Changing expire time to %d by request of proxy %s\n", expi, sofia_private->gateway->register_proxy);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user