diff options
Diffstat (limited to 'apps/app_flash.c')
-rw-r--r-- | apps/app_flash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_flash.c b/apps/app_flash.c index 1ee834bbf..dbbad3332 100644 --- a/apps/app_flash.c +++ b/apps/app_flash.c @@ -85,15 +85,15 @@ static int flash_exec(struct ast_channel *chan, const char *data) } memset(&dahdip, 0, sizeof(dahdip)); - res = ioctl(chan->fds[0], DAHDI_GET_PARAMS, &dahdip); + res = ioctl(ast_channel_fd(chan, 0), DAHDI_GET_PARAMS, &dahdip); if (!res) { if (dahdip.sigtype & __DAHDI_SIG_FXS) { x = DAHDI_FLASH; - res = ioctl(chan->fds[0], DAHDI_HOOK, &x); + res = ioctl(ast_channel_fd(chan, 0), DAHDI_HOOK, &x); if (!res || (errno == EINPROGRESS)) { if (res) { /* Wait for the event to finish */ - dahdi_wait_event(chan->fds[0]); + dahdi_wait_event(ast_channel_fd(chan, 0)); } res = ast_safe_sleep(chan, 1000); ast_verb(3, "Flashed channel %s\n", ast_channel_name(chan)); |