diff options
Diffstat (limited to 'apps/app_playback.c')
-rw-r--r-- | apps/app_playback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_playback.c b/apps/app_playback.c index e9d4d8752..18d4c8eb5 100644 --- a/apps/app_playback.c +++ b/apps/app_playback.c @@ -454,7 +454,7 @@ static int playback_exec(struct ast_channel *chan, const char *data) if (strcasestr(args.options, "noanswer")) option_noanswer = 1; } - if (chan->_state != AST_STATE_UP) { + if (ast_channel_state(chan) != AST_STATE_UP) { if (option_skip) { /* At the user's option, skip if the line is not up */ goto done; |