]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Bring RTP back to Asterisk at the end of a native bridge no matter what.
authorJoshua Colp <jcolp@digium.com>
Tue, 12 Jun 2007 14:18:57 +0000 (14:18 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 12 Jun 2007 14:18:57 +0000 (14:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68921 65c4cc65-6c06-0410-ace0-fbb531ad65f3

rtp.c

diff --git a/rtp.c b/rtp.c
index 4f0c8da26140b664275035ada0126aad06ce50a0..81cddd0c739179d7766f4de3a3bda23f2feb8fd7 100644 (file)
--- 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;
 }