mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-26 14:27:14 +00:00
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/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328205 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -650,12 +650,6 @@ static int start_monitor_exec(struct ast_channel *chan, const char *data)
|
|||||||
AST_APP_ARG(fname_base);
|
AST_APP_ARG(fname_base);
|
||||||
AST_APP_ARG(options);
|
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);
|
parse = ast_strdupa(data);
|
||||||
AST_STANDARD_APP_ARGS(args, parse);
|
AST_STANDARD_APP_ARGS(args, parse);
|
||||||
@@ -671,7 +665,9 @@ static int start_monitor_exec(struct ast_channel *chan, const char *data)
|
|||||||
stream_action &= ~X_REC_OUT;
|
stream_action &= ~X_REC_OUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
arg = strchr(args.format, ':');
|
if (args.format) {
|
||||||
|
arg = strchr(args.format, ':');
|
||||||
|
}
|
||||||
if (arg) {
|
if (arg) {
|
||||||
*arg++ = 0;
|
*arg++ = 0;
|
||||||
urlprefix = arg;
|
urlprefix = arg;
|
||||||
|
|||||||
Reference in New Issue
Block a user