aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_meetme.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-13 23:19:51 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-13 23:19:51 +0000
commit83ec303298c0ada7be104325319fcb3e98135ff2 (patch)
tree50b3bc15df0c924d73a0818b9e3b3c25b8e84ba6 /apps/app_meetme.c
parent351187bb0cec58bae5d9ff266a204741b633c798 (diff)
Ensure that the blinky lights show that the trunk stopped ringing when the
trunk hangs up before a station has answered it. (issue #9234, reported by francesco_r) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58872 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_meetme.c')
-rw-r--r--apps/app_meetme.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index 9c8fcab2c..d1ac07985 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -4239,8 +4239,11 @@ static int sla_trunk_exec(struct ast_channel *chan, void *data)
AST_LIST_TRAVERSE_SAFE_END
ast_mutex_unlock(&sla.lock);
if (ringing_trunk) {
+ sla_change_trunk_state(ringing_trunk->trunk, SLA_TRUNK_STATE_IDLE, ALL_TRUNK_REFS, NULL);
free(ringing_trunk);
pbx_builtin_setvar_helper(chan, "SLATRUNK_STATUS", "UNANSWERED");
+ /* Queue reprocessing of ringing trunks to make stations stop ringing
+ * that shouldn't be ringing after this trunk stopped. */
sla_queue_event(SLA_EVENT_RINGING_TRUNK);
}