how can run fs_cli commands in lua script?
hi all, i want to run the following command in lua script that is located on (/usr/local/freeswitch/scripts/lua1.lua) sofia_count_reg 1001-Q0ErXNX1RuYwPdctyuGeiA@public.gmane.org i ned to use the output of the above command how can i do that?
What is the calling process? -MC On Wed, Jun 27, 2012 at 12:26 PM, Samira Mh <saami_mh@ymail.com> wrote:
hi all, i want to run the following command in lua script that is located on (/usr/local/freeswitch/scripts/lua1.lua) sofia_count_reg 1001-Q0ErXNX1RuYwPdctyuGeiA@public.gmane.org i ned to use the output of the above command how can i do that?
http://wiki.freeswitch.org/wiki/Lua#For_making_API_calls or The page links to: http://wiki.freeswitch.org/wiki/Make_API_calls_directly_from_Lua_code Not sure of the difference between api:executeString() and api:execute() if someone could please document the difference... -Avi
Execute, takes 2 args, the API command and the arguments seprate, where executeString takes it as a single argument. --Dave _____ From: Avi Marcus [mailto:avi@avimarcus.net] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Wed, 27 Jun 2012 12:31:41 -0700 Subject: Re: [Freeswitch-users] how can run fs_cli commands in lua script? http://wiki.freeswitch.org/wiki/Lua#For_making_API_calls or The page links to: http://wiki.freeswitch.org/wiki/Make_API_calls_directly_from_Lua_code Not sure of the difference between api:executeString() and api:execute() if someone could please document the difference... -Avi
Please have a look here: http://wiki.freeswitch.org/wiki/Make_API_calls_directly_from_Lua_code There is a description for how to execute API commands from within lua. /Peter ________________________________ Från: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] för Samira Mh [saami_mh@ymail.com] Skickat: den 27 juni 2012 21:26 Till: Free SWITCH Users Help Ämne: [Freeswitch-users] how can run fs_cli commands in lua script? hi all, i want to run the following command in lua script that is located on (/usr/local/freeswitch/scripts/lua1.lua) sofia_count_reg 1001-Q0ErXNX1RuYwPdctyuGeiA@public.gmane.org<mailto:1001-Q0ErXNX1RuYwPdctyuGeiA@public.gmane.org> i ned to use the output of the above command how can i do that? !DSPAM:4feb5c4d32761687116813!
participants (5)
-
Avi Marcus
-
Dave R. Kompel
-
Michael Collins
-
Peter Olsson
-
Samira Mh