Revision
16214
Author
anthm
Date
2010-01-08 11:42:56 -0600 (Fri, 08 Jan 2010)

Log Message

fix retry bug

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c (16213 => 16214)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	2010-01-08 17:21:52 UTC (rev 16213)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	2010-01-08 17:42:56 UTC (rev 16214)
@@ -371,7 +371,7 @@
 					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;