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!