From f305473af548a6c1e0dc750993a0874fd427c764 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Sun, 9 Nov 2003 06:16:07 +0000 Subject: [PATCH] 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 --- apps/app_directory.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/app_directory.c b/apps/app_directory.c index 21747b4872..8e8f624552 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)