Browse code

Merge 10d2c740d5c532cec4458d03d1d91672e5300fad into 3476eb3aebdbda622194131c008c8309f9ef8524

Surendra Tiwari authored on 20/10/2021 08:23:19 • GitHub committed on 20/10/2021 08:23:19
Showing 1 changed files
... ...
@@ -1205,7 +1205,7 @@ int uac_reg_update(reg_uac_t *reg, time_t tn)
1205 1205
 		reg->flags |= UAC_REG_INIT;
1206 1206
 	}
1207 1207
 
1208
-	if(reg->timer_expires > tn + reg_timer_interval + 3)
1208
+	if ((reg->expires/2) < reg->timer_expires - tn)
1209 1209
 		return 3;
1210 1210
 
1211 1211
 	return uac_reg_send(reg, tn);