diff options
Diffstat (limited to 'apps/app_ivrdemo.c')
-rw-r--r-- | apps/app_ivrdemo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_ivrdemo.c b/apps/app_ivrdemo.c index d035df91f..099c67d48 100644 --- a/apps/app_ivrdemo.c +++ b/apps/app_ivrdemo.c @@ -108,7 +108,7 @@ static int skel_exec(struct ast_channel *chan, const char *data) /* Do our thing here */ - if (chan->_state != AST_STATE_UP) + if (ast_channel_state(chan) != AST_STATE_UP) res = ast_answer(chan); if (!res) res = ast_ivr_menu_run(chan, &ivr_demo, tmp); |