aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-04 16:26:23 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-04 16:26:23 +0000
commit08e3987486261754c55f135a8f0ed439e78d3312 (patch)
treeee59c66df0be72887e4570c62e31d416511f6437 /apps
parentd1f888be2e04f13466497790203704d74bce7603 (diff)
Fix a problem where if a trunk was hung up while it was on hold, all of the
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: http://svn.digium.com/svn/asterisk/branches/1.4@60069 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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 fcb0ddc36..0c21676ea 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -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);