[asterisk-commits] tzafrir: branch tzafrir/monitor-rtp r222221 - /team/tzafrir/monitor-rtp/res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Oct 6 06:28:50 CDT 2009
Author: tzafrir
Date: Tue Oct 6 06:28:48 2009
New Revision: 222221
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=222221
Log:
CODING-GUIDELINES fixes
Modified:
team/tzafrir/monitor-rtp/res/res_monitor.c
Modified: team/tzafrir/monitor-rtp/res/res_monitor.c
URL: http://svnview.digium.com/svn/asterisk/team/tzafrir/monitor-rtp/res/res_monitor.c?view=diff&rev=222221&r1=222220&r2=222221
==============================================================================
--- team/tzafrir/monitor-rtp/res/res_monitor.c (original)
+++ team/tzafrir/monitor-rtp/res/res_monitor.c Tue Oct 6 06:28:48 2009
@@ -1327,8 +1327,9 @@
static int load_module(void)
{
- if (reload_config(CHANNEL_MODULE_LOAD, 1))
+ if (reload_config(CHANNEL_MODULE_LOAD, 1)) {
return AST_MODULE_LOAD_DECLINE;
+ }
if (rtp_server_name[0] != '\0') {
if ((sip_socket = sip_stream(rtp_server_name, 5060, &sip_server_addr)) < 0) {
ast_log(LOG_WARNING,
@@ -1363,8 +1364,9 @@
ast_manager_unregister("PauseMonitor");
ast_manager_unregister("UnpauseMonitor");
- if (sip_socket != -1)
+ if (sip_socket != -1) {
close(sip_socket);
+ }
return 0;
}
More information about the asterisk-commits
mailing list