mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
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:
@@ -243,6 +243,8 @@ static int directory_exec(struct ast_channel *chan, void *data)
|
|||||||
}
|
}
|
||||||
LOCAL_USER_ADD(u);
|
LOCAL_USER_ADD(u);
|
||||||
top:
|
top:
|
||||||
|
if (chan->_state != AST_STATE_UP)
|
||||||
|
res = ast_answer(chan);
|
||||||
if (!res)
|
if (!res)
|
||||||
res = ast_streamfile(chan, "dir-intro", chan->language);
|
res = ast_streamfile(chan, "dir-intro", chan->language);
|
||||||
if (!res)
|
if (!res)
|
||||||
|
Reference in New Issue
Block a user