In fs_cli use "/help" to show fs_cli commands. Use "help" to show FreeSWITCH commands. Like Brian said, if you just press <tab> you'll get a quick list of all the tab-complete-enabled commands. Using the "help" command is good because it will give you a quick description of each command.

-MC


On Wed, Aug 7, 2013 at 2:48 PM, Karl Schmidt <karl@xtronics.com> wrote:
On 08/07/2013 11:18 AM, Moises Silva wrote:
> You can execute CLI commands (which in FreeSWITCH lingo are called APIs) from the dialplan using
> dollar-sign syntax such as:
>
> <condition field="${ftdm_usage(1 1)}" expression="^0$">
> </condition>


Testing from the cli:


freeswitch@internal> ftdm_usage 1 1
0
freeswitch@internal> eval ${ftdm_usage (1 1)}
-ERR invalid span

freeswitch@internal> eval ${ftdm_usage 1 1}
0

I think we need to drop the parenthesis?

Added this to the wiki for the next guy..



Also, is there a command to list all of the available commands from the cli? Something like ls
/usr/bin would do for us in bash.

Or even a place in the source code that would list all the ftdi commands?

I'm getting things going - finding the learning curve steep in spite of having read all 3 books, but
I'm getting old..

One thing that would be very useful would be some dialplan log command that would dump all the
available variables to the cli - so you can at least know what you have to work with.


--------------------------------------------------------------------------------
Karl Schmidt                                  EMail Karl@xtronics.com
Transtronics, Inc.                              WEB http://secure.transtronics.com
3209 West 9th Street                             Ph (785) 841-3089
Lawrence, KS 66049                              FAX (785) 841-0434

They can print money; they cannot print wealth.
Wealth only comes from productive behavior.
Printing money only destroys the ability of wealth
producers to produce more wealth. KPS
--------------------------------------------------------------------------------

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

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



--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org