aboutsummaryrefslogtreecommitdiffstats
path: root/channels/sip
diff options
context:
space:
mode:
Diffstat (limited to 'channels/sip')
-rw-r--r--channels/sip/dialplan_functions.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/channels/sip/dialplan_functions.c b/channels/sip/dialplan_functions.c
index abf83e7d4..0d019c543 100644
--- a/channels/sip/dialplan_functions.c
+++ b/channels/sip/dialplan_functions.c
@@ -47,6 +47,13 @@ int sip_acf_channel_read(struct ast_channel *chan, const char *funcname, char *p
AST_APP_ARG(type);
AST_APP_ARG(field);
);
+
+ /* Check for zero arguments */
+ if (ast_strlen_zero(parse)) {
+ ast_log(LOG_ERROR, "Cannot call %s without arguments\n", funcname);
+ return -1;
+ }
+
AST_STANDARD_APP_ARGS(args, parse);
/* Sanity check */