summaryrefslogtreecommitdiff
path: root/apps/app_fax.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_fax.c')
-rw-r--r--apps/app_fax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_fax.c b/apps/app_fax.c
index 3183a5638..2c2960e78 100644
--- a/apps/app_fax.c
+++ b/apps/app_fax.c
@@ -797,7 +797,7 @@ static int transmit(fax_session *s)
pbx_builtin_setvar_helper(s->chan, "FAXRESOLUTION", NULL);
pbx_builtin_setvar_helper(s->chan, "FAXBITRATE", NULL);
- if (s->chan->_state != AST_STATE_UP) {
+ if (ast_channel_state(s->chan) != AST_STATE_UP) {
/* Shouldn't need this, but checking to see if channel is already answered
* Theoretically asterisk should already have answered before running the app */
res = ast_answer(s->chan);