]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 234893 via svnmerge from
authorAlec L Davis <sivad.a@paradise.net.nz>
Tue, 15 Dec 2009 02:42:33 +0000 (02:42 +0000)
committerAlec L Davis <sivad.a@paradise.net.nz>
Tue, 15 Dec 2009 02:42:33 +0000 (02:42 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
  r234893 | alecdavis | 2009-12-15 15:29:50 +1300 (Tue, 15 Dec 2009) | 9 lines

  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/branches/1.6.1@234895 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_directory.c

index 9e51bf2d4795840583dbd3419698eda7d263b340..a3dda4f17e099f15a199649cdba6ed19906d1f28 100644 (file)
@@ -578,11 +578,11 @@ static int do_directory(struct ast_channel *chan, struct ast_config *vmcfg, stru
        }
 
        if (digit == '0' && !goto_exten(chan, dialcontext, "o")) {
-               return 0;
+               return digit;
        }
 
        if (digit == '*' && !goto_exten(chan, dialcontext, "a")) {
-               return 0;
+               return digit;
        }
 
        ext[0] = digit;