[asterisk-users] Improving CLI Help - was [Re: 1.6.2 No "soft hangup"?]

sean darcy seandarcy2 at gmail.com
Wed Apr 21 20:26:53 CDT 2010


Olle E. Johansson wrote:
>> Further to Steve Edward's comment, I think things would be more
>> obvious if the help system was improved slightly, for instance:
>>
>> If you were trying to figure out the commands dealing with peers, you
>> would be able to type:
>> *CLI> help peer
>> No "peer" command found.  Possible alternatives:
>>                iax2 show peer Show details on specific IAX peer
>>               iax2 show peers List defined IAX peers
>>                sip show peers List defined SIP peers
>>                 sip show peer Show details on specific SIP peer
>>          (and so on, maybe using the "[More]" option to help it be readable)
>>
>> In this case, if I could use the "help" system to search on all
>> occurrences of the word "hangup" in the available commands, I would
>> probably have found it myself instead of bothering the list.
> 
> THat's a very good idea. Thank you! 
> 
> Now we need someone that codes it :-)
> 
> /O
Well I'm certainly not the one who could code it, but is there any way 
to simply "grep" all the help. So, for instance, if you did "help 
hangup" you got:

hangup request <no description available>

which you now get,

followed by all the commands that have "hangup" in them, including their 
descriptions. For instance:

But see:
channel request hangup <channel>
         Request that a channel be hung up. The hangup takes effect
         the next time the driver reads or writes from the channel
etc
etc

sean




More information about the asterisk-users mailing list