mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-16 05:07:06 +00:00
last commit was daft, real fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15923 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
fcbe0ad045
commit
e23f44cced
@ -363,10 +363,10 @@ void sofia_reg_check_gateway(sofia_profile_t *profile, time_t now)
|
|||||||
|
|
||||||
case REG_STATE_FAILED:
|
case REG_STATE_FAILED:
|
||||||
{
|
{
|
||||||
time_t sec;
|
int sec;
|
||||||
|
|
||||||
if (gateway_ptr->failure_status == 503) {
|
if (gateway_ptr->failure_status == 503) {
|
||||||
sec = now + gateway_ptr->retry_seconds;
|
sec = gateway_ptr->retry_seconds;
|
||||||
} else{
|
} else{
|
||||||
sec = gateway_ptr->retry_seconds * (gateway_ptr->failures + 1);
|
sec = gateway_ptr->retry_seconds * (gateway_ptr->failures + 1);
|
||||||
}
|
}
|
||||||
@ -376,8 +376,8 @@ void sofia_reg_check_gateway(sofia_profile_t *profile, time_t now)
|
|||||||
gateway_ptr->state = REG_STATE_FAIL_WAIT;
|
gateway_ptr->state = REG_STATE_FAIL_WAIT;
|
||||||
gateway_ptr->failure_status = 0;
|
gateway_ptr->failure_status = 0;
|
||||||
|
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "%s Failed Registration, setting retry to %ld seconds.\n",
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "%s Failed Registration, setting retry to %d seconds.\n",
|
||||||
gateway_ptr->name, (long)sec - now);
|
gateway_ptr->name, sec);
|
||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user