[Asterisk-cvs] asterisk/channels chan_mgcp.c,1.37,1.38

markster at lists.digium.com markster at lists.digium.com
Fri Mar 19 18:01:46 CST 2004


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

Modified Files:
	chan_mgcp.c 
Log Message:
Major MGCP enhancements (*very* big thank you to serkan and Sentito) (bug #1114)


Index: chan_mgcp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- chan_mgcp.c	15 Mar 2004 09:14:16 -0000	1.37
+++ chan_mgcp.c	19 Mar 2004 22:57:08 -0000	1.38
@@ -11,6 +11,26 @@
  * the GNU General Public License
  */
 
+/* SC: Changes
+   -- packet retransmit mechanism (simplistic)
+   -- per endpoint/subchannel mgcp command sequencing. 
+   -- better transaction handling
+   -- fixed some mem leaks
+   -- run-time configuration reload 
+   -- distinguish CA and GW default MGCP ports
+   -- prevent clipping of DTMF tones in an established call
[...1726 lines suppressed...]
+
+static int mgcp_reload(int fd, int argc, char *argv[])
+{
+	ast_mutex_lock(&mgcp_reload_lock);
+	if (mgcp_reloading) {
+		ast_verbose("Previous mgcp reload not yet done\n");
+	} else
+		mgcp_reloading = 1;
+	ast_mutex_unlock(&mgcp_reload_lock);
+	restart_monitor();
+	return 0;
+}
+
+int reload(void)
+{
+    mgcp_reload(0, 0, NULL);
+    return 0;
 }
 
 int unload_module()




More information about the svn-commits mailing list