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_sip.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_sip.c')
-rw-r--r-- | channels/chan_sip.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index f6681709e..8800a60ba 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4553,18 +4553,18 @@ static struct ast_channel *sip_new(struct sip_pvt *i, int state, const char *tit ast_dsp_digitmode(i->vad, DSP_DIGITMODE_DTMF | DSP_DIGITMODE_RELAXDTMF); } if (i->rtp) { - 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 (needvideo && i->vrtp) { - 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 (needtext && i->trtp) { - tmp->fds[4] = ast_rtp_fd(i->trtp); + ast_channel_set_fd(tmp, 4, ast_rtp_fd(i->trtp)); } if (i->udptl) { - tmp->fds[5] = ast_udptl_fd(i->udptl); + ast_channel_set_fd(tmp, 5, ast_udptl_fd(i->udptl)); } if (state == AST_STATE_RING) tmp->rings = 1; |