mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Only switch the second alert fd (which is RTCP) to callback mode if it is in use
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2807,7 +2807,8 @@ static int p2p_callback_enable(struct ast_channel *chan, struct ast_rtp *rtp, in
|
||||
|
||||
/* Now, fire up callback mode */
|
||||
iod[0] = ast_io_add(rtp->io, fds[0], p2p_rtp_callback, AST_IO_IN, rtp);
|
||||
iod[1] = ast_io_add(rtp->io, fds[1], p2p_rtp_callback, AST_IO_IN, rtp);
|
||||
if (fds[1] >= 0)
|
||||
iod[1] = ast_io_add(rtp->io, fds[1], p2p_rtp_callback, AST_IO_IN, rtp);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user