--- asterisk-1.2.5/pbx.c.old 2006-03-25 22:11:14.325293248 +0900 +++ asterisk-1.2.5/pbx.c 2006-03-25 22:12:06.397377088 +0900 @@ -4043,7 +4043,7 @@ } if (c) { e = 0; - while((e < 12) && strcasecmp(mon, months[e])) e++; + while((e < 12) && strcasecmp(c, months[e])) e++; if (e >= 12) { ast_log(LOG_WARNING, "Invalid month '%s', assuming none\n", c); return 0;