Answer the line if it hasn't been already

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1710 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-11-09 06:16:07 +00:00
parent a8e01c95f8
commit f305473af5

View File

@@ -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)