aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-08 18:23:39 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-08 18:23:39 +0000
commita5f38dd107aca6ec9b93f019078a6164ca389074 (patch)
treedd6fff44dc0280811919ecfa7cea61219e0b5fe9 /main
parentda3190c76f91113455397cecd2a01940bc707e94 (diff)
Merged revisions 50032 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r50032 | file | 2007-01-08 13:21:31 -0500 (Mon, 08 Jan 2007) | 2 lines Disable the more intense packet2packet bridging until the bugs can be worked out. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50033 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/rtp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c
index 9794c3f22..4ba217203 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -90,6 +90,9 @@ static struct sockaddr_in rtcpdebugaddr; /*!< Debug RTCP packets to/from this ho
static int nochecksums;
#endif
+/* Uncomment this to enable more intense native bridging, but note: this is currently buggy */
+/* #define P2P_INTENSE */
+
/*!
* \brief Structure representing a RTP session.
*
@@ -2947,6 +2950,7 @@ static enum ast_bridge_result bridge_native_loop(struct ast_channel *c0, struct
}
/*! \brief P2P RTP Callback */
+#ifdef P2P_INTENSE
static int p2p_rtp_callback(int *id, int fd, short events, void *cbdata)
{
int res = 0, hdrlen = 12;
@@ -3003,6 +3007,12 @@ static int p2p_callback_enable(struct ast_channel *chan, struct ast_rtp *rtp, in
return 1;
}
+#else
+static int p2p_callback_enable(struct ast_channel *chan, struct ast_rtp *rtp, int *fds, int **iod)
+{
+ return 0;
+}
+#endif
/*! \brief Helper function to switch a channel and RTP stream out of callback mode */
static int p2p_callback_disable(struct ast_channel *chan, struct ast_rtp *rtp, int **iod)