diff options
Diffstat (limited to 'apps/app_dahdibarge.c')
-rw-r--r-- | apps/app_dahdibarge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_dahdibarge.c b/apps/app_dahdibarge.c index 5384c6814..4fde46687 100644 --- a/apps/app_dahdibarge.c +++ b/apps/app_dahdibarge.c @@ -127,7 +127,7 @@ static int conf_run(struct ast_channel *chan, int confno, int confflags) goto outrun; } ast_indicate(chan, -1); - retrydahdi = strcasecmp(chan->tech->type, "DAHDI"); + retrydahdi = strcasecmp(ast_channel_tech(chan)->type, "DAHDI"); dahdiretry: origfd = chan->fds[0]; if (retrydahdi) { @@ -277,7 +277,7 @@ static int conf_exec(struct ast_channel *chan, const char *data) } } - if (chan->_state != AST_STATE_UP) + if (ast_channel_state(chan) != AST_STATE_UP) ast_answer(chan); while(!confno && (++retrycnt < 4)) { |