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
This commit is contained in:
Mark Spencer
2003-03-26 21:09:56 +00:00
parent a8225de175
commit 08db8f131e
2 changed files with 4 additions and 2 deletions

View File

@@ -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;