summaryrefslogtreecommitdiff
path: root/apps/app_authenticate.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_authenticate.c')
-rw-r--r--apps/app_authenticate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_authenticate.c b/apps/app_authenticate.c
index 45e6d9602..fbb430089 100644
--- a/apps/app_authenticate.c
+++ b/apps/app_authenticate.c
@@ -133,7 +133,7 @@ static int auth_exec(struct ast_channel *chan, const char *data)
return -1;
}
- if (chan->_state != AST_STATE_UP) {
+ if (ast_channel_state(chan) != AST_STATE_UP) {
if ((res = ast_answer(chan)))
return -1;
}