[asterisk-commits] file: trunk r49072 - /trunk/main/rtp.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Dec 30 11:27:14 MST 2006


Author: file
Date: Sat Dec 30 12:27:13 2006
New Revision: 49072

URL: http://svn.digium.com/view/asterisk?view=rev&rev=49072
Log:
Clarify why we are reading in a frame in the Packet2Packet bridge.

Modified:
    trunk/main/rtp.c

Modified: trunk/main/rtp.c
URL: http://svn.digium.com/view/asterisk/trunk/main/rtp.c?view=diff&rev=49072&r1=49071&r2=49072
==============================================================================
--- trunk/main/rtp.c (original)
+++ trunk/main/rtp.c Sat Dec 30 12:27:13 2006
@@ -3070,6 +3070,7 @@
 		    (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)))



More information about the asterisk-commits mailing list