Summary: | ASTERISK-02261: [patch] show applications like <text> | ||
Reporter: | Tilghman Lesher (tilghman) | Labels: | |
Date Opened: | 2004-08-23 18:21:47 | Date Closed: | 2008-01-15 15:05:55.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 20040823__show_apps_like.diff.txt ( 1) 20040824__show_apps_like.diff.txt ( 2) 20040825__show_apps_like.diff.txt ( 3) 20040826__show_apps_like.diff.txt | |
Description: | The application list has gotten longer over time, so it's gotten more difficult to scan the list for a function that you want, especially if related functions don't start with the same prefix. This modification to the 'show applications' CLI function allows you to find just those applications with a similar substring. ****** ADDITIONAL INFORMATION ****** Example usage: CLI> show applications like voice CLI> show applications like group CLI> show applications like say | ||
Comments: | By: Olle Johansson (oej) 2004-08-24 01:48:55 Good idea. I was also wondering if we should add an application group variable so one could group apps like we have done on the wiki. This could be added to the application register call. By: Tilghman Lesher (tilghman) 2004-08-24 08:52:37 That's a whole other ball of wax, one which has its own pitfalls (crossover apps, for example). This is simply a case-insensitive substring match. Your idea would definitely be post-1.0, whereas this patch is nonintrusive enough to be considered for 1.0. By: Mark Spencer (markster) 2004-08-24 09:19:40 Should probably provide slightly more detailed documentation within the command synopsis for how the "like" works.... By: Mark Spencer (markster) 2004-08-24 09:20:24 What are the odds of having it search the descriptions too (or does that need a word other than "like")? By: Tilghman Lesher (tilghman) 2004-08-24 11:02:42 How does "describing" strike you? Patch uploaded. By: Tilghman Lesher (tilghman) 2004-08-25 09:56:46 Latest patch uses the builtin strcasestr (GNU libc only) or my own implementation, for other platforms. By: Mark Spencer (markster) 2004-08-26 23:21:35 Added to CVS, thanks! By: Digium Subversion (svnbot) 2008-01-15 15:05:55.000-0600 Repository: asterisk Revision: 3665 U trunk/include/asterisk/utils.h U trunk/pbx.c U trunk/utils.c ------------------------------------------------------------------------ r3665 | markster | 2008-01-15 15:05:55 -0600 (Tue, 15 Jan 2008) | 2 lines Merge "show applications" from corydon76 (bug ASTERISK-2261) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=3665 |