[asterisk-commits] tilghman: trunk r159853 -	/trunk/apps/app_readexten.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Sat Nov 29 12:33:18 CST 2008
    
    
  
Author: tilghman
Date: Sat Nov 29 12:33:18 2008
New Revision: 159853
URL: http://svn.digium.com/view/asterisk?view=rev&rev=159853
Log:
Allow the '#' sign to exist within an extension (inspired by issue #13330)
Modified:
    trunk/apps/app_readexten.c
Modified: trunk/apps/app_readexten.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_readexten.c?view=diff&rev=159853&r1=159852&r2=159853
==============================================================================
--- trunk/apps/app_readexten.c (original)
+++ trunk/apps/app_readexten.c Sat Nov 29 12:33:18 2008
@@ -224,12 +224,13 @@
 					status = "TIMEOUT";
 				}
 				break;
-			} else if (res == '#') {
-				break;
 			}
 
 			exten[x] = res;
 			if (!ast_matchmore_extension(chan, arglist.context, exten, 1 /* priority */, chan->cid.cid_num)) {
+				if (!ast_exists_extension(chan, arglist.context, exten, 1, chan->cid.cid_num) && res == '#') {
+					exten[x] = '\0';
+				}
 				break;
 			}
 		}
    
    
More information about the asterisk-commits
mailing list