Calculate the destination delay using the database
This commit is contained in:
parent
d98e054f34
commit
a93535d990
|
|
@ -477,7 +477,7 @@
|
|||
sql = [[
|
||||
SELECT
|
||||
r.ring_group_strategy, r.ring_group_timeout_app, r.ring_group_distinctive_ring,
|
||||
d.destination_number, d.destination_delay, d.destination_timeout, d.destination_prompt,
|
||||
d.destination_number, d.destination_delay * 500 as destination_delay, d.destination_timeout, d.destination_prompt,
|
||||
r.ring_group_caller_id_name, r.ring_group_caller_id_number,
|
||||
r.ring_group_cid_name_prefix, r.ring_group_cid_number_prefix,
|
||||
r.ring_group_timeout_data, r.ring_group_ringback
|
||||
|
|
@ -585,7 +585,7 @@
|
|||
--get the follow me destinations
|
||||
if (follow_me_uuid ~= nil and row.is_follow_me_destination ~= "true") then
|
||||
sql = "select d.domain_uuid, d.domain_name, f.follow_me_destination as destination_number, ";
|
||||
sql = sql .. "f.follow_me_delay as destination_delay, f.follow_me_timeout as destination_timeout, ";
|
||||
sql = sql .. "f.follow_me_delay * 500 as destination_delay, f.follow_me_timeout as destination_timeout, ";
|
||||
sql = sql .. "f.follow_me_prompt as destination_prompt ";
|
||||
sql = sql .. "from v_follow_me_destinations as f, v_domains as d ";
|
||||
sql = sql .. "where f.follow_me_uuid = :follow_me_uuid ";
|
||||
|
|
|
|||
Loading…
Reference in New Issue