Commit Graph

1463 Commits

Author SHA1 Message Date
konradSC 05f44474de Filter out percent signs in transcriptions (#4419)
The percent sign (%) is a special character for gsub.
2019-08-08 03:48:55 -06:00
FusionPBX 17ccc409dc Update sofia.conf.lua 2019-08-08 02:21:35 -06:00
FusionPBX 5215dcdddc Update page.lua 2019-08-04 13:59:23 -06:00
FusionPBX 38d8120bfe Update index.lua 2019-06-28 13:12:04 -06:00
emaktech f44ed4370c Fix Ring Group Delay Timing (#4003)
This is going to sound really stupid but I have tested this extensively, submitted a Jira on it months ago (was told FS 1.6.20 was no longer supported) and it's still an issue. Please do not take my word for this and create a ring group to test the delay settings with a stopwatch and you should see the real vs set delay discrepancy.

In FreeSWITCH (both on 1.6.20 and 1.8.5) when sending leg_delay_start values, for whatever reason the actual time is double the value sent. The result of this is that if you send 1000ms as leg_delay_start the actual time the call will be delayed is 2000ms.

Because of this bad behavior, ring group delay settings end up being exactly double what is set. e.g. if you set 10s, you will have to wait 20s for the call to be initiated on leg b.

The easiest way to fix this behavior is to simply multiply leg_delay_start by half as much to get the right "real" delay time. Ugly, I know... I'm not sure if leg_delay_start value is passed elsewhere, I'm thinking this behavior may also be present in find me/follow me. If this gets accepted I will look for other locations where this behavior occurs and submit separate PRs if I find any other instances of this.
2019-06-21 22:04:14 -06:00
FusionPBX 70fffb8e37 Update hangup_rx.lua 2019-06-14 23:59:37 -06:00
FusionPBX baea8db575 Update fax_retry.lua 2019-06-14 23:56:56 -06:00
FusionPBX e53860eb47 This code actually breaks inbound fax email. Commented it out and it works again. 2019-06-11 18:42:58 -06:00
FusionPBX 8ac8f04872 Update hangup_rx.lua 2019-06-11 02:58:52 -06:00
blackwolfresearch ece98a9c01 Security Fixes (#4268)
* Updated fixes for CVE-2019-11409

* Fix for XSS - (CVE-2018-19094)

* Fix for fax cmd injection (CVE-2018-19096)
2019-06-06 18:46:00 -06:00
jpattWPC 3a6dcdd340 Allow Phrases to be used in IVRs (#4263)
With the current implementation, Phrases cannot be used in IVRs as streamfile.lua prevents keypresses from being passed back to the IVR. This fix makes a small change to the way phrases are stored and allows streamfile to be run without blocking IVR keypresses.
2019-06-05 21:12:13 -06:00
FusionPBX ce8ac1d3e2 Update index.lua 2019-06-03 08:24:13 -06:00
Bryan Redeagle 9e0826ab3c Added support for Digium D-Series phones. (#4229) 2019-06-02 10:01:54 -06:00
FusionPBX de1a35e912 Update index.lua 2019-06-01 15:07:49 -06:00
FusionPBX 8679b58680 Update record_message.lua 2019-05-30 01:53:35 -06:00
emaktech e1a54c9ec9 Fix Call Block Type Setting Check
When setting call_block_matching, the setting was not being evaluated as true because it was looking for 'call block' group when the actual name is 'call_block'.

Adding the underscore fixes this small syntax issue and the setting works correctly.
2019-05-28 14:27:29 -04:00
FusionPBX 8453b0c1c0 Update dialplan.lua 2019-05-23 13:48:21 -06:00
FusionPBX 143e6e26df Merge pull request #4067 from daniel-lucio/patch-106
Add another working way to use Azure Speech to Text service
2019-05-21 10:58:14 -06:00
Adrian Fretwell ff8fb4bd15 Update cidlookup.lua
Added and optional parameter, argv[2], to take a domain_uuid.  This is to fix an issue where if two contact records exist with the same phone number, but in different domains, the CID lookup would always pick the same contact record irrespective of which domain the inbound number belonged to.
2019-05-18 12:21:33 +01:00
Luis Daniel Lucio Quiroz b16ab8f002 Update record_message.lua 2019-05-03 23:54:51 -04:00
Luis Daniel Lucio Quiroz ccb0369805 Add another way to use Azure Speech to Text service
This patch adds BING (legacy) some extra fault tolerance support. For those who still use Bing, Bing sometimes fails
It adds another way, which I think it is easier and faster (Azure). Among the outstanding things it has; just configure the zone, and use Memcache to store the access token as per Azure documentation, it saves a query (faster). It also returns the most likely right transcription (digging in the JSON)
2019-04-30 23:34:34 -04:00
FusionPBX 991adcf82f Update index.lua 2019-04-29 14:38:46 -06:00
FusionPBX 601bde9aec Update follow_me.lua 2019-04-24 09:06:16 -06:00
FusionPBX d2d6cc2599 Update send_mail.lua 2019-04-18 09:44:09 -06:00
FusionPBX a789109120 Update index.lua 2019-04-10 09:46:30 -06:00
FusionPBX 6115b4459a Update index.lua 2019-04-10 09:40:36 -06:00
FusionPBX 9448f4fc8b Update index.lua 2019-03-22 18:30:17 -06:00
FusionPBX 976580d5d7 Update recordings.lua 2019-03-19 17:31:53 -06:00
FusionPBX e95387b90c Update index.lua 2019-03-16 03:20:16 -06:00
FusionPBX bbf8293c24 Update recordings.lua 2019-03-14 23:41:06 -06:00
FusionPBX f4c656e100 Update directory.lua 2019-02-20 10:34:19 -07:00
FusionPBX 7c74f9938a Update index.lua 2019-02-20 09:57:37 -07:00
FusionPBX b5c3bc27b7 Update index.lua 2019-02-20 08:34:18 -07:00
FusionPBX f1b1f58867 Update macro.lua 2019-02-19 19:34:40 -07:00
FusionPBX 3e3d16c62e Update macro.lua 2019-02-19 19:33:25 -07:00
FusionPBX 3f074de023 Update index.lua 2019-02-12 18:22:35 -07:00
FusionPBX 7a20286a62 Update index.lua 2019-02-09 08:17:30 -07:00
FusionPBX a452da5a01 Update 010_user_record.lua.noload 2019-02-08 08:10:06 -07:00
FusionPBX 10b4294ed3 Update index.lua 2019-02-05 19:55:24 -07:00
FusionPBX f74a04b925 Update 010_get_domain.lua.noload 2019-02-05 19:34:34 -07:00
FusionPBX af9317e662 Update directory.lua 2019-02-05 19:26:26 -07:00
FusionPBX 34a5dbd794 Update dial_string.lua 2019-02-05 18:22:29 -07:00
FusionPBX 9e663ab49e Update index.lua 2019-02-05 18:14:28 -07:00
FusionPBX 55c5d72070 Update languages.lua 2019-02-03 12:54:37 -07:00
FusionPBX a10d42e038 Update dialplan.lua 2019-02-03 12:51:03 -07:00
FusionPBX f0fce68afc Update index.lua 2019-02-02 18:00:59 -07:00
FusionPBX f06ff3db3e Update call_forward.lua (#3976) 2019-01-24 22:55:52 -07:00
konradSC 432052ba26 Ring Groups with Follow-Me (#3970)
Two things:

1. Follow-me should only kick in when using "Enterprise". As it was written, follow-me was looked at for every strategy. 

2. Follow-me destinations were writing to 'destinations[x]'. They should write to 'destinations[key]' so they rewrite the current destination that is being analyzed.
2019-01-22 11:03:28 -07:00
ednt 99d92f73be To allow recording termination when the extension is entered by menu (*98) (#3956)
It was not possible to terminate a recording with a keypress when *98 was used.
*98ext was working.
2019-01-09 13:49:08 -07:00
FusionPBX c3e95ea2df Update index.lua 2019-01-03 17:20:33 -07:00
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