Index: pbx.c =================================================================== RCS file: /usr/cvsroot/asterisk/pbx.c,v retrieving revision 1.293 diff -u -r1.293 pbx.c --- pbx.c 26 Oct 2005 23:11:36 -0000 1.293 +++ pbx.c 3 Nov 2005 17:25:10 -0000 @@ -1194,15 +1194,21 @@ /* Maximum number of characters added by terminal coloring is 22 */ char infotitle[64 + AST_MAX_APP + 22], syntitle[40], destitle[40]; char info[64 + AST_MAX_APP], *synopsis = NULL, *description = NULL; - char stxtitle[40], *syntax = NULL; + char stxtitle[40], *syntax = NULL, *name; int synopsis_size, description_size, syntax_size; if (argc < 3) return RESULT_SHOWUSAGE; if (!(acf = ast_custom_function_find(argv[2]))) { - ast_cli(fd, "No function by that name registered.\n"); - return RESULT_FAILURE; + /* Uppercase the name and check again */ + for (name = argv[2]; *name; name++) { + *name = toupper(*name); + } + if (!(acf = ast_custom_function_find(argv[2]))) { + ast_cli(fd, "No function by that name registered.\n"); + return RESULT_FAILURE; + } } if (acf->synopsis)