aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-12 14:18:57 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-12 14:18:57 +0000
commit19ad1a10baf36fcf9c88f24476d5c80d050be161 (patch)
tree4a5897a845ebbe4a162cefd257c3870cbb1a5c82 /rtp.c
parentbbe710c4ca99ed5757225fc1b2add02409954099 (diff)
Bring RTP back to Asterisk at the end of a native bridge no matter what.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68921 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rw-r--r--rtp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rtp.c b/rtp.c
index 4f0c8da26..81cddd0c7 100644
--- a/rtp.c
+++ b/rtp.c
@@ -1768,6 +1768,12 @@ enum ast_bridge_result ast_rtp_bridge(struct ast_channel *c0, struct ast_channel
cs[1] = cs[2];
}
+
+ if (pr0->set_rtp_peer(c0, NULL, NULL, 0, 0))
+ ast_log(LOG_WARNING, "Channel '%s' failed to break RTP bridge\n", c0->name);
+ if (pr1->set_rtp_peer(c1, NULL, NULL, 0, 0))
+ ast_log(LOG_WARNING, "Channel '%s' failed to break RTP bridge\n", c1->name);
+
return AST_BRIDGE_FAILED;
}