diff options
author | Mark Spencer <markster@digium.com> | 2003-03-26 21:09:56 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-03-26 21:09:56 +0000 |
commit | 08db8f131e64dfda6b9dd7137ea0c909c5ecf522 (patch) | |
tree | abc800809216096a1687aa50e16c3b8a9207868c /apps/app_directory.c | |
parent | a8225de17599f7e953d3adc7e8c6f226f3edd1a5 (diff) |
Fix application of global DTMF when a peer exists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@699 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_directory.c')
-rwxr-xr-x | apps/app_directory.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |