aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_page.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-16 16:14:04 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-16 16:14:04 +0000
commitfd92ad648e7cc9e71b4c8dee000aefcc6cd98cf1 (patch)
treebfee12eeda2e137a526a4b048b53892c4a1696e7 /apps/app_page.c
parentd66939c063c26893d0efd424c6997fe43d3ee308 (diff)
Merged revisions 58992 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r58992 | file | 2007-03-16 12:12:28 -0400 (Fri, 16 Mar 2007) | 2 lines Wait for the async thread to exit when hanging up all of the paged phones under all circumstances. (issue #9181 reported by PhilSmith) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@58995 f38db490-d61c-443f-a65b-d21fe96a405b
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);