<div dir="ltr"><div>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.<br>
<br></div>-MC<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 7, 2013 at 2:48 PM, Karl Schmidt <span dir="ltr"><<a href="mailto:karl@xtronics.com" target="_blank">karl@xtronics.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 08/07/2013 11:18 AM, Moises Silva wrote:<br>
> You can execute CLI commands (which in FreeSWITCH lingo are called APIs) from the dialplan using<br>
> dollar-sign syntax such as:<br>
><br>
> <condition field="${ftdm_usage(1 1)}" expression="^0$"><br>
> </condition><br>
<br>
<br>
Testing from the cli:<br>
<br>
<br>
freeswitch@internal> ftdm_usage 1 1<br>
0<br>
freeswitch@internal> eval ${ftdm_usage (1 1)}<br>
-ERR invalid span<br>
<br>
freeswitch@internal> eval ${ftdm_usage 1 1}<br>
0<br>
<br>
I think we need to drop the parenthesis?<br>
<br>
Added this to the wiki for the next guy..<br>
<br>
<br>
<br>
Also, is there a command to list all of the available commands from the cli? Something like ls<br>
/usr/bin would do for us in bash.<br>
<br>
Or even a place in the source code that would list all the ftdi commands?<br>
<br>
I'm getting things going - finding the learning curve steep in spite of having read all 3 books, but<br>
I'm getting old..<br>
<br>
One thing that would be very useful would be some dialplan log command that would dump all the<br>
available variables to the cli - so you can at least know what you have to work with.<br>
<br>
<br>
--------------------------------------------------------------------------------<br>
Karl Schmidt EMail <a href="mailto:Karl@xtronics.com">Karl@xtronics.com</a><br>
Transtronics, Inc. WEB <a href="http://secure.transtronics.com" target="_blank">http://secure.transtronics.com</a><br>
3209 West 9th Street Ph <a href="tel:%28785%29%20841-3089" value="+17858413089">(785) 841-3089</a><br>
Lawrence, KS 66049 FAX <a href="tel:%28785%29%20841-0434" value="+17858410434">(785) 841-0434</a><br>
<br>
They can print money; they cannot print wealth.<br>
Wealth only comes from productive behavior.<br>
Printing money only destroys the ability of wealth<br>
producers to produce more wealth. KPS<br>
--------------------------------------------------------------------------------<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</div>