diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-16 16:12:28 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-16 16:12:28 +0000 |
commit | cfae1d2b1771ffa778403db0bd3a907761fc6ba0 (patch) | |
tree | 14b6a5bbc27ceeb2aa101540188a10db9dce5b9b /apps/app_page.c | |
parent | 24e605f8c2c36ab72749fb854e07fbff7ab51e5f (diff) |
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/branches/1.4@58992 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_page.c')
-rw-r--r-- | apps/app_page.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/app_page.c b/apps/app_page.c index 2727f70d9..ef1f18c9f 100644 --- a/apps/app_page.c +++ b/apps/app_page.c @@ -167,9 +167,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); |