Commit Graph

22 Commits

Author SHA1 Message Date
konradSC b192a96f84 Add Device Feature Sync (#2905)
* Update lua.conf.xml

Hook the feature_event lua script to Freeswitch "PHONE_FEATURE_SUBSCRIBE" events.

* Create index.lua

* Create feature_event_notify.lua

* Update call_forward.lua

Add trigger for feature sync.

* Update do_not_disturb.lua

Add trigger for feature sync.

* Update call_edit.php

* Create feature_event_notify.php

* Update index.lua

disable logging
2017-11-09 12:09:56 -07:00
konradSC 67d6d7e4d2 Update do_not_disturb.lua (#2803)
Use cache function instead of directly clearing memcache.
2017-08-22 16:16:35 -06:00
Alexey Melnichuk 515fc15767 Add. BLF indication for call forward. (#2664)
* Add. BLF indication for call forward.

To display general status of CallForward use blf like `forward+<extension>`
To display status for specific phone number use blf like `forward+<extension>/<number>`

* Fix. Escape variable in regex expression.

* Fix. Sync DND and CF blf.

* Add. `blf_subscribe` service which can handle all custom subscriptions.

To run for specific protocol it possible run as `luarun blf_subscribe.lua <PROTO>`
2017-06-20 09:23:23 -06:00
Alexey Melnichuk 64b1134482 Add. Support DND feature via BLF key (#2606) 2017-05-29 09:50:20 -06:00
Alexey Melnichuk 0520be077d Fix. Pass `params` in query call in do_not_disturb.lua (#2160) 2016-11-23 01:59:58 -07:00
Alexey Melnichuk 904d52407a Add. Use params in do_not_disturb.lua (#2115) 2016-11-21 22:05:58 -07:00
FusionPBX a14b7fa83a Update do_not_disturb.lua
Add do not disturb toggle.
2016-10-07 14:54:02 -06:00
markjcrane 06932b85f7 Show when we are clearing the cache for *78 or *79. 2016-01-12 19:34:57 -07:00
markjcrane 0bf97e79bd Change DND from loopback/*99[ext] to error/user_busy. 2015-09-08 14:38:46 -06:00
markjcrane be564502df This last change will enable do not disturb to update the user status which will then show in the operator panel. 2015-09-05 11:26:13 -06:00
markjcrane 84ee674f81 Fix the sql in the do_not_disturb.lua. 2015-09-05 10:42:22 -06:00
markjcrane 06ed8f2998 When *78 or *79 are used for DND update the user status and agent status. 2015-09-05 10:05:43 -06:00
Alexey Melnichuk 9ad23e65b5 Fix. Delete number-alias from cache when set DND/Follome/Forward. 2015-08-26 13:44:34 +04:00
markjcrane 3f9bef47ee Abbreviation for variables are discouraged because they aren't intuitive especially for those from other languages. Replace 'ep' variable no idea what it represented to 'user' which is what freeswitch calls ans extension that you register to. 2015-08-13 11:34:48 -06:00
Alexey Melnichuk 5f67be647d Fix. Use number alias to forward call to VM when DND is on (Lua part) 2015-08-13 13:14:46 +04:00
Alexey Melnichuk 3e16e69adb Revert "Revert "Change. Use `require "resources.functions.config"` to load co…" 2015-08-11 05:06:33 +03:00
FusionPBX 2a2dd209df Revert "Change. Use `require "resources.functions.config"` to load config file." 2015-08-10 11:50:29 -06:00
Alexey Melnichuk 703b61636a Change. Use only `require` to load function.
Fix. Remove multiple definition of same function.
2015-08-10 12:43:06 +04:00
Alexey Melnichuk 3da348fff0 Change. Use `require "resources.functions.config"` to load config file.
Change. Move `script_dir` definition into config file.
2015-07-22 13:20:51 +04:00
Mark Crane 024f536037 Fix a problem with DND when Follow Me hasn't been used for a particular extension. 2014-10-20 09:03:23 +00:00
Mark Crane 3d131cc514 Fix a white space and a empty uuid 2014-08-29 08:33:15 +00:00
Mark Crane b0aaa54a22 Ha ha change .php to .lua 2014-07-27 11:56:04 +00:00