[asterisk-dev] CLI development questions

Igor A. Goncharovsky igi-go at ya.ru
Fri Jul 13 11:52:47 CDT 2007


Hello, devs!

I have some ideas of improving CLI of asterisk, before begining write
code I want to talk about my ideas.

1. Improved SIP debug
First I want to make `sip debug` CLI command more powerful. The new
functions that can be implemented:
   a. 1-line debug
    This will work like 'sip history' command when instead of printing
all body of message will be printed only address, direction and type of
message. This can be useful when target is only to have overal info
about SIP dialogs. This can make much more debug info on one screen.
   b. debug defined set of SIP dialog type (REGISTER, NOTIFY and etc.)
     This will allow set dialog types that can be output for host. For
example when we debug INVITE we can exclude REGISTER and NOTIFY dialogs
to make debug more readable. 
   c. debug multiple hosts
     This will allow setting different debug settings for different
hosts. I do not know useful it or not.

2. Dump CLI commands
There are currently command for dump application help, I have seen talks
about dumping AGI and Manager commands. May be have sense to dump also
info about CLI commands to tex format?

3. Partial verbose of CLI
The verbose value set global for all operations. When asterisk have
several calls it is very hard to understand what is going on. Idea is in
setting verbose and debug also for single channel, like 'core set
verbose channel SIP....'



With best regards,
Igor Goncharovsky




More information about the asterisk-dev mailing list