Do not access channel->fds directly, use ast_channel_set_fd if available

This commit is contained in:
MelwareDE 2012-03-02 22:36:08 +00:00
parent 29b662a4b6
commit 50df20964f
1 changed files with 5 additions and 0 deletions

View File

@ -2388,7 +2388,12 @@ static struct ast_channel *capi_new(struct capi_pvt *i, int state, const char *l
ast_channel_release(tmp);
return NULL;
}
#ifdef CC_AST_HAS_VERSION_1_6
ast_channel_set_fd(tmp, 0, i->readerfd);
#else
tmp->fds[0] = i->readerfd;
#endif
if (i->smoother != NULL) {
ast_smoother_reset(i->smoother, CAPI_MAX_B3_BLOCK_SIZE);