View previous topic :: View next topic |
Author |
Message |
jason at jasonjgw.net Guest
|
Posted: Thu Jan 01, 2009 2:23 am Post subject: [Freeswitch-users] fs_cli help command |
|
|
I just noticed, as confirmed by reading the code, that now when the user types
"help" at the fs_cli prompt, the fs_cli help text is printed; but if what one
really wants is to execute the API help command, there doesn't seem to be any
way to do it.
process_command() gets the help command first, and there's no way to have it
passed to FreeSWITCH as an API command.
Here are a few options for solving this (I'm sure there are others):
1. Make the API command processing into a separate function, and have the
"help" command call it to execute "api help" after printing its own text. I
suppose one could also use a goto for this, but that could be accused of
inelegance.
2. Rename the fs_cli help command to "/help" - probably confusing to new
users!
3. Add a /help command that runs "api help".
I'm leaning toward option 3, but opinions may differ.
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
jason at jasonjgw.net Guest
|
|
Back to top |
|
|
intralanman at freeswi... Guest
|
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Fri Jan 02, 2009 11:33 am Post subject: [Freeswitch-users] fs_cli help command |
|
|
Good point, Ray. FYI, MikeJ fixed this already. "Help" will do a FreeSWITCH help and "/help" will do a fs_cli help.
-MC
On Fri, Jan 2, 2009 at 7:41 AM, Raymond Chandler <intralanman@freeswitch.org (intralanman@freeswitch.org)> wrote:
|
|
Back to top |
|
|
|