Commit Graph

1463 Commits

Author SHA1 Message Date
FusionPBX 094b5f9c25 Update disa.lua 2019-10-01 12:58:16 -06:00
Stephen Forster d72718ea9f Fix table name, variables and syntax Follow me Lua (#4609)
* Fix table name, variables and syntax Follow me Lua

Correct the wrong table name on line 123. Correct the param on line 126 and correct the syntax on line 347.

* Update index.lua

Missing AND in where clause.

* Change order of preference Caller ID

Changed order of preference for Caller ID. If user exists should take preference over Follow Me override select caller ID.

This is my preference and my opinion only. May not be the desired effect of others. Perhaps a select option to choose a preference like the following options: Set caller ID override all, Local user else Caller ID
2019-09-30 17:18:27 -07:00
FusionPBX 49e254794d Update disa.lua 2019-09-29 15:35:26 -06:00
FusionPBX d8ecdaf503 Update directory.lua 2019-09-27 20:45:32 -06:00
FusionPBX d68159d0f9 Update directory.lua 2019-09-27 18:36:15 -06:00
agree de7f341d5f Update index.lua (#4663) 2019-09-26 15:31:57 -06:00
FusionPBX 1f8cca5217 Update recordings.lua 2019-09-25 16:46:52 -06:00
FusionPBX 0be53ec7b1 Update switch.sql 2019-09-24 21:36:13 -06:00
Luis Daniel Lucio Quiroz 52dd233fbf [4.5] Fix the cidlookup script (#4630)
* [4.5] Fix the cidlookup script

same as 4.4

* Update cidlookup.lua
2019-09-20 10:38:15 -06:00
FusionPBX fbd61b2e1a Update do_not_disturb.lua 2019-09-11 13:26:37 -06:00
agree c94e46b009 Update page.lua (#4510)
* Update page.lua

* Update page.lua
2019-09-11 02:40:56 -06:00
konradSC cf9d049292 Calculate timeout for Follow-me (#4528)
* Calculate timeout for Follow-me

Need to calculate the timeout for Enterprise RG members that have extensions with follow-me. 

The RG timeout should always take precedence over a follow-me timeout value. What we do is take the delay of the follow-me destination and subtract that from the ring group timeout to give us the total timeout of the destination. 

Example: 
RG 1: x1000 (Delay=0, Timeout=10)
RG 2: x2000 (Delay=10, Timeout=10)

x2000 has follow-me enabled
FM 1: x2000 (Delay=0, Timeout=15)
FM 2: x3000 (Delay=5, Timeout=20)

In this example we would want x2000 ring for 10 seconds and x3000 to ring for 5 seconds. 

What if we changed this... FM 2: x3000 (Delay 15, Timeout=20)

In this example we wouldn't want x3000 to ring at all because it would start to ring after the RG timeout has expired. Our calculated value would be a negative value, -5. These negative values don't work as leg_timeouts in the dialstring, so we need to test for them.

* Update index.lua

* Update index.lua
2019-09-09 14:05:53 -06:00
konradSC 33d4ad0685 Fix delay for external follow-me calls (#4526)
This is related to 9dcaddd814 (diff-b1f5588538149bd825603176ff81d714).

For internal calls the delay needs to be "Delay In Seconds * 500".
For external calls the delay needs to be "Delay In Seconds * 10000". 

For external calls I'm am just doubling the value set prior in the script.
2019-09-09 11:22:35 -06:00
konradSC fe532d04d2 Enterprise RG with Follow-Me (#4524)
We need to make sure that the delay for the leg takes into account the delay from the RG and from Follow-me. 

Also, let's use the timeout from the RG instead of the follow-me member
2019-09-09 10:50:31 -06:00
konradSC 62a9b26452 Use original_destination_number for timeout (#4521)
Need to lookup the timeout values for the original destination. The variable "destination_number" is being clobbered later in the script.
2019-09-09 08:40:54 -06:00
FusionPBX 0102349269 Update index.lua 2019-09-06 03:37:07 -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 e0b29d031d Populate toll-allow for Enterprise Ring Groups (#4496)
Add toll_allow to dialstring for external numbers
2019-09-04 13:05:57 -06:00
konradSC 9e301a0c97 Toll-allow into dialstring for external calls (#4495)
Insert toll-allow from the original extension into the dialstring for external calls.
2019-09-04 11:30:51 -06:00
FusionPBX f7c1235381 Update follow_me.lua 2019-09-04 10:22:11 -06:00
FusionPBX 78b57a8d29 Update follow_me.lua 2019-09-04 10:01:26 -06:00
FusionPBX c644994cee Update follow_me.lua 2019-09-04 09:42:42 -06:00
agree 08cbbc86ba Update follow_me.lua (#4491) 2019-09-04 09:35:05 -06:00
FusionPBX 601198e01a Update index.lua 2019-09-02 08:32:50 -06:00
FusionPBX 5cddd37b85 Update index.lua 2019-09-02 08:29:25 -06:00
FusionPBX 0fa4daf938 Update index.lua 2019-09-01 08:05:43 -06:00
FusionPBX 254a62c0a7 Update index.lua 2019-09-01 07:41:57 -06:00
FusionPBX db53713f5f Update index.lua 2019-08-31 13:05:01 -06:00
FusionPBX 2c934bdb2b Update index.lua 2019-08-31 12:54:03 -06:00
FusionPBX 9b57fc5bff Update index.lua 2019-08-31 11:28:31 -06:00
FusionPBX 7196e20e50 Update index.lua 2019-08-31 04:03:59 -06:00
FusionPBX b9f22994b5 Delete index.php 2019-08-31 01:46:26 -06:00
FusionPBX 33571292bb Create index.lua 2019-08-31 01:44:46 -06:00
FusionPBX 0f27db7a45 Create index.php 2019-08-29 09:11:42 -06:00
konradSC 8f139bcb89 Watson Transcription (#4420)
The following PR is for voicemail transcription using IBM Watson.
https://cloud.ibm.com/catalog/services/speech-to-text

The following values need to be configured in Default Settings:

Category: Voicemail
Subcategory: watson_key
type: text
Value: [Your Watson api key ]

Category: Voicemail
Subcategory: json_enabled
type: boolean
Value: true

Category: Voicemail
Subcategory: transcibe_language
type: text
Value: en-US

Category: Voicemail
Subcategory: transcribe_provider
type: text
Value: watson

Category: Voicemail
Subcategory: watson_url
type: text
Value: https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?model=en-US_NarrowbandModel

Category: Voicemail
Subcategory: transcribe_enabled
type: boolean
Value: true


Reload Default Settings. I Flushed Cache and Reloaded XML just for good measure.

Also make sure transcription is set to TRUE in your voicemail box.
2019-08-19 09:17:03 -06:00
FusionPBX b8e0ccb2c2 Update recordings.lua 2019-08-17 15:49:15 -06:00
FusionPBX eb7b589ccc Update record_greeting.lua 2019-08-17 15:30:41 -06:00
FusionPBX 5bb48c9d8e Update record_message.lua 2019-08-17 15:22:06 -06:00
FusionPBX 339337a668 Update record_greeting.lua 2019-08-17 14:58:06 -06:00
FusionPBX 4cb8916d90 Update recordings.lua 2019-08-17 14:37:08 -06:00
FusionPBX 9f23fcf6f5 Update recordings.lua 2019-08-17 14:28:26 -06:00
FusionPBX 8354f2409b Update recordings.lua 2019-08-17 14:18:25 -06:00
FusionPBX 8fa25d86d8 Update 010_get_domain.lua.noload 2019-08-11 17:10:00 -06:00
FusionPBX 32f24e7c67 Update disa.callback.lua 2019-08-11 17:08:45 -06:00
FusionPBX 8783ab4539 Update disa.callback.lua 2019-08-11 17:07:57 -06:00
FusionPBX 02c1baa778 Update index.lua 2019-08-11 17:05:41 -06:00
FusionPBX 8b4f412cad Update ring_member.lua 2019-08-11 17:03:06 -06:00
FusionPBX 96600afa16 Update destination.lua 2019-08-11 17:02:22 -06:00
FusionPBX ec73caf27d Update index.lua 2019-08-11 16:55:12 -06:00
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