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

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Sep 1 11:57:11 MST 2006


Author: file
Date: Fri Sep  1 13:57:10 2006
New Revision: 41735

URL: http://svn.digium.com/view/asterisk?rev=41735&view=rev
Log:
Unbridge the RTP streams at the correct place

Modified:
    trunk/main/rtp.c

Modified: trunk/main/rtp.c
URL: http://svn.digium.com/view/asterisk/trunk/main/rtp.c?rev=41735&r1=41734&r2=41735&view=diff
==============================================================================
--- trunk/main/rtp.c (original)
+++ trunk/main/rtp.c Fri Sep  1 13:57:10 2006
@@ -159,7 +159,7 @@
 	int rtp_lookup_code_cache_code;
 	int rtp_lookup_code_cache_result;
 	struct ast_rtcp *rtcp;
-	struct ast_rtp *bridged;        /*!< Who we are Packet briged to */
+	struct ast_rtp *bridged;        /*!< Who we are Packet bridged to */
 };
 
 /* Forward declarations */
@@ -2967,13 +2967,6 @@
 			*rc = who;
 			if (option_debug)
 				ast_log(LOG_DEBUG, "Oooh, got a %s\n", fr ? "digit" : "hangup");
-			/* Break out of the bridge */
-			p0->bridged = NULL;
-			p1->bridged = NULL;
-			if (vp0) {
-				vp0->bridged = NULL;
-				vp1->bridged = NULL;
-			}
 			res = AST_BRIDGE_COMPLETE;
 			break;
 		} else if ((fr->frametype == AST_FRAME_CONTROL) && !(flags & AST_BRIDGE_IGNORE_SIGS)) {
@@ -3021,6 +3014,14 @@
 	if (p1_callback)
 		p1_callback = p2p_callback_disable(c1, p1, &p1_fds[0], &p1_iod[0]);
 
+	/* Break out of the direct bridge */
+	p0->bridged = NULL;
+	p1->bridged = NULL;
+	if (vp0) {
+		vp0->bridged = NULL;
+		vp1->bridged = NULL;
+	}
+
 	return res;
 }
 



More information about the asterisk-commits mailing list