Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c (15920 => 15921)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c 2009-12-11 22:04:47 UTC (rev 15920)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c 2009-12-11 22:09:36 UTC (rev 15921)
@@ -363,7 +363,7 @@
case REG_STATE_FAILED:
{
- int sec;
+ time_t sec;
if (gateway_ptr->failure_status == 503) {
sec = now + gateway_ptr->retry_seconds;
@@ -376,8 +376,8 @@
gateway_ptr->state = REG_STATE_FAIL_WAIT;
gateway_ptr->failure_status = 0;
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "%s Failed Registration, setting retry to %d seconds.\n",
- gateway_ptr->name, sec);
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "%s Failed Registration, setting retry to %ld seconds.\n",
+ gateway_ptr->name, (long)sec - now);
}
break;