Commit Graph

32 Commits

Author SHA1 Message Date
FusionPBX 1baa07fbf0
Update call_forward.lua 2018-05-09 22:46:46 -06:00
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
FusionPBX 9b9f2c4840 Update call_forward.lua 2017-10-16 11:34:14 -06:00
FusionPBX 6cc768bab6 Update call_forward.lua 2017-10-07 23:40:00 -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 5523e6f630 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 80a1e5b710 Add. ${user_exists} value to check condition when build CF dialstring (#2183) 2016-11-24 10:07:55 -07:00
Alexey Melnichuk 77810d66d0 Add. Use parameters in call_forward.lua (#2098) 2016-11-18 09:47:11 -07:00
Alexey Melnichuk c30eb90839 Add. Support number_alias field as presence id in follow me/call forward (#2075) 2016-11-17 11:40:22 -07:00
FusionPBX 522b53ae72 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 b1163e508b Update call_forward.lua 2016-08-21 14:30:35 -06:00
de-jens 71bac37219 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 644996b1f7 Add. Support `bridge` mode to call forward from Lua. (#1631) 2016-06-08 07:33:55 -06:00
mafoo b7555579bf 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 7bb50d03a0 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 0e5b10d265 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 9ad23e65b5 Fix. Delete number-alias from cache when set DND/Follome/Forward. 2015-08-26 13:44:34 +04:00
Alexey Melnichuk 46bbc28220 Change. Use toll_allow of extension who set call forward. 2015-08-14 13:27:47 +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
markjcrane 6f9eb6ab29 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 cbb81d43f4 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 cbe9e9f619 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 daad4f0ca3 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 9cf7ba063d 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 7265388ca1 Fix 2 problems with call forward first fix the alias and unforward. 2014-09-23 07:45:40 +00:00
Mark Crane bfcdd28e9d Prevent an empty call forward destination 2014-09-13 09:30:25 +00:00
Mark Crane ca66aa8214 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 2ff4bd21a4 Update the call forward lua script and remove the pin number 2014-07-25 11:04:16 +00:00
Mark Crane 567e554cb7 Move the includes/install to resources/install 2013-06-09 02:42:36 +00:00