]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix a problem where if a trunk was hung up while it was on hold, all of the
authorRussell Bryant <russell@russellbryant.com>
Wed, 4 Apr 2007 16:26:23 +0000 (16:26 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 4 Apr 2007 16:26:23 +0000 (16:26 +0000)
hints would reflect the line still on hold, even though it should reflect that
it is back to not in use.  (issue #9459, reported by francesco_r, fixed by me)

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

apps/app_meetme.c

index fcb0ddc369f12fda108c3d3a8475c7281fdd1ca0..0c21676ea073f9c2c4737330020fc0bc8f637c2d 100644 (file)
@@ -4039,6 +4039,9 @@ static void *dial_trunk(void *data)
                conf = NULL;
        }
 
+       /* If the trunk is going away, it is definitely now IDLE. */
+       sla_change_trunk_state(trunk_ref->trunk, SLA_TRUNK_STATE_IDLE, ALL_TRUNK_REFS, NULL);
+
        trunk_ref->trunk->chan = NULL;
 
        ast_dial_join(dial);