Index: pbx.c =================================================================== RCS file: /usr/cvsroot/asterisk/pbx.c,v retrieving revision 1.146 diff -u -r1.146 pbx.c --- pbx.c 21 Aug 2004 18:55:39 -0000 1.146 +++ pbx.c 23 Aug 2004 23:16:34 -0000 @@ -2395,12 +2395,12 @@ " Describes a particular application.\n"; static char show_applications_help[] = -"Usage: show applications\n" +"Usage: show applications [like ]\n" " List applications which are currently available.\n"; static char show_dialplan_help[] = @@ -2547,12 +2547,28 @@ return RESULT_SUCCESS; } +static char *upper(char *orig, char *buf, int bufsize) +{ + int i; + memset(buf, 0, bufsize); + for (i=0; iname, - a->synopsis ? a->synopsis : ""); + + if ((like && (strstr(upper(a->name, u1, sizeof(u1)), upper(argv[3], u2, sizeof(u2))))) || (!like)) { + ast_cli(fd," %20s: %s\n", a->name, a->synopsis ? a->synopsis : ""); + } a = a->next; }