Commit Graph

36 Commits

Author SHA1 Message Date
FusionPBX f06ff3db3e Update call_forward.lua (#3976) 2019-01-24 22:55:52 -07:00
FusionPBX 725dc83762 Update call_forward.lua 2018-06-26 11:54:26 -06:00
FusionPBX c72222903b Update call_forward.lua 2018-05-09 22:47:21 -06:00
FusionPBX 8115247737 Update call_forward.lua 2018-05-09 22:45:55 -06:00
afanucchi 1e89710264 Allow call forwarding to be enabled and set by argument in INVITE. Useful for softkey on hard phones. (#3035) 2018-04-27 00:44:43 -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
FusionPBX 9db045e02e Update call_forward.lua 2017-10-16 11:34:14 -06:00
FusionPBX bcb83f53b8 Update call_forward.lua 2017-10-07 23:40:00 -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 f79418079c Fix. Use CID from extension for call forward if set `call_forward_fix`. (#2260)
This is same behavior as in Web UI.
2016-12-20 09:07:58 -07:00
Alexey Melnichuk 69585d2023 Add. ${user_exists} value to check condition when build CF dialstring (#2183) 2016-11-24 10:07:55 -07:00
Alexey Melnichuk 82a681a1fa Add. Use parameters in call_forward.lua (#2098) 2016-11-18 09:47:11 -07:00
Alexey Melnichuk 63ebb355fa Add. Support number_alias field as presence id in follow me/call forward (#2075) 2016-11-17 11:40:22 -07:00
FusionPBX b9305f0f1b Update call_forward.lua
https://github.com/fusionpbx/fusionpbx/pull/1884 add sip: as suggested in the 1884 pull request.
2016-09-01 22:29:07 -06:00
FusionPBX e34cb1a61e Update call_forward.lua 2016-08-21 14:30:35 -06:00
de-jens a6fcd8c34a add Diversion Header to dail string (#1816)
* added Diversion Header to dail string

* added Diversion Header to dail string
2016-08-15 09:20:02 -06:00
Alexey Melnichuk add8222cff Add. Support `bridge` mode to call forward from Lua. (#1631) 2016-06-08 07:33:55 -06:00
mafoo 0eb7d5ddac WhitespaceClean-resources/install/scripts
whitespace pass over files
for reference regex that was used s/[ \t]+(\r?\n)/\1/
2016-03-11 13:21:52 +00:00
markjcrane c385f5fc0f New database class was implemented in call_forward.lua when using first_value must change select * from with the specific value desired. 2015-11-10 17:26:39 -07:00
Alexey Melnichuk 927e495a0e Update. call_forward.lua script
Fix. Set outbound caller id
Remove. Nested if
Use. cache class
Use. database class
2015-11-09 16:55:35 +03:00
Alexey Melnichuk 398e126fd7 Fix. Delete number-alias from cache when set DND/Follome/Forward. 2015-08-26 13:44:34 +04:00
Alexey Melnichuk bfe2fb97f6 Change. Use toll_allow of extension who set call forward. 2015-08-14 13:27:47 +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
markjcrane c0d694a62b After call forward has been set with feature code *72 or *74 play back the number that call forward is set to. 2015-07-20 12:59:45 -06:00
Mark Crane 6fe3c0fecf When dialing *74 clear the call forward destination which will allow it to set a new one with *73. 2015-06-18 06:55:46 +00:00
Mark Crane 53a8cd7777 Ensure that call forward doesn't update follow me if follow_me_uuid is an empty string. 2014-11-28 20:40:59 +00:00
Mark Crane 0bfd57c148 If forward all destination is not set then request it when using *72 otherwise use the current destination. 2014-11-18 11:16:59 +00:00
Mark Crane c247e1c5a0 Fix call forward user_exists result is a string this fixes ability to call external numbers 2014-09-23 08:01:56 +00:00
Mark Crane 093d7bb369 Fix 2 problems with call forward first fix the alias and unforward. 2014-09-23 07:45:40 +00:00
Mark Crane 69882a6b3b Prevent an empty call forward destination 2014-09-13 09:30:25 +00:00
Mark Crane b4e9c2522c Feature code call forward *72 on, *73 off, *74 request id and password toggle on/off 2014-08-22 07:36:07 +00:00
Mark Crane 8456b1b6ca Update the call forward lua script and remove the pin number 2014-07-25 11:04:16 +00:00
Mark Crane 896fdb37b2 Move the includes/install to resources/install 2013-06-09 02:42:36 +00:00