]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix retry bug
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 8 Jan 2010 17:42:56 +0000 (17:42 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 8 Jan 2010 17:42:56 +0000 (17:42 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16214 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index 936fe03dc7f7bbb47638a9ad749e4caa1fd00997..e53063d3ebf8731e7011cb9ad97a72e4bb5d67ce 100644 (file)
@@ -371,7 +371,7 @@ void sofia_reg_check_gateway(sofia_profile_t *profile, time_t now)
                                        sec = gateway_ptr->retry_seconds * (gateway_ptr->failures + 1);
                                }
                                
-                               gateway_ptr->retry = sec;
+                               gateway_ptr->retry = switch_epoch_time_now(NULL) + sec;
                                gateway_ptr->status = SOFIA_GATEWAY_DOWN;
                                gateway_ptr->state = REG_STATE_FAIL_WAIT;
                                gateway_ptr->failure_status = 0;