[asterisk-commits] jrose: branch 1.8 r328205 - /branches/1.8/res/res_monitor.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 14 14:21:07 CDT 2011


Author: jrose
Date: Thu Jul 14 14:21:02 2011
New Revision: 328205

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=328205
Log:
Monitor application arguments requirements fixed.

Monitor was requiring options in spite of no individual option on Monitor being required.

Review: https://reviewboard.asterisk.org/r/1320/

Modified:
    branches/1.8/res/res_monitor.c

Modified: branches/1.8/res/res_monitor.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/res/res_monitor.c?view=diff&rev=328205&r1=328204&r2=328205
==============================================================================
--- branches/1.8/res/res_monitor.c (original)
+++ branches/1.8/res/res_monitor.c Thu Jul 14 14:21:02 2011
@@ -650,12 +650,6 @@
 		AST_APP_ARG(fname_base);
 		AST_APP_ARG(options);
 	);
-	
-	/* Parse arguments. */
-	if (ast_strlen_zero(data)) {
-		ast_log(LOG_ERROR, "Monitor requires an argument\n");
-		return 0;
-	}
 
 	parse = ast_strdupa(data);
 	AST_STANDARD_APP_ARGS(args, parse);
@@ -671,7 +665,9 @@
 			stream_action &= ~X_REC_OUT;
 	}
 
-	arg = strchr(args.format, ':');
+	if (args.format) {
+		arg = strchr(args.format, ':');
+	}
 	if (arg) {
 		*arg++ = 0;
 		urlprefix = arg;




More information about the asterisk-commits mailing list