[Freeswitch-users] freeDTM detect if line is in use

Brian Foster bdfoster at davri.com
Thu Aug 8 05:00:14 MSD 2013


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 at davri.com
Indianapolis, Indiana

Sent from a mobile device.
On Aug 7, 2013 5:57 PM, "Karl Schmidt" <karl at 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 at internal> ftdm_usage 1 1
> 0
> freeswitch at internal> eval ${ftdm_usage (1 1)}
> -ERR invalid span
>
> freeswitch at 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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130807/e128cccb/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list