[asterisk-commits] alecdavis: trunk r234893 - /trunk/apps/app_directory.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 14 20:29:52 CST 2009


Author: alecdavis
Date: Mon Dec 14 20:29:50 2009
New Revision: 234893

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=234893
Log:
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)


Modified:
    trunk/apps/app_directory.c

Modified: trunk/apps/app_directory.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_directory.c?view=diff&rev=234893&r1=234892&r2=234893
==============================================================================
--- trunk/apps/app_directory.c (original)
+++ trunk/apps/app_directory.c Mon Dec 14 20:29:50 2009
@@ -652,11 +652,11 @@
 	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;




More information about the asterisk-commits mailing list