Re-listen after MGCP reload (bug #2061)
authorMark Spencer <markster@digium.com>
Fri, 16 Jul 2004 21:22:55 +0000 (21:22 +0000)
committerMark Spencer <markster@digium.com>
Fri, 16 Jul 2004 21:22:55 +0000 (21:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3450 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_mgcp.c

index df2ce37..61391a7 100755 (executable)
@@ -3199,6 +3199,9 @@ static void *do_monitor(void *data)
                        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 */