<p dir="ltr">Press tab in fs_cli will get you started.</p>
<p dir="ltr">Thank you,</p>
<p dir="ltr">Brian Foster<br>
Project Manager/Owner&#39;s Rep.<br>
Davri Investments, Inc.<br>
O: 317-787-2686 x2102<br>
M: 317-600-9753<br>
E: <a href="mailto:bdfoster@davri.com">bdfoster@davri.com</a><br>
Indianapolis, Indiana</p>
<p dir="ltr">Sent from a mobile device.</p>
<div class="gmail_quote">On Aug 7, 2013 5:57 PM, &quot;Karl Schmidt&quot; &lt;<a href="mailto:karl@xtronics.com">karl@xtronics.com</a>&gt; wrote:<br type="attribution"><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>
&gt; You can execute CLI commands (which in FreeSWITCH lingo are called APIs) from the dialplan using<br>
&gt; dollar-sign syntax such as:<br>
&gt;<br>
&gt; &lt;condition field=&quot;${ftdm_usage(1 1)}&quot; expression=&quot;^0$&quot;&gt;<br>
&gt; &lt;/condition&gt;<br>
<br>
<br>
Testing from the cli:<br>
<br>
<br>
freeswitch@internal&gt; ftdm_usage 1 1<br>
0<br>
freeswitch@internal&gt; eval ${ftdm_usage (1 1)}<br>
-ERR invalid span<br>
<br>
freeswitch@internal&gt; 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&#39;m getting things going - finding the learning curve steep in spite of having read all 3 books, but<br>
I&#39;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>