[Asterisk-cvs] asterisk/channels chan_mgcp.c,1.77,1.78

markster at lists.digium.com markster at lists.digium.com
Fri Sep 17 16:04:36 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv7961/channels

Modified Files:
	chan_mgcp.c 
Log Message:
If singlepath=yes, don't send multiple RTP streams during transfer


Index: chan_mgcp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -d -r1.77 -r1.78
--- chan_mgcp.c	13 Sep 2004 21:34:47 -0000	1.77
+++ chan_mgcp.c	17 Sep 2004 20:08:40 -0000	1.78
@@ -3,9 +3,9 @@
  *
  * Implementation of Media Gateway Control Protocol
  * 
- * Copyright (C) 1999, Mark Spencer
+ * Copyright (C) 1999-2004, Digium, Inc.
  *
- * Mark Spencer <markster at linux-support.net>
+ * Mark Spencer <markster at digium.com>
  *
  * This program is free software, distributed under the terms of
  * the GNU General Public License
@@ -1137,8 +1137,10 @@
 	}
 	if (sub) {
 		ast_mutex_lock(&sub->lock);
-		if (sub->rtp) {
-			res =  ast_rtp_write(sub->rtp, frame);
+		if ((sub->parent->sub == sub) || !sub->parent->singlepath) {
+			if (sub->rtp) {
+				res =  ast_rtp_write(sub->rtp, frame);
+			}
 		}
 		ast_mutex_unlock(&sub->lock);
 	}
@@ -3674,6 +3676,7 @@
                     e->callreturn = callreturn;
                     e->cancallforward = cancallforward;
                     e->canreinvite = canreinvite;
+                    e->singlepath = singlepath;
                     e->callwaiting = callwaiting;
             		e->slowsequence = slowsequence;
                     e->transfer = transfer;




More information about the svn-commits mailing list