Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] fs_cli help command


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
jason at jasonjgw.net
Guest





PostPosted: Thu Jan 01, 2009 2:23 am    Post subject: [Freeswitch-users] fs_cli help command Reply with quote

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





PostPosted: Thu Jan 01, 2009 3:25 am    Post subject: [Freeswitch-users] fs_cli help command Reply with quote

This patch implements the /help idea, but I'm still not sure that it's the
right solution.



_______________________________________________
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
intralanman at freeswi...
Guest





PostPosted: Fri Jan 02, 2009 10:43 am    Post subject: [Freeswitch-users] fs_cli help command Reply with quote

Jason White wrote:
Quote:
This patch implements the /help idea, but I'm still not sure that it's the
right solution.

jira would be a better place to put this

-Ray

_______________________________________________
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
msc at freeswitch.org
Guest





PostPosted: Fri Jan 02, 2009 11:33 am    Post subject: [Freeswitch-users] fs_cli help command Reply with quote

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:
Quote:
Jason White wrote:
Quote:
This patch implements the /help idea, but I'm still not sure that it's the
right solution.

jira would be a better place to put this

-Ray

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services