diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-09 06:16:07 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-09 06:16:07 +0000 |
commit | fb0182eb5aa06c5dba040888767c930ac843c612 (patch) | |
tree | ed29ef56c2f965c775d8926b9561900f2e956f74 /apps/app_directory.c | |
parent | 20c2c5290d6babd96929d2cb6fe77c9d98eb0a01 (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-x | apps/app_directory.c | 2 |
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) |