Press tab in fs_cli will get you started. Thank you, Brian Foster Project Manager/Owner's Rep. Davri Investments, Inc. O: 317-787-2686 x2102 M: 317-600-9753 E: bdfoster@davri.com Indianapolis, Indiana Sent from a mobile device. On Aug 7, 2013 5:57 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