Commit Graph

238 Commits

Author SHA1 Message Date
jpattWPC aff12f0e68 SMS bugfix (#4850)
This SMS bugfix works out two issues:
* SMS permissions were not properly included. This causes SMS functionality to be inaccessible if the system implementor works out a Lua SMS implementation
* If voicemail transcription doesn't exist for the voicemail the send_sms.lua script crashes. Added a nil check to prevent this.
2019-11-22 19:45:39 -07:00
FusionPBX 357ca20e28 Update index.lua 2019-10-30 19:52:31 -06:00
Andy-Seattle cc4494eb15 Update record_message.lua (#4762)
IBM Watson supports MP3 transcription and my testing shows it is very similar to WAV in terms of overall quality.
The benefit, of course is it greatly reduces the voicemail file size.
If MP3 is not set for the system then it will use WAV.
If other users prefer having the option of MP3 for the system but WAV for Watson transcription we could add a new variable for Watson transcription and add this new variable as a qualifier.
2019-10-09 11:13:29 -07:00
Andy-Seattle b024bab1cc Update record_message.lua (#4731)
When we have MP3 enabled we want ALL voicemails to be MP3 EXCEPT the ones that need to be transcribed, which will be WAV.

When transcribe_enabled is set to true, ALL voicemails currently become WAV even when MP3 is set.

This change ensures that ALL voicemails remain MP3 except the extensions that have voicemail_transcription_enabled set to true.

Note: The reason this was not working is because setting transcribe_enabled to true also sets voicemail_transcription_enabled to false for ALL extensions BUT it is not written into the database. Therefore a SAVE is required for ALL voicemails to ensure this field is written to the database. Changing to ~=true gets around this problem.
2019-10-04 08:45:45 -07:00
agree de7f341d5f Update index.lua (#4663) 2019-09-26 15:31:57 -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 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 02c1baa778 Update index.lua 2019-08-11 17:05:41 -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 8679b58680 Update record_message.lua 2019-05-30 01:53:35 -06: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 e95387b90c Update index.lua 2019-03-16 03:20:16 -06: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
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
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
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 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
FusionPBX 1137d9a634 Update record_greeting.lua 2018-04-30 10:32:05 -06:00
FusionPBX d35b3fd002 Update send_email.lua 2018-03-24 15:16:33 -06: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
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
FusionPBX 3756c2cb65 Update send_email.lua 2017-12-17 01:51:39 -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
Luis Daniel Lucio Quiroz dea1bf390c Same as 4.2 (#2898) 2017-10-30 12:40:05 -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
Alexey Melnichuk f91c6eb163 Change. Use BasicEventService to implement MWI service. (#2855) 2017-10-06 13:13:33 -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
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
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
FusionPBX fd5d5b580a Update mwi_notify.lua 2017-08-23 23:05:51 -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 04e8f7f522 Create menu_messages.lua 2017-06-10 23:53:12 -06:00
FusionPBX c80f8668da Create menu_messages.lua 2017-06-10 23:06:29 -06:00
FusionPBX a2da52bf46 Create index.lua 2017-06-10 23:03:22 -06:00
FusionPBX ed95497c2f Create record_message.lua 2017-06-10 22:57:51 -06:00
FusionPBX 44a43a43f0 Create index.lua 2017-06-10 22:50:40 -06:00
FusionPBX 7e6d4d3c50 Update listen_to_recording.lua 2017-06-06 21:16:55 -06:00
FusionPBX 8403a806cc Update index.lua 2017-06-06 21:16:47 -06:00