mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update call_flow.lua
Rename the variables in call_flow.lua to match. New variables call_flow_sound and call_flow_alternate_sound.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
-- intercom.lua
|
-- call_flow.lua
|
||||||
-- Part of FusionPBX
|
-- Part of FusionPBX
|
||||||
-- Copyright (C) 2010 Mark J Crane <markjcrane@fusionpbx.com>
|
-- Copyright (C) 2010 Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
-- All rights reserved.
|
-- All rights reserved.
|
||||||
@@ -162,8 +162,8 @@ if (session:ready()) then
|
|||||||
pin_number = row.call_flow_pin_number;
|
pin_number = row.call_flow_pin_number;
|
||||||
call_flow_label = row.call_flow_label;
|
call_flow_label = row.call_flow_label;
|
||||||
call_flow_anti_label = row.call_flow_anti_label;
|
call_flow_anti_label = row.call_flow_anti_label;
|
||||||
call_flow_sound_on = row.call_flow_sound_on or '';
|
call_flow_sound = row.call_flow_sound or '';
|
||||||
call_flow_sound_off = row.call_flow_sound_off or '';
|
call_flow_alternate_sound = row.call_flow_alternate_sound or '';
|
||||||
|
|
||||||
if #call_flow_status == 0 then
|
if #call_flow_status == 0 then
|
||||||
call_flow_status = "true";
|
call_flow_status = "true";
|
||||||
@@ -204,7 +204,7 @@ if (session:ready()) then
|
|||||||
local active_flow_label = (toggle == "true") and call_flow_label or call_flow_anti_label
|
local active_flow_label = (toggle == "true") and call_flow_label or call_flow_anti_label
|
||||||
|
|
||||||
--play info message
|
--play info message
|
||||||
local audio_file = (toggle == "false") and call_flow_sound_on or call_flow_sound_off
|
local audio_file = (toggle == "false") and call_flow_sound or call_flow_alternate_sound
|
||||||
|
|
||||||
--show in the console
|
--show in the console
|
||||||
log.noticef("label=%s,status=%s,uuid=%s,audio=%s", active_flow_label, toggle, call_flow_uuid, audio_file)
|
log.noticef("label=%s,status=%s,uuid=%s,audio=%s", active_flow_label, toggle, call_flow_uuid, audio_file)
|
||||||
|
|||||||
Reference in New Issue
Block a user