Index: apps/app_directory.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_directory.c,v retrieving revision 1.28 diff -u -r1.28 app_directory.c --- apps/app_directory.c 2 Oct 2004 00:58:31 -0000 1.28 +++ apps/app_directory.c 8 Dec 2004 18:38:58 -0000 @@ -227,6 +227,17 @@ "(context in which to interpret extensions)\n"); return -1; } + if (digit == '0') { + if (ast_exists_extension(chan,chan->context,"o",1,chan->cid.cid_num)) { + strncpy(chan->exten, "o", sizeof(chan->exten)-1); + chan->priority = 0; + return 0; + } else { + ast_log(LOG_WARNING, "Can't find extension 'o' in current context. " + "Not Exiting the Directory!\n"); + res = 0; + } + } memset(ext, 0, sizeof(ext)); ext[0] = digit; res = 0;