Last active
December 14, 2016 11:49
-
-
Save moteus/583d73bf528698f0824d6ff25b5e2f02 to your computer and use it in GitHub Desktop.
FusionPBX service control script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- File to conrol FusionPBX Lua services/monitors | |
-- @usage: | |
-- # stop `call_flow_subscribe` | |
-- fs_cli -x "lua fsc.lua flow shutdown" | |
local destination = assert(argv[1]) | |
local command = assert(argv[2]) | |
local event = freeswitch.Event("CUSTOM", "fusion::" .. destination .. "::" .. command); | |
event:fire() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment