mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
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
This commit is contained in:
@@ -934,13 +934,13 @@ static struct ast_channel *gtalk_new(struct gtalk *client, struct gtalk_pvt *i,
|
||||
|
||||
if (i->rtp) {
|
||||
ast_rtp_setstun(i->rtp, 1);
|
||||
tmp->fds[0] = ast_rtp_fd(i->rtp);
|
||||
tmp->fds[1] = ast_rtcp_fd(i->rtp);
|
||||
ast_channel_set_fd(tmp, 0, ast_rtp_fd(i->rtp));
|
||||
ast_channel_set_fd(tmp, 1, ast_rtcp_fd(i->rtp));
|
||||
}
|
||||
if (i->vrtp) {
|
||||
ast_rtp_setstun(i->rtp, 1);
|
||||
tmp->fds[2] = ast_rtp_fd(i->vrtp);
|
||||
tmp->fds[3] = ast_rtcp_fd(i->vrtp);
|
||||
ast_channel_set_fd(tmp, 2, ast_rtp_fd(i->vrtp));
|
||||
ast_channel_set_fd(tmp, 3, ast_rtcp_fd(i->vrtp));
|
||||
}
|
||||
if (state == AST_STATE_RING)
|
||||
tmp->rings = 1;
|
||||
|
Reference in New Issue
Block a user