mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 17:13:49 +00:00
* Change. Pass pid file first. Because there really no need pass timeout. Add. `fsc` script to be able shutdown MWI and Call Flow subscribe services. * Change. rename `fsc` to `service`. * Change. Use `stop` command instead of `shutdown`
15 lines
457 B
Plaintext
15 lines
457 B
Plaintext
-- File to conrol FusionPBX Lua services/monitors
|
|
-- @usage:
|
|
-- # stop `call_flow_subscribe` monitor
|
|
-- fs_cli -x "lua service flow stop"
|
|
-- # stop `mwi_subscribe` monitor
|
|
-- fs_cli -x "lua service mwi stop"
|
|
|
|
local destination = assert(argv[1], "No service name")
|
|
local command = assert(argv[2], "No command")
|
|
|
|
local event = freeswitch.Event("CUSTOM", "fusion::service::" .. destination);
|
|
event:addHeader('service-command', command)
|
|
|
|
event:fire()
|