[Asterisk-cvs] asterisk/channels chan_mgcp.c,1.59,1.60

markster at lists.digium.com markster at lists.digium.com
Fri Jul 16 17:36:53 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory localhost.localdomain:/tmp/cvs-serv13188/channels

Modified Files:
	chan_mgcp.c 
Log Message:
Re-listen after MGCP reload (bug #2061)


Index: chan_mgcp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- chan_mgcp.c	16 Jul 2004 04:40:54 -0000	1.59
+++ chan_mgcp.c	16 Jul 2004 21:22:55 -0000	1.60
@@ -3199,6 +3199,9 @@
 			if (option_verbose > 0)
 				ast_verbose(VERBOSE_PREFIX_1 "Reloading MGCP\n");
 			mgcp_do_reload();
+			/* Add an I/O event to our UDP socket */
+			if (mgcpsock > -1) 
+				mgcpsock_read_id = ast_io_add(io, mgcpsock, mgcpsock_read, AST_IO_IN, NULL);
 		}
 
         /* Check for interfaces needing to be killed */




More information about the svn-commits mailing list