From a4803d15a244be2cbd7f852c4fcefe71f5ffaabc Mon Sep 17 00:00:00 2001 From: file Date: Wed, 8 Aug 2007 21:44:58 +0000 Subject: 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 --- channels/chan_gtalk.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'channels/chan_gtalk.c') diff --git a/channels/chan_gtalk.c b/channels/chan_gtalk.c index bd53d7ae0..cbdaa076f 100644 --- a/channels/chan_gtalk.c +++ b/channels/chan_gtalk.c @@ -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; -- cgit v1.2.3