]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Ensure that the blinky lights show that the trunk stopped ringing when the
authorRussell Bryant <russell@russellbryant.com>
Tue, 13 Mar 2007 23:19:51 +0000 (23:19 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 13 Mar 2007 23:19:51 +0000 (23:19 +0000)
trunk hangs up before a station has answered it.
(issue #9234, reported by francesco_r)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@58872 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index 9c8fcab2c50137ec71306eb742d1b751c0c12a67..d1ac07985e47d938848cba110d03d4cf4562ba5c 100644 (file)
@@ -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);
        }