Files
fusionpbx/resources
konradSC cf9d049292 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
..
2019-04-24 19:43:26 -06:00
2017-06-12 22:09:36 -07:00
2018-12-10 12:34:26 -07:00
2016-04-25 20:30:23 -05:00
2016-03-11 13:57:01 +00:00
2018-08-30 01:34:38 -06:00
2019-09-06 13:36:45 -06:00
2019-08-04 00:54:11 -06:00
2016-04-25 20:30:23 -05:00
2016-12-13 08:47:22 -07:00
2019-09-09 06:06:53 -06:00
2019-09-04 11:20:27 -06:00
2019-08-22 12:00:02 -06:00
2019-08-28 17:53:34 -06:00
2019-08-28 23:11:04 -06:00
2016-03-11 13:57:01 +00:00
2019-06-05 21:10:58 -06:00
2018-06-29 20:02:00 -06:00
2017-04-25 00:09:53 -06:00
2017-08-02 10:45:35 -06:00
2017-01-05 04:15:47 -07:00