summaryrefslogtreecommitdiff
path: root/apps/app_zapateller.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_zapateller.c')
-rw-r--r--apps/app_zapateller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_zapateller.c b/apps/app_zapateller.c
index b102ea426..775fd55a3 100644
--- a/apps/app_zapateller.c
+++ b/apps/app_zapateller.c
@@ -98,7 +98,7 @@ static int zapateller_exec(struct ast_channel *chan, const char *data)
pbx_builtin_setvar_helper(chan, "ZAPATELLERSTATUS", "NOTHING");
ast_stopstream(chan);
- if (chan->_state != AST_STATE_UP) {
+ if (ast_channel_state(chan) != AST_STATE_UP) {
if (answer) {
res = ast_answer(chan);
pbx_builtin_setvar_helper(chan, "ZAPATELLERSTATUS", "ANSWERED");