fusionpbx/resources/install/scripts
Alexey Melnichuk 9076df2302 Add. Support `onInterval` method to EventConsumer class (#1747)
* Add. Support `onInterval` method to EventConsumer class

Usage
```Lua
-- execute action each 30 sec
events:onInterval(30*1000, function() end)

-- execute action once after 5 min
events:onIntervalOnce(5*60*1000, function() end)
```

* Fix. Remove timers

* Fix. Reset timer before callback

It allows stop timer inside callback.
Also it produce more accurate interval invocation
if callback take quite a long time.
E.g. Interval = 10 sec and callback took 5 sec then
if we reset timer after this callback then gap between
invocation will be 15 sec.

* Add. Timers now have TimeEvent class type.

Add. `reset` method to IntervalTimer class.

```Lua
events:onIntervalOnce(1000, function(self, timer)
  -- timer has type TimeEvent

  -- restart timer so it will be invoke again
  timer:restart()

  -- or reset new interval
  -- timer:reset(5000)
end)
```

* Fix. Typo in variable name
2016-07-13 09:43:51 -06:00
..
app Fix. Fusion set rate=48000 to all streams. (#1746) 2016-07-12 08:09:54 -06:00
resources Add. Support `onInterval` method to EventConsumer class (#1747) 2016-07-13 09:43:51 -06:00
app.lua Revert "Revert "Change. Use `require "resources.functions.config"` to load co…" 2015-08-11 05:06:33 +03:00
call_flow.lua Update call_flow.lua 2016-06-12 14:14:52 -06:00
call_flow_monitor.lua Fix. `call_flow_monitor` use new field call_flow_alternate_label instead old `call_flow_anti_label` (#1730) 2016-07-04 09:32:22 -06:00
call_flow_subscribe.lua Add. EventConsumer class. (#1741) 2016-07-08 13:10:43 -06:00
call_forward.lua Add. Support `bridge` mode to call forward from Lua. (#1631) 2016-06-08 07:33:55 -06:00
cidlookup.lua WhitespaceClean-resources/install/scripts 2016-03-11 13:21:52 +00:00
confirm.lua Fix. Include config file. 2015-08-11 14:40:02 +04:00
destination_caller_id.lua Revert "Revert "Change. Use `require "resources.functions.config"` to load co…" 2015-08-11 05:06:33 +03:00
dial_string.lua Revert "Revert "Change. Use `require "resources.functions.config"` to load co…" 2015-08-11 05:06:33 +03:00
directory.lua Add ability for directory to use mod_flite or mod_cepstral (#1644) 2016-06-10 16:07:11 -06:00
disa.callback.loopback.lua WhitespaceClean-resources/install/scripts 2016-03-11 13:21:52 +00:00
disa.callback.lua WhitespaceClean-resources/install/scripts 2016-03-11 13:21:52 +00:00
disa.lua Update the disa.lua to prevent errors when caller hangs up before the destination is called. 2016-03-23 11:42:20 -06:00
disa.plus.lua WhitespaceClean-resources/install/scripts 2016-03-11 13:21:52 +00:00
do_not_disturb.lua Show when we are clearing the cache for *78 or *79. 2016-01-12 19:34:57 -07:00
eavesdrop.lua Remove an extra line and change the console message. 2015-08-14 09:47:00 -06:00
email.lua Wrong variable in freeswitch.email 2016-02-24 19:59:54 -05:00
extension_queue.lua WhitespaceClean-resources/install/scripts 2016-03-11 13:21:52 +00:00
fax_retry.lua WhitespaceClean-resources/install/scripts 2016-03-11 13:21:52 +00:00
fifo_member.lua After removing domain name from the default recordings dir path need to add the domain name every where the recordings directory is currently used. 2015-12-06 13:37:35 -07:00
follow_me.lua Update follow_me.lua 2015-11-05 18:02:08 +03:00
intercept.lua Update intercept.lua 2016-05-12 23:06:45 -06:00
intercept_group.lua Add. optional intercept only inbound/outbound calls. 2016-04-18 16:06:27 +03:00
ivr_menu.lua WhitespaceClean-resources/install/scripts 2016-03-11 13:21:52 +00:00
mkdir.lua Fix. `event_socket_mkdir` for Windows system. (#1724) 2016-06-30 08:11:52 -06:00
monitor.lua Revert "Revert "Change. Use `require "resources.functions.config"` to load co…" 2015-08-11 05:06:33 +03:00
page.lua Update page.lua 2016-07-06 14:48:00 -06:00
park.lua Revert "Revert "Change. Use `require "resources.functions.config"` to load co…" 2015-08-11 05:06:33 +03:00
park_monitor.lua Revert "Revert "Change. Use `require "resources.functions.config"` to load co…" 2015-08-11 05:06:33 +03:00
pin_number.lua Add sip_h_X- prefix to the accountcode in pin_number.lua. 2016-06-22 15:05:33 -06:00
recordings.lua Add record_ext to the recordings.lua. 2015-12-23 12:02:14 -07:00
roku.lua svn diff 2014-07-31 08:40:15 +00:00
streamfile.lua WhitespaceClean-resources/install/scripts 2016-03-11 13:21:52 +00:00
wakeup.lua Revert "Revert "Change. Use `require "resources.functions.config"` to load co…" 2015-08-11 05:06:33 +03:00