aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_h323.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-09 18:05:40 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-09 18:05:40 +0000
commit57edc654e19db8758ec564fc1b825d86316f849a (patch)
tree2250b12bd1580022f0506fe777a9adfe065d9df5 /channels/chan_h323.c
parent96bf7bb27acd35cae31e88acf717d6b832f51fc4 (diff)
Enable enough RTP bridging to allow P2P to work.
(closes issue #11901) Reported by: pj git-svn-id: http://svn.digium.com/svn/asterisk/trunk@113840 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_h323.c')
-rw-r--r--channels/chan_h323.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c
index 10ef7e133..140c06fa3 100644
--- a/channels/chan_h323.c
+++ b/channels/chan_h323.c
@@ -254,10 +254,7 @@ static const struct ast_channel_tech oh323_tech = {
.write = oh323_write,
.indicate = oh323_indicate,
.fixup = oh323_fixup,
- /* disable, for now */
-#if 0
.bridge = ast_rtp_bridge,
-#endif
};
static const char* redirectingreason2str(int redirectingreason)
@@ -3092,10 +3089,12 @@ static enum ast_rtp_get_result oh323_get_rtp_peer(struct ast_channel *chan, stru
return AST_RTP_GET_FAILED;
ast_mutex_lock(&pvt->lock);
- if (pvt->rtp && pvt->options.bridge) {
- *rtp = pvt->rtp;
+ *rtp = pvt->rtp;
+#if 0
+ if (pvt->options.bridge) {
res = AST_RTP_TRY_NATIVE;
}
+#endif
ast_mutex_unlock(&pvt->lock);
return res;