Answer the line if it hasn't been already
authorMark Spencer <markster@digium.com>
Sun, 9 Nov 2003 06:16:07 +0000 (06:16 +0000)
committerMark Spencer <markster@digium.com>
Sun, 9 Nov 2003 06:16:07 +0000 (06:16 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1710 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_directory.c

index 21747b4..8e8f624 100755 (executable)
@@ -243,6 +243,8 @@ static int directory_exec(struct ast_channel *chan, void *data)
        }
        LOCAL_USER_ADD(u);
 top:
+       if (chan->_state != AST_STATE_UP) 
+               res = ast_answer(chan);
        if (!res)
                res = ast_streamfile(chan, "dir-intro", chan->language);
        if (!res)