From 1280358f12562decbfed39ee3bf6d7d98e764d81 Mon Sep 17 00:00:00 2001 From: markster Date: Wed, 26 Mar 2003 21:09:56 +0000 Subject: Fix application of global DTMF when a peer exists git-svn-id: http://svn.digium.com/svn/asterisk/trunk@699 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_directory.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/app_directory.c') diff --git a/apps/app_directory.c b/apps/app_directory.c index 868badb02..00c19be64 100755 --- a/apps/app_directory.c +++ b/apps/app_directory.c @@ -130,6 +130,10 @@ static int do_directory(struct ast_channel *chan, struct ast_config *cfg, char * int found=0; char *start, *pos, *conv,*stringp=NULL; char fn[256]; + if (!context || !strlen(context)) { + ast_log(LOG_WARNING, "Directory must be called with an argument (context in which to interpret extensions)\n"); + return -1; + } memset(ext, 0, sizeof(ext)); ext[0] = digit; res = 0; -- cgit v1.2.3