summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-11-09 06:16:07 +0000
committerMark Spencer <markster@digium.com>2003-11-09 06:16:07 +0000
commitf305473af548a6c1e0dc750993a0874fd427c764 (patch)
treeed29ef56c2f965c775d8926b9561900f2e956f74 /apps
parenta8e01c95f8fb56612368b609726d1577b24a683c (diff)
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
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_directory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c
index 21747b487..8e8f62455 100755
--- a/apps/app_directory.c
+++ b/apps/app_directory.c
@@ -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)