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:
parent
20eb91bd7a
commit
b808afc39a
|
@ -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;
|
||||
|
|
Reference in New Issue