summaryrefslogtreecommitdiff
path: root/apps/app_page.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_page.c')
-rw-r--r--apps/app_page.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/app_page.c b/apps/app_page.c
index f324dd5c9..b6a633907 100644
--- a/apps/app_page.c
+++ b/apps/app_page.c
@@ -177,9 +177,8 @@ static int page_exec(struct ast_channel *chan, void *data)
for (i = 0; i < pos; i++) {
struct ast_dial *dial = dials[i];
- /* If the dial is already answered, then they will/should get kicked out by Meetme */
- if (ast_dial_state(dial) != AST_DIAL_RESULT_ANSWERED)
- ast_dial_join(dial);
+ /* We have to wait for the async thread to exit as it's possible Meetme won't throw them out immediately */
+ ast_dial_join(dial);
/* Hangup all channels */
ast_dial_hangup(dial);