aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rtp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rtp.c b/rtp.c
index 6bb021822..cd7acc674 100644
--- a/rtp.c
+++ b/rtp.c
@@ -1789,6 +1789,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;
}