aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_directory.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-11-09 06:16:07 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-11-09 06:16:07 +0000
commitfb0182eb5aa06c5dba040888767c930ac843c612 (patch)
treeed29ef56c2f965c775d8926b9561900f2e956f74 /apps/app_directory.c
parent20c2c5290d6babd96929d2cb6fe77c9d98eb0a01 (diff)
Answer the line if it hasn't been already
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1710 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_directory.c')
-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)