]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Wait for the async thread to exit when hanging up all of the paged phones under all...
authorJoshua Colp <jcolp@digium.com>
Fri, 16 Mar 2007 16:12:28 +0000 (16:12 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 16 Mar 2007 16:12:28 +0000 (16:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@58992 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_page.c

index 2727f70d93c2f14cecf4e17581d8eae24c3a6aa7..ef1f18c9fdc4eec56e8bd71f4e5f12b43f9e8bf9 100644 (file)
@@ -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);