dect
/
asterisk
Archived
13
0
Fork 0

Answer if channel isn't up (bug #486)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1771 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2003-11-21 05:26:39 +00:00
parent 20eb91bd7a
commit b808afc39a
1 changed files with 5 additions and 1 deletions

View File

@ -82,7 +82,11 @@ static int sayunixtime_exec(struct ast_channel *chan, void *data)
}
}
res = ast_say_date_with_format(chan, unixtime, AST_DIGIT_ANY, chan->language, format, zone);
if (chan->_state != AST_STATE_UP) {
res = ast_answer(chan);
}
if (!res)
res = ast_say_date_with_format(chan, unixtime, AST_DIGIT_ANY, chan->language, format, zone);
LOCAL_USER_REMOVE(u);
return res;