fusionpbx/resources/install/scripts/app
konradSC f174a9f5af Calculate timeout for Follow-me (#4528)
* Calculate timeout for Follow-me

Need to calculate the timeout for Enterprise RG members that have extensions with follow-me. 

The RG timeout should always take precedence over a follow-me timeout value. What we do is take the delay of the follow-me destination and subtract that from the ring group timeout to give us the total timeout of the destination. 

Example: 
RG 1: x1000 (Delay=0, Timeout=10)
RG 2: x2000 (Delay=10, Timeout=10)

x2000 has follow-me enabled
FM 1: x2000 (Delay=0, Timeout=15)
FM 2: x3000 (Delay=5, Timeout=20)

In this example we would want x2000 ring for 10 seconds and x3000 to ring for 5 seconds. 

What if we changed this... FM 2: x3000 (Delay 15, Timeout=20)

In this example we wouldn't want x3000 to ring at all because it would start to ring after the RG timeout has expired. Our calculated value would be a negative value, -5. These negative values don't work as leg_timeouts in the dialstring, so we need to test for them.

* Update index.lua

* Update index.lua
2019-09-09 14:05:53 -06:00
..
agent_status
avmd
call_block Fix Call Block Type Setting Check 2019-05-28 14:27:29 -04:00
conference_center
dialplan Update 010_get_domain.lua.noload 2019-08-11 17:10:00 -06:00
emergency_notify
event_notify Added support for Digium D-Series phones. (#4229) 2019-06-02 10:01:54 -06:00
failure_handler
fax Update hangup_rx.lua 2019-06-14 23:59:37 -06:00
feature_event
follow_me Use original_destination_number for timeout (#4521) 2019-09-09 08:40:54 -06:00
hangup
is_local Update index.lua 2019-04-29 14:38:46 -06:00
messages/resources
missed_calls/resources/templates/en/us
provision
ring_groups Calculate timeout for Follow-me (#4528) 2019-09-09 14:05:53 -06:00
servers/resources
speed_dial Update index.lua 2019-02-09 08:17:30 -07:00
toll_allow
voicemail Watson Transcription (#4420) 2019-08-19 09:17:03 -06:00
xml_handler Update sofia.conf.lua 2019-08-08 02:21:35 -06:00