Summary: | ASTERISK-05543: [request] [post-1.2] New CLI command: show unused extensions | ||
Reporter: | packetbell (packetbell) | Labels: | |
Date Opened: | 2005-11-09 20:23:14.000-0600 | Date Closed: | 2011-06-07 14:03:12 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | New CLI command to show (un)used extensions in the dialplan: CLI> extensions show unused 2xxx all extensions.conf ------------------------------------------ 2007 2008 2009 201x 202x 203x 204x 205x 206x 207x 208x 209x 21xx 22xx 23xx 24xx 25xx 26xx 26xx 27xx 28xx 29xx sip.conf ------------------------------------------------- 2007 2008 2009 201x 202x 203x 204x 205x 206x 207x 208x 209x 21xx 22xx 23xx 24xx 25xx 26xx 26xx 27xx 28xx 29xx iax.conf ------------------------------------------------- 2xxx skinny.conf ---------------------------------------------- 2xxx ****** ADDITIONAL INFORMATION ****** With large DID blocks, it can be hard to track usage in Asterisk. This command ultimately would parse extensions.conf, sip, iax and other config files. It's hard to make this fool-proof, but even basic 'exten =>' matching in extensions.conf, or mailbox matching can be tremendously helpful. Usage: extensions show [used|unused] [pattern] [technology] For example: CLI> extensions show used 2xxx SIP or CLI> extensions show used 2xxx VoiceMail | ||
Comments: | By: Olle Johansson (oej) 2005-11-10 01:34:51.000-0600 Please take request discussions to the mailing lists. By: Kevin P. Fleming (kpfleming) 2005-11-10 18:46:15.000-0600 There is no possible way that this could work, and any attempt to do so would likely cause vast volumes of output to be generated for most people's dialplans. |