diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-08 21:44:58 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-08 21:44:58 +0000 |
commit | a4803d15a244be2cbd7f852c4fcefe71f5ffaabc (patch) | |
tree | d42170fbe8a83884d32f1ed09f238da151554071 /channels/chan_nbs.c | |
parent | 21b3ffbe757d2c93610ab1c069116399ef4fdaee (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: http://svn.digium.com/svn/asterisk/trunk@78683 f38db490-d61c-443f-a65b-d21fe96a405b
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; |