From: Alec L Davis Date: Tue, 15 Dec 2009 02:29:50 +0000 (+0000) Subject: fixes escape to extensions 'o' and 'a', for digits '0' and '*' X-Git-Tag: 11.0.0-beta1~3729 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=90be4cf5ef1a21370640a8320ff588c2752eeeb3;p=thirdparty%2Fasterisk.git fixes escape to extensions 'o' and 'a', for digits '0' and '*' (closes issue #16437) Reported by: alecdavis Tested by: alecdavis Patch extension_o_a_fix.diff.txt uploaded by alecdavis (license 585) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@234893 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_directory.c b/apps/app_directory.c index deca039226..27ce632ae8 100644 --- a/apps/app_directory.c +++ b/apps/app_directory.c @@ -652,11 +652,11 @@ static int do_directory(struct ast_channel *chan, struct ast_config *vmcfg, stru char ext[10] = ""; if (digit == '0' && !goto_exten(chan, S_OR(dialcontext, "default"), "o")) { - return 0; + return digit; } if (digit == '*' && !goto_exten(chan, S_OR(dialcontext, "default"), "a")) { - return 0; + return digit; } ext[0] = digit;