Commit Graph

25 Commits

Author SHA1 Message Date
FusionPBX
fbd61b2e1a Update do_not_disturb.lua 2019-09-11 13:26:37 -06:00
FusionPBX
f220784841 Update do_not_disturb.lua 2019-09-05 13:43:49 -06:00
FusionPBX
db646da590 Update do_not_disturb.lua 2019-09-05 11:01:59 -06:00
konradSC
3199bf2dda 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
93245717cb Update do_not_disturb.lua (#2803)
Use cache function instead of directly clearing memcache.
2017-08-22 16:16:35 -06:00
Alexey Melnichuk
6fc6e231c8 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
a7d58e14c7 Add. Support DND feature via BLF key (#2606) 2017-05-29 09:50:20 -06:00
Alexey Melnichuk
5a8b6bb332 Fix. Pass params in query call in do_not_disturb.lua (#2160) 2016-11-23 01:59:58 -07:00
Alexey Melnichuk
0a124a576f Add. Use params in do_not_disturb.lua (#2115) 2016-11-21 22:05:58 -07:00
FusionPBX
6baaec1415 Update do_not_disturb.lua
Add do not disturb toggle.
2016-10-07 14:54:02 -06:00
markjcrane
0c39c98213 Show when we are clearing the cache for *78 or *79. 2016-01-12 19:34:57 -07:00
markjcrane
ec0479712c Change DND from loopback/*99[ext] to error/user_busy. 2015-09-08 14:38:46 -06:00
markjcrane
672f2dffaf 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
337dc7c822 Fix the sql in the do_not_disturb.lua. 2015-09-05 10:42:22 -06:00
markjcrane
29ac20c1be 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
398e126fd7 Fix. Delete number-alias from cache when set DND/Follome/Forward. 2015-08-26 13:44:34 +04:00
markjcrane
b0ea34d38d 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
ebe55cf7c8 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
69717e31d5 Revert "Revert "Change. Use require "resources.functions.config" to load co…" 2015-08-11 05:06:33 +03:00
FusionPBX
d1f3b05cf6 Revert "Change. Use require "resources.functions.config" to load config file." 2015-08-10 11:50:29 -06:00
Alexey Melnichuk
a8142f527a Change. Use only require to load function.
Fix. Remove multiple definition of same function.
2015-08-10 12:43:06 +04:00
Alexey Melnichuk
2234b42c07 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
34a4ddb878 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
138cb92c25 Fix a white space and a empty uuid 2014-08-29 08:33:15 +00:00
Mark Crane
d7ae6063bc Ha ha change .php to .lua 2014-07-27 11:56:04 +00:00