diff options
author | Joshua Colp <jcolp@digium.com> | 2006-12-30 18:27:13 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2006-12-30 18:27:13 +0000 |
commit | e2a50de88fd9d95dab91e663475f66b2e44013f3 (patch) | |
tree | 4c893a5d24cbc786f8f53bc600d9b06675d71875 /main/rtp.c | |
parent | 0d058abaf70539d1cde56e33c2b6efd322afb06f (diff) |
Clarify why we are reading in a frame in the Packet2Packet bridge.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/rtp.c')
-rw-r--r-- | main/rtp.c | 1 |
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))) |