Commit Graph

1463 Commits

Author SHA1 Message Date
FusionPBX 48628785e8 Update index.lua 2018-12-23 12:07:24 -07:00
borisk1976 df9b83b1eb Update index.lua (#3953)
When bridge application ends with "originate_disposition: ALLOTTED_TIMEOUT" for example, the "missed call" feature doesn't work for ring group because of hangup hook isn't called. Should we just avoid using this channel variable or add additional processing at the end? Like for timeout action? I choose to call "missed" at the end of script. But may be we should add it to other places too?
2018-12-23 12:06:40 -07:00
FusionPBX 8439adbfa2 Update index.lua 2018-12-19 00:24:50 -07:00
FusionPBX d754e4449c Update index.lua 2018-12-18 23:44:33 -07:00
FusionPBX 9579a52c33 Update index.lua 2018-12-18 23:43:35 -07:00
FusionPBX ff63c7ce1a Update index.lua 2018-12-18 20:08:42 -07:00
FusionPBX dfca1ba15e Update index.lua 2018-12-18 20:06:39 -07:00
konradSC 50e5cc7949 Update recordings.lua (#3941)
Keep recording descriptions when overwriting a slot.
2018-12-10 09:30:02 -07:00
konradSC ad56d76309 Update recordings.lua (#3937)
Bug fix. Allow for nil and blank entries.
2018-12-07 12:13:05 -07:00
Zachary Kitchen 017615baaf Fix IVR (#3898)
IVR was broken after previous update/change.
2018-12-04 00:15:02 -07:00
timando 11e445fb48 Make storage_path and storage_type = http_cache work (#3892)
* Make storage_path work

if storage_path was set, the script would fail. I have fixed it by removing the references to unset variables. I also made the recordings use the path.

* Update ivr.conf.lua

Add storage_path definition so storage_type of http_cache works correctly
2018-12-03 20:25:04 -07:00
konradSC 9ff799cfe4 BLF of agent status "agent+username@domain.com (#3860)
* BLF of agent status "agent+username@domain.com

Add the ability to monitor the availability status of a call center agent with "agent+agentname@domain.com".

* Update index.lua

Send notify to blf with "agent+agentname@domain.com"
2018-11-19 16:39:54 -06:00
danry25 60d52a71ea Minor variable renaming per IRC conversation (#3758) 2018-11-08 00:58:39 -07:00
danry25 c452b9417f Selfhosted Transcription Service (#3753)
* Added a simple selfhosted voicemail transcription API client

* Minor logging cleanup

* Add some string escaping to handle transcription providers

* Add JSON handling (optional) to selfhosted API
2018-11-07 00:39:20 -07:00
FusionPBX 1092ece47c Update events.lua 2018-11-01 15:07:16 -06:00
FusionPBX 90de831e97 Update index.lua 2018-10-30 21:44:31 -06:00
sergey-mz c4962c460e Added check if transcription result is nil (#3724)
If the message is too short then the result is nil.
Error occurs in this case: record_message.lua:97: attempt to index field 'results' (a nil value) 
Added check if transcribe_json["results"] is nil.
2018-10-26 10:25:08 -06:00
FusionPBX e5ef333540 Update follow_me.lua 2018-10-05 14:08:42 -06:00
FusionPBX ac5283379d Update index.lua 2018-10-05 13:42:49 -06:00
FusionPBX add53e5ea6 Update events.lua 2018-09-19 03:01:09 -04:00
FusionPBX fb1202051b Update events.lua 2018-09-19 02:59:51 -04:00
FusionPBX 01ef4d76b1 Create events.lua 2018-09-19 02:54:56 -04:00
FusionPBX b1bf029dc0 Update send.lua 2018-09-19 02:51:40 -04:00
konradSC 7727b04b09 Update file_cache.lua (#3483)
A little space please!
2018-09-18 13:06:44 -06:00
FusionPBX bd06c9bcbe Create send.lua 2018-09-16 21:59:42 -06:00
FusionPBX 97de015b47 Update directory.lua 2018-09-10 13:36:55 -06:00
konradSC e6b5c829af Update file_cache.lua (#3402)
Run OS command through Freeswitch for better performance. Running OS commands directly from lua can cause RTP timing issues.
2018-09-06 17:45:33 -06:00
FusionPBX 575429e3c8 Update index.lua 2018-08-26 11:30:47 -06:00
FusionPBX eda2a331a1 Update index.lua 2018-08-24 13:57:16 -06:00
FusionPBX f8aa91d67c Update index.lua 2018-08-24 13:55:32 -06:00
FusionPBX 628a6803bb Update directory.lua 2018-08-14 11:02:47 -06:00
FusionPBX f346709450 Update confirm.lua 2018-08-06 12:18:22 -06:00
FusionPBX e44289646c Update dialplan.lua 2018-08-03 11:21:16 -06:00
FusionPBX d111f29f2d Update index.lua 2018-08-01 22:44:03 -06:00
FusionPBX 725dc83762 Update call_forward.lua 2018-06-26 11:54:26 -06:00
ednt f413330a1a Update index.lua (#3196)
A reboot for snom provisioning is not needed.
2018-06-26 11:45:12 -06:00
FusionPBX f75546d688 Update index.lua 2018-06-25 10:35:47 -06:00
FusionPBX 06af0ea61d Update route_to_bridge.lua 2018-06-18 17:43:25 -06:00
FusionPBX 1e66c87b0c Update index.lua 2018-06-06 23:08:34 -06:00
FusionPBX f1dc3c906b Update index.lua 2018-06-06 21:10:23 -06:00
FusionPBX 02a3e3e0da Update disa.lua 2018-05-30 19:54:11 -06:00
Caleb bc6a58aa30 Added support for authentication via voicemail box passwords (#3076) 2018-05-30 19:52:52 -06:00
FusionPBX 66a5d9e92c Update mkdir.lua 2018-05-30 10:54:01 -06:00
Luis Daniel Lucio Quiroz b0bba86d8c Fix Mysql/MariaDB installation 2/2 [4.5] (#3056)
Missing default speed ups
2018-05-18 00:58:15 -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
FusionPBX 7a05fc4f75 Update index.lua 2018-05-09 09:57:47 -06:00
konradSC ba27ac8770 Bug Fix: Wrong Variable Type (#3050)
The variable "external" is set as a String not as a Boolean. Changed the If statement to reflect.
2018-05-09 09:54:41 -06:00
FusionPBX 7d2317620d Update index.lua 2018-05-09 09:48:48 -06:00
FusionPBX b055af1218 Update index.lua 2018-05-09 09:07:40 -06:00
FusionPBX 2a9e6f3b3c Update index.lua 2018-05-09 09:01:56 -06:00
The-Operator 593f8ac9a9 Enhance Call Blocking [master] (#2988)
* Added support for regular expressions in the numbers to be blocked.
Reduced the caching timeout, as the counter is only incremented when a call is blocked and the number is not cached.

* Added default sort order.

* Added option to switch on/off use of regular expression matching for pgsql and mysql.

* Added support for sqlite and updated default number match to "LIKE" as suggested by MafooUK on IRC.

* Selection of behavior (default [=], regex or like matching) is now done via the variable call_block_matching = regex|like|EMPTY - type text - in the Call Block section of Default Settings.

* Updated comment to match new matching.
2018-05-08 08:50:57 -06:00
FusionPBX 490803114b Update index.lua 2018-05-07 19:59:41 -06:00
FusionPBX d7411b2f23 Update index.lua 2018-05-06 13:10:08 -06:00
konradSC 8abe5387ae Use Freeswitch for mkdir (#3049)
This change reduces  the strain on the system by running the OS command through Freeswitch rather than directly from Lua. When running directly from Lua it causes RTP jitter in a high capacity system.
2018-05-04 13:32:36 -06:00
FusionPBX 1c8cb7d6cf Update dialplan.lua 2018-05-03 15:19:23 -06:00
FusionPBX 1137d9a634 Update record_greeting.lua 2018-04-30 10:32:05 -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
Luis Daniel Lucio Quiroz cad0636b12 Same as 4.4 (#3040)
...
2018-04-26 14:42:23 -06:00
FusionPBX ed184562da Update index.lua 2018-04-25 21:19:31 -06:00
FusionPBX e4ec48eb48 Update index.lua 2018-04-20 09:33:33 -06:00
FusionPBX 8c8c80b9cd Update index.lua 2018-04-09 16:15:52 -06:00
FusionPBX 2f49e42ac7 Update index.lua 2018-04-09 15:26:25 -06:00
FusionPBX f5a73a8e1d Update index.lua 2018-04-09 10:40:05 -06:00
FusionPBX 34de964157 Update index.lua 2018-04-05 20:02:24 -06:00
FusionPBX 1ac03ef139 Update index.lua 2018-03-31 13:05:21 -06:00
FusionPBX 465ff67989 Update callcenter.conf.lua 2018-03-31 11:13:08 -06:00
FusionPBX f789ed4811 Update index.lua 2018-03-28 22:40:55 -06:00
FusionPBX 69a8ead027 Update index.lua 2018-03-24 17:33:49 -06:00
FusionPBX 8237fb7f4a Update index.lua 2018-03-24 17:33:10 -06:00
FusionPBX 3f382c85ec Update index.lua 2018-03-24 15:45:11 -06:00
FusionPBX 608a6944f7 Update index.lua 2018-03-24 15:38:10 -06:00
FusionPBX 85f875b95e Update index.lua 2018-03-24 15:35:32 -06:00
FusionPBX d56119bb79 Update index.lua 2018-03-24 15:34:54 -06:00
FusionPBX d96e1c1092 Update index.lua 2018-03-24 15:24:43 -06:00
FusionPBX d35b3fd002 Update send_email.lua 2018-03-24 15:16:33 -06:00
FusionPBX 36270f5d4b Update index.lua 2018-03-16 00:44:11 -06:00
Caleb 5fe898716c Changed NOTIFY Event header for Grandstream phones (#3014)
Changed SIP NOTIFY Event header for Grandstream phones to allow provisioning with out requiring a reboot of the device. Based on communication with a Grandstream support rep. Tested on Grandstream GXP2130 and GXP2160 models.
2018-03-07 13:51:22 -07:00
FusionPBX fcaf1dde98 Update index.lua 2018-02-22 12:47:47 -07:00
FusionPBX c05fb67ddc Update index.lua 2018-02-22 10:12:45 -07:00
ednt 8a7a1c84e5 Update fax_retry.lua (#2994)
If the fax transmission fails the first time, the ident and header was not transmitted during the retries.
2018-02-15 09:19:05 -07:00
FusionPBX b12a4ebae8 Ring Groups route_to_bridge was fixed re-add it to the code. 2018-02-11 10:22:25 -07:00
Alexey Melnichuk 10b3321042 Change. library loads only needed files. (#2987) 2018-02-11 08:56:01 -07:00
FusionPBX 22d668b39f Update index.lua 2018-02-10 15:48:18 -07:00
FusionPBX 4ddd7dac88 Update call_flow.lua 2018-02-10 15:34:27 -07:00
FusionPBX add7004b64 Update find_file.lua 2018-02-10 15:32:36 -07:00
FusionPBX 97325b41a5 Update call_flow.lua 2018-02-10 15:14:42 -07:00
FusionPBX 0773ebfffb Update call_flow.lua 2018-02-10 15:14:22 -07:00
FusionPBX 67b980fa71 Create basename.lua 2018-02-10 13:42:02 -07:00
FusionPBX b5b3edc50a Update find_file.lua 2018-02-10 13:40:45 -07:00
FusionPBX 778f470aef Create is_absolute_path.lua 2018-02-10 13:39:54 -07:00
FusionPBX db531692be Create find_file.lua 2018-02-10 13:38:17 -07:00
FusionPBX e29ea61545 Create play_file.lua 2018-02-10 13:35:07 -07:00
Alexey Melnichuk fab5b5a970 Fix. Use preloaded dialplan more then once. (#2986) 2018-02-10 13:27:07 -07:00
markjcrane 5cebe62047 Remove the code changes that used route to bridge code as it broke calling multiple external destinations for Ring Groups. 2018-02-08 11:33:08 -07:00
FusionPBX 2cc8cf925d Update send_mail.lua 2018-02-06 18:15:05 -07:00
Mafoo cdd7c2bd97 Enhance - send_mail.lua (#2978)
use the to address when email:smtp_from:var is empty
don't use email:smtp_from_name:var when empty
2018-02-06 17:45:53 -07:00
Mafoo 1c580ce7a1 BugFix - send_mail.lua (#2977)
use correct header to retrieve call_uuid
2018-02-06 17:28:00 -07:00
Connor Strandt d32488b2af update index.lua (#2976)
re-formatted table.
2018-02-06 00:09:52 -07:00
FusionPBX e8fccfad74 Update index.lua 2018-02-05 23:56:22 -07:00
FusionPBX b9394a2707 Update send_mail.lua
Remove this as it caused a nil error app/hangup/index.lua.
2018-02-05 23:47:36 -07:00
FusionPBX 131f9eea03 Update send_mail.lua
Revert the previous commit as it broke send_email.lua.
2018-02-05 22:23:18 -07:00
FusionPBX f076a8133b Update send_mail.lua
Fix a spelling mistake.
2018-02-02 19:35:02 -07:00
Mafoo 2471fa7844 BugFix - LUA send_mail() (#2975)
take call_uuid from the correct header
use smtp_from_name as part of the from address
2018-02-02 19:33:43 -07:00
Mafoo d6b70b688b BugFix - make hangup and failure use send_mail() (#2974)
change the failure_handler and hangup apps use
resources.functions.send_mail so they can use the correct smtp_from*
settings
2018-02-02 19:33:30 -07:00
Connor Strandt 3f9c9945a7 Formatting and sendmail to use smtp_from fix (#2973)
* Fixed formatting.
* Sendmail to use smtp_from variable

Changed sendmail to use smtp_from as the from address to keep from being blocked by spf check during spam filtering on recieving end.
2018-02-02 01:02:57 -07:00
FusionPBX db55501e61 Update languages.lua
Prevent a nill error when the phrase was not found.
2018-01-31 14:45:24 -07:00
FusionPBX 5bc27f8d73 Update index.lua 2018-01-22 10:46:06 -07:00
FusionPBX 89e3835016 Update index.lua 2018-01-22 10:45:48 -07:00
FusionPBX df6a3ea31d Update index.lua 2018-01-22 10:32:25 -07:00
borisk1976 7a6bfcec41 Add new features to disa.lua (#2961)
1. Allow custom sound_pin & sound_extension
2. Allow customization of max_tries, pin_tries & extension_tries
3. Add fallback_destination - fall to it if caller did not entered extension number
4. Allow custom digit_timeout
2018-01-22 00:01:41 -07:00
FusionPBX 57b914d306 Update cache.lua
Make the cache.lua more robust in case of missing key or value.
2018-01-19 18:39:05 -07:00
FusionPBX 2e3bbb25e4 Update sofia.conf.lua
Remove an extra double quote that broke xml syntax.
2018-01-19 11:36:08 -07:00
borisk1976 3b30bd91e4 Update disa.lua (#2959)
Play user defined greeting befor asking of pin. Usage: <application action="set" data="sound_greeting=/mysounds/mygreeting.wav"/>
2018-01-19 10:58:25 -07:00
FusionPBX 6fb9d83f99 Update disa.lua 2018-01-17 01:52:59 -07:00
FusionPBX 85e8f8cd83 Update languages.lua 2018-01-11 15:31:07 -07:00
FusionPBX 1d327ea628 Update dialplan.lua 2018-01-11 12:43:58 -07:00
FusionPBX 838d7ecc2a Update translate.conf.lua 2018-01-11 12:31:25 -07:00
FusionPBX c5cf812dfc Update sofia.conf.lua 2018-01-11 12:29:18 -07:00
FusionPBX e3077c4228 Update ivr.conf.lua 2018-01-11 12:27:11 -07:00
FusionPBX dad721453c Update callcenter.conf.lua 2018-01-11 12:25:33 -07:00
FusionPBX d18b9bfb1b Update acl.conf.lua 2018-01-11 12:20:04 -07:00
FusionPBX e75ceca392 Update acl.conf.lua 2018-01-11 12:11:49 -07:00
FusionPBX 4d99c01b45 Update acl.conf.lua 2018-01-11 12:10:43 -07:00
FusionPBX 57e53a5aa5 Update local_stream.conf.lua 2018-01-11 12:07:40 -07:00
sergey-mz d808ce5393 Check for request errors and return empty string (#2957)
* ODBC DSN detection

* Merge remote-tracking branch 'upstream/master'

* Merge remote-tracking branch 'upstream/master'

* Spelling errors

* Requests to speech platform can fail
2018-01-11 11:26:39 -07:00
konradSC 9adb11398d Fix for Ring Groups with cfwd always & toll_allow (#2952)
This scenario was broken: 
A ring group member forwards their phone to a destination. The destination is an external number and the outbound route had a toll_allow condition. 

This error would be generated: [ERR] switch_cpp.cpp:1376 [route_to_bridge] Unsupportded condition: ${toll_allow}

This PR will get the toll_allow values from the RG member that is forwarding their phone. Then it will pass it to  'route_to_bridge.lua'.
2018-01-09 15:08:28 -07:00
konradSC db8b161473 Emergency Notify lua script (#2953)
* Create index.lua

* Create email_body.tpl

* Create email_subject.tpl

* Update index.lua

* Update index.lua
2018-01-09 12:11:16 -07:00
konradSC e8b8f559c3 Ring Group Member - Call Forward (#2951)
After checking for Call Forward loops, set the destination_number to the call forward target.
2018-01-08 12:14:08 -07:00
sergey-mz d8a12163aa Fix spelling (#2950)
* ODBC DSN detection

* Merge remote-tracking branch 'upstream/master'

* Merge remote-tracking branch 'upstream/master'

* Spelling errors
2018-01-05 13:04:26 -07:00
FusionPBX a18d8ba74c Update index.lua 2018-01-02 19:53:03 -07:00
FusionPBX f91a259d6b Update main_menu.lua 2018-01-02 19:51:12 -07:00
FusionPBX 32495ab07c Update send_email.lua 2017-12-17 01:59:54 -07:00
markjcrane deac1b8304 Move email_templates 2017-12-17 08:56:59 +00:00
FusionPBX 3756c2cb65 Update send_email.lua 2017-12-17 01:51:39 -07:00
FusionPBX 35535fbc4d Create email_templates.php 2017-12-17 01:51:29 -07:00
FusionPBX fe22acb62a Create email_template_edit.php 2017-12-17 01:50:46 -07:00
FusionPBX 77e75cc475 Create email_template_delete.php 2017-12-17 01:50:19 -07:00
FusionPBX bd163636ca Create app_menu.php 2017-12-17 01:49:52 -07:00
FusionPBX 3062a003fd Create app_languages.php 2017-12-17 01:49:14 -07:00
FusionPBX 5fdc878cf3 Create app_config.php 2017-12-17 01:48:42 -07:00
FusionPBX c66f86bb7b Create root.php 2017-12-17 01:47:49 -07:00
FusionPBX 52630b08b9 Create email_templates.php 2017-12-17 01:47:22 -07:00
FusionPBX 4542c5782f Update email_body.tpl 2017-12-15 20:16:42 -07:00
FusionPBX abbd01aa80 Update email_body.tpl 2017-12-15 20:16:23 -07:00
FusionPBX ed67006eac Update email_body_transcription.tpl 2017-12-15 20:15:50 -07:00
FusionPBX b9f45573a3 Update wakeup.lua 2017-12-06 18:01:06 -07:00
Alexey Melnichuk a7de7f0baa Fix. Use external numbers in ring groups with global outbound routes (#2937) 2017-11-29 00:21:21 -07:00
Alexey Melnichuk ff5355e840 Add. Support variables in ring groups when use dierect dial (#2924)
Add. Support variables in ring groups when use direct dial
2017-11-29 00:20:45 -07:00
Alexey Melnichuk 00159b0cc2 Add. Lua script to set call forward for ring group. (#2934) 2017-11-29 00:19:43 -07:00
Alexey Melnichuk 679d4e1fb5 Add. Use `route_to_bridge` module to build routes for ring groups. (#2907)
* Add. Use `route_to_bridge` module to build routes fro ring groups.

This commit has several improvements
1. Select only needed fields. (do not select quite big XML text strings)
2. Filter routes also by context name
3. Filter dialplans also by hostname
4. Handle conditions based not only `destination_number`
5. Handle `break` and `continue` attributes for extensions
6. Escape vars inside dial-string
7. Add log messages similar as FS dialplan do

* Add. `route_to_bridge` set inline vars so it possible use then in next conditions.
Add. `route_to_bridge` can execute basic api commands from allowed lists.
`route_to_bridge` expand all known vars. If var is unknown then it pass as is.
Fix. `export nolocal:` action.

* Fix. Short variable names

* Add. some comments

* Fix. Do not try execute empty string

This produce error messages `[ERR] switch_cpp.cpp:759 No application specified`

* Fix. Export nolocal values.
2017-11-17 07:15:47 -07: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 4b1cd6d7eb Update index.lua 2017-11-04 12:37:58 -06:00
Luis Daniel Lucio Quiroz dea1bf390c Same as 4.2 (#2898) 2017-10-30 12:40:05 -06:00
FusionPBX a260d3f714 Update index.lua 2017-10-27 21:50:05 -06:00
FusionPBX cc21f5d4ed Update index.lua 2017-10-18 01:50:30 -06:00
konradSC d407aa4349 Fix MWI for Extensions that with 0 (#2882)
* Fix MWI for Extensions that with 0

MWI was not turning off after messages were deleted for extensions that start with 0. This requires that real voicemail_id to be pulled from the database and not just taken from the destination number. To get around this we try to send mwi to the original vociemail_id (destination number) and voicemail_id_copy (from database). Index.lua is already doing something similar.

* Update listen_to_recording.lua

* Update menu_messages.lua
2017-10-17 22:23:40 -06:00
FusionPBX 9db045e02e Update call_forward.lua 2017-10-16 11:34:14 -06:00
konradSC 8523010d19 Change Column to allow for more characters (#2874)
255 characters is too small for phones with 15+ BLF lines. 

The phone will generate a postgres ERROR:  value too long for type character varying(255)
2017-10-14 22:44:39 -06:00
FusionPBX c34e049aaa Update index.lua 2017-10-10 13:07:27 -06:00
FusionPBX bcb83f53b8 Update call_forward.lua 2017-10-07 23:40:00 -06:00
FusionPBX d9a29afb51 Update index.lua 2017-10-07 23:14:22 -06:00
Alexey Melnichuk f91c6eb163 Change. Use BasicEventService to implement MWI service. (#2855) 2017-10-06 13:13:33 -06:00
Alexey Melnichuk 41083c7a8c Fix. crash when using EventCounsumer.ievents iterator. (#2865)
Problem code is
``` Lua
for event in ievents{'SHUTDOWN','CUSTOM::event'} do
end
```
2017-10-06 12:36:23 -06:00
FusionPBX 7f52f5a8a4 Set cal 2017-10-04 23:11:42 -06:00
FusionPBX dd009a4bee Update ivr.conf.lua 2017-10-02 22:19:51 -06:00
FusionPBX 37d312688c Update ivr.conf.lua 2017-10-02 22:10:16 -06:00
FusionPBX 554ef5b2f9 Update index.lua 2017-10-02 21:17:29 -06:00
konradSC 1cf930ca20 Fix "invalid greeting" message played (#2860)
Fix "invalid greeting" message played on entry when pressing 5 for advanced, then 1 for record greeting.
2017-09-29 22:01:28 -06:00
Luis Daniel Lucio Quiroz 88109eb967 Update ivr.conf.lua (#2861)
when debug["xml_string"] is on, it will overwrite /tmp/ivr.conf.xml file each hit an ivr goes. this makes very hard to trouble shoot in a living system. this patch allows to put one ivr menu per file.
2017-09-29 16:24:59 -06:00
FusionPBX ef85a2c3b3 Update index.lua 2017-09-28 16:51:53 -06:00
konradSC 74930291b3 Update to use curl instead of ssh (#2856)
SSH method never worked. I submitted the wrong file.
2017-09-27 22:01:58 -06:00
Adam Niedzwiedzki 972fb6d44f Update index.lua (#2858)
Removal of the  ( ) in the sched_api cmd string allows the start_recording.lua to function as designed. 
Added "..scripts_dir.." as well.
2017-09-27 20:35:44 -06:00
FusionPBX a477d3aa1c Update ivr.conf.lua 2017-09-26 22:40:30 -06:00
konradSC b969629f58 File cache sync via curl (#2851)
* Add sendevent when using file caching

* Create clear_cache.lua

FS receives a command via curl to call this script which deletes the single cache entry or flushes the entire cache.

* Create file_cache.lua

This scripts monitors for custom events. When an event is processed it will send out a command via curl to other FS servers telling them to clear their cache. 

This must be called from conf/autoload_configs/lua.conf.xml
 <param name="startup-script" value="app/server/resources/memcache.lua"/>
2017-09-20 16:19:56 -06:00
FusionPBX 7a0a7d7b80 Update index.lua 2017-09-12 14:32:13 -05:00
konradSC afbba1203d Update mwi_notify.lua (#2836)
Search all profiles for the sofia_contact. For some reason on server it would automatically search all profiles, but on the other servers I had to add "*/".
2017-09-11 08:53:57 -06:00
konradSC 48b85fdbdf Update index.lua (#2821)
Break the ring group query into two parts. One for getting the ring group info. Another for getting the ring group user. 

If a user was not assigned to a ring group, then the query will fail to return a result. This will cause forward, prefix, distinctive ring, etc to not work properly.
2017-09-05 10:57:30 -06:00
Tatermen 1c5d730267 Use effective_caller_id_number instead of caller_id_number when storing voicemail messages. This resolves issue #2333. (#2728) 2017-09-01 09:32:06 -06:00
andycol 31575c25f7 Add South African Prefixes (#2811) 2017-09-01 08:54:02 -06:00
FusionPBX 91842f30b7 Update index.lua 2017-08-27 15:16:01 -06:00
FusionPBX 8170be475b Update index.lua 2017-08-27 15:11:31 -06:00
FusionPBX fd5d5b580a Update mwi_notify.lua 2017-08-23 23:05:51 -06: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
FusionPBX 5b69862bcc Update index.lua 2017-08-14 12:40:42 -06:00
FusionPBX c21011774b Update dialplan.lua 2017-08-07 00:28:31 -06:00
konradSC 3effd47d9e VM Password Complexity through the Phone (#2773)
* Update index.lua

Store password complexity settings as variables.

* Update macro.lua

Add macros for "password is below minimum length" and "password is not secure"

* Update change_password.lua

Adds the ability to check for password complexity and minimum length.

Also, fixes a bug where the password was changed if the caller hung up in the middle of changing their password.
2017-07-31 10:39:28 -06:00
konradSC dd96590619 Bug Fix: Not rerouting back to Advanced vm menu (#2768)
Need to pass in the "advanced" menu variable to functions in order to get back to Advanced menu.
2017-07-30 10:55:27 -06:00
FusionPBX 5a142bef69 Update index.lua 2017-07-29 23:06:43 -06:00
Alexey Melnichuk f308e2a30e Fix. Cache class. (#2755)
* Fix. Cache class.

 * `send_event` raise error so `Cache.del` did not remove key or send any event
 * use `memcache` method by default even if `cache` table does not defined in config
 * `Cache.get` did not return any data when use `memcache` method
 * `Cache.get` did not close file. (Its should not be a big problem because GC should do it by self).
 * `Cache.get` can returns some undefined global value. (if method is `file` and file not exists then method returns global `result` value)
 * `Cache.get` does not need check for file existence
 * Value escaping does not needed for `file` method
 * Needed different key escaping for `memcache` and `file` methods
 * Update self test

* Change. Use random names for temp files.
2017-07-26 09:40:53 -06:00
Alexey Melnichuk 272d1c2f30 Change. Use new service class to implement ha_monitor.lua (#2710)
This allows remove code related to create pid file and
handle system commands (e.g. to stop service) from service
file and leave it to base class.
2017-07-24 23:38:43 -06:00
FusionPBX d59678cb53 Update index.lua 2017-07-24 19:49:32 -06:00
FusionPBX 1066eaa5e8 Update index.lua 2017-07-23 23:40:39 -06:00
FusionPBX 4cba425e11 Update cache.lua 2017-07-22 15:18:20 -06:00
FusionPBX 5ddedc8afa Update cache.lua 2017-07-22 15:17:11 -06:00
FusionPBX 1804dcc344 Update cache.lua 2017-07-22 12:38:45 -06:00
FusionPBX cf0fbb0f93 Update cache.lua 2017-07-22 01:09:39 -06:00
FusionPBX 942293debe Update lazy_settings.lua 2017-07-22 00:38:25 -06:00
FusionPBX fce02cb024 Update index.lua 2017-07-21 18:05:23 -06:00
FusionPBX 8bd98f826b Update index.lua 2017-07-21 18:05:08 -06:00