aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtp.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-30 18:27:13 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-30 18:27:13 +0000
commitb3fd402abbc18be40b9db1aa7ce06a5051cce16e (patch)
tree4c893a5d24cbc786f8f53bc600d9b06675d71875 /main/rtp.c
parentf7cca0f8bc9ae21de69a4cfe540db25dd00096a0 (diff)
Clarify why we are reading in a frame in the Packet2Packet bridge.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49072 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r--main/rtp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c
index 9237d8963..43a49830f 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -3070,6 +3070,7 @@ static enum ast_bridge_result bridge_p2p_loop(struct ast_channel *c0, struct ast
(c0->masq || c0->masqr || c1->masq || c1->masqr)) {
if (option_debug > 2)
ast_log(LOG_DEBUG, "p2p-rtp-bridge: Oooh, something is weird, backing out\n");
+ /* If a masquerade needs to happen we have to try to read in a frame so that it actually happens. Without this we risk being called again and going into a loop */
if ((c0->masq || c0->masqr) && (fr = ast_read(c0)))
ast_frfree(fr);
if ((c1->masq || c1->masqr) && (fr = ast_read(c1)))