diff options
Diffstat (limited to 'apps/app_sayunixtime.c')
-rw-r--r-- | apps/app_sayunixtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_sayunixtime.c b/apps/app_sayunixtime.c index 32119aca0..7d34ed9cd 100644 --- a/apps/app_sayunixtime.c +++ b/apps/app_sayunixtime.c @@ -148,7 +148,7 @@ static int sayunixtime_exec(struct ast_channel *chan, const char *data) ast_get_time_t(ast_strlen_zero(args.timeval) ? NULL : args.timeval, &unixtime, time(NULL), NULL); - if (chan->_state != AST_STATE_UP) { + if (ast_channel_state(chan) != AST_STATE_UP) { res = ast_answer(chan); } |