diff options
author | Joshua Colp <jcolp@digium.com> | 2007-08-08 21:44:58 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-08-08 21:44:58 +0000 |
commit | 22114b509dc93cd3f19610362bf3757db2c04787 (patch) | |
tree | d42170fbe8a83884d32f1ed09f238da151554071 /channels/chan_nbs.c | |
parent | 063c747f3a7120dca404ca845877019dc8c2a62d (diff) |
Add support for using epoll instead of poll. This should increase scalability and is done in such a way that we should be able to add support for other poll() replacements.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_nbs.c')
-rw-r--r-- | channels/chan_nbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_nbs.c b/channels/chan_nbs.c index 1c342c6fd..d2718b3de 100644 --- a/channels/chan_nbs.c +++ b/channels/chan_nbs.c @@ -232,7 +232,7 @@ static struct ast_channel *nbs_new(struct nbs_pvt *i, int state) tmp = ast_channel_alloc(1, state, 0, 0, "", "s", context, 0, "NBS/%s", i->stream); if (tmp) { tmp->tech = &nbs_tech; - tmp->fds[0] = nbs_fd(i->nbs); + ast_channel_set_fd(tmp, 0, nbs_fd(i->nbs)); tmp->nativeformats = prefformat; tmp->rawreadformat = prefformat; tmp->rawwriteformat = prefformat; |