add 908-retry-seconds gateway param to set reg retry time when getting a 908 for backup interfaces to connect quickly

This commit is contained in:
Michael Jerris
2014-10-09 14:43:16 -04:00
parent b578aa7c9e
commit 855cc4b4e0
3 changed files with 11 additions and 1 deletions
+3 -1
View File
@@ -493,7 +493,9 @@ void sofia_reg_check_gateway(sofia_profile_t *profile, time_t now)
{
int sec;
if (gateway_ptr->failure_status == 503 || gateway_ptr->failure_status == 908 || gateway_ptr->failures < 1) {
if (gateway_ptr->fail_908_retry_seconds && gateway_ptr->failure_status == 908) {
sec = gateway_ptr->fail_908_retry_seconds;
} else if (gateway_ptr->failure_status == 503 || gateway_ptr->failure_status == 908 || gateway_ptr->failures < 1) {
sec = gateway_ptr->retry_seconds;
} else {
sec = gateway_ptr->retry_seconds * gateway_ptr->failures;