[asterisk-commits] russell: branch russell/sla_rewrite r52372 - /team/russell/sla_rewrite/apps/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Jan 26 17:18:51 MST 2007


Author: russell
Date: Fri Jan 26 18:18:50 2007
New Revision: 52372

URL: http://svn.digium.com/view/asterisk?view=rev&rev=52372
Log:
Only change trunk state back to IDLE if there are no other active stations.
Otherwise, they should still all show it as in use.

Modified:
    team/russell/sla_rewrite/apps/app_meetme.c

Modified: team/russell/sla_rewrite/apps/app_meetme.c
URL: http://svn.digium.com/view/asterisk/team/russell/sla_rewrite/apps/app_meetme.c?view=diff&rev=52372&r1=52371&r2=52372
==============================================================================
--- team/russell/sla_rewrite/apps/app_meetme.c (original)
+++ team/russell/sla_rewrite/apps/app_meetme.c Fri Jan 26 18:18:50 2007
@@ -3172,14 +3172,7 @@
 	if (res == 1) {	
 		strncat(conf_name, "|K", sizeof(conf_name) - strlen(conf_name) - 1);
 		admin_exec(NULL, conf_name);
-	}
-	
-	for (i = 0; stations[i]; i++) {
-		if (trunk_refs[i]->state != SLA_TRUNK_STATE_IDLE &&
-			(!stations[i]->chan || i == winner)) {
-			trunk_refs[i]->state = SLA_TRUNK_STATE_IDLE;
-			ast_device_state_changed("SLA:%s_%s", stations[i]->name, trunk->name);
-		}
+		change_trunk_state(trunk_refs[winner]->trunk, SLA_TRUNK_STATE_IDLE);
 	}
 	
 	ast_dial_join(dials[winner]);



More information about the asterisk-commits mailing list