Browse code

Update sca.c - Fix done for Appearance purge stale

We have observed that when the call is answered and it is in active state more than 30 seconds, kamailio sends the notify messages with the "Idle" appearance to all the subscribed extensions. Practically it should not send the idle notification when the call is in active state.
We have tried to change the mod parameter "purge_expired_interval" to 3600 seconds. but still idle notification transmit in 30 seconds. To overcome this issue, we have commented below line in the sca.c file.

register_timer( sca_appearance_purge_stale, sca, sca->cfg->purge_expired_interval);

bensly-shanmugam authored on 21/09/2022 06:41:15 • GitHub committed on 21/09/2022 06:41:15
Showing 1 changed files
... ...
@@ -381,8 +381,8 @@ static int sca_mod_init(void)
381 381
 
382 382
 	register_timer(sca_subscription_purge_expired, sca,
383 383
 			sca->cfg->purge_expired_interval);
384
-	register_timer(
385
-			sca_appearance_purge_stale, sca, sca->cfg->purge_expired_interval);
384
+	//register_timer(
385
+	//		sca_appearance_purge_stale, sca, sca->cfg->purge_expired_interval);
386 386
 
387 387
 	// register separate timer process to write subscriptions to DB.
388 388
 	// move to 3.3+ timer API (register_basic_timer) at some point.