[asterisk-commits] russell: branch 1.4 r85686 - /branches/1.4/main/say.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 15 15:21:28 CDT 2007


Author: russell
Date: Mon Oct 15 15:21:27 2007
New Revision: 85686

URL: http://svn.digium.com/view/asterisk?view=rev&rev=85686
Log:
Add a small fix for the tw version of saying dates.

(closes issue #7827)
Reported by: sharkey
Patches: 
      say.nits.patch uploaded by sharkey (license 172)

Modified:
    branches/1.4/main/say.c

Modified: branches/1.4/main/say.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/say.c?view=diff&rev=85686&r1=85685&r2=85686
==============================================================================
--- branches/1.4/main/say.c (original)
+++ branches/1.4/main/say.c Mon Oct 15 15:21:27 2007
@@ -5226,13 +5226,9 @@
 			case 'B':
 			case 'b':
 			case 'h':
+			case 'm':
 				/* January - December */
 				snprintf(nextmsg,sizeof(nextmsg), "digits/mon-%d", tm.tm_mon);
-				res = wait_file(chan,ints,nextmsg,lang);
-				break;
-			case 'm':
-				/* First - Twelfth */
-				snprintf(nextmsg,sizeof(nextmsg), "digits/h-%d", tm.tm_mon +1);
 				res = wait_file(chan,ints,nextmsg,lang);
 				break;
 			case 'd':
@@ -5249,7 +5245,7 @@
 						res = wait_file(chan,ints,nextmsg,lang);
 					}
 				}
-                if(!res) res = wait_file(chan,ints,"ri",lang);
+				if(!res) res = wait_file(chan,ints,"digits/day",lang);
 				break;
 			case 'Y':
 				/* Year */




More information about the asterisk-commits mailing list