Commit Graph

213 Commits

Author SHA1 Message Date
demonspork
d53bac7f55 Dialplan Fix for Feature Key Sync Race
This is a dialplan approach to fix the feature key sync loop/race with yealink phones. This aproach may also need to be extended to the Call Forward dialplans as well. It limits the number of simultaneous calls for a particular user to change their DND/Forwarding status to a single call at a time. This prevents the infinite loops that the yealinks can get into if the user presses the DND button too quickly with feature key sync enabled.

I am also reverting the lua fix because it was not reliable and can still easily allow the loop to occur.
2021-04-06 15:35:40 -05:00
nemerald-voip
65c80c7d55 Fix broken script 2021-03-31 16:33:54 -07:00
nemerald-voip
6560f39c1d rebase file 2021-03-31 09:02:46 -07:00
nemerald-voip
c1057293b5 Fix voicemail transcription using Google
Transcriptions using Google were broken after last commit. 
transcribe_alternate_language was not defined anywhere it Google would return 400 error.
Added variable to fix the issue
2021-03-31 08:51:59 -07:00
FusionPBX
49adc1922a Merge pull request #5802 from netpro25/patch-1
Small error in Fax Retry.lua
2021-03-22 23:39:25 -06:00
FusionPBX
0af832a0a7 Merge pull request #5842 from junction1153/patch-9
Update record_message.lua
2021-03-22 22:06:26 -06:00
FusionPBX
325f4f1513 Change socket.sleep(0.2) to freeswitch.msleep(200) 2021-03-22 15:18:57 -06:00
Joseph
92fd572b33 Update record_message.lua
Additional flexibility for google transcription
2021-03-20 20:40:50 -04:00
demonspork
3ef6cf05db Merge branch 'master' into Fix-DND-Feature-Sync-Loop 2021-03-19 11:12:44 -05:00
demonspork
cf1dfe9070 Fix DND Feature Sync loop
Add Delay to prevent infinite feature key Loops on some phones (Yealink....)
2021-03-18 20:05:31 -05:00
Andrew Querol
7217da15f0 Update the feature event LUA code to match the fix in PHP
This renames `get_profile` to `get_profiles` which either returns nil for no profiles or a array of unique profiles.

Then each function that used to take the single sip_profile was updated to take this array and send events to each profile the user is part of.
2021-03-18 09:31:22 -05:00
FusionPBX
71532a0cea Merge pull request #5805 from demonspork/patch-2
Fix follow_me_uuid error when enabling DND
2021-03-17 17:44:28 -06:00
Luis Daniel Lucio Quiroz
fa12c4daea Update dtmf_handler.lua
Event-Date-Timestamp resolution is in microseconds, transfer_history is only seconds. We need have the same key.
2021-03-17 19:19:55 -04:00
Luis Daniel Lucio Quiroz
908e7f67d6 Update dtmf_handler.lua 2021-03-17 12:02:54 -04:00
Luis Daniel Lucio Quiroz
fc96e3ae77 DTMF handling
this will give the dtmf_history (similar to the transfer_history variable)

the use cases of this are only limited to the imagination
2021-03-16 15:43:21 -04:00
Andrew Querol
78276cb258 Only send MWI notifications for enabled voicemail boxes. 2021-03-11 11:55:02 -06:00
demonspork
d7eccddf25 Fix follow_me_uuid error when enabling DND
The follow me update code in do_not_disturb.lua was being executed even when the follow me uuid didn't exist. Let me know if this is the wrong approach to fix this in lua, I'm not particularly well versed in this but this seemed to have fixed it in my testing.

I have some concerns about this section of code in general though, it seems that enabling server side DND will turn off follow me, but then turning off DND won't return follow me to its original state. Is this the intended behavior? and if so we might need to make a workaround.
2021-03-11 11:29:05 -06:00
Marcel Manning
f03224cf16 Update retry.lua
Zero should not be wrapped in double quotes as it's causing an SQL error.

PGRES_FATAL_ERROR
2021-03-11 10:30:47.738673 [ERR] switch_pgsql.c:680 Error executing query:
ERROR:  invalid input syntax for type numeric: "'0'"
LINE 1: ...p/c8505148-1b02-4f6f-9157-b5cf64ebcc4d.tif','','','''0''',''...
                                                             ^
2021-03-11 10:59:11 -05:00
FusionPBX
f455e8fa94 Make sure the database object is accessible to Settings ojbect. 2021-03-08 18:12:31 -07:00
FusionPBX
5b3f849b4a Remove forward_caller_id_uuid field and minor code cleanup.
Minor code cleanup improve indentation, trailing spaces and add some line feeds.
2021-03-06 09:43:31 -07:00
FusionPBX
7cb17effe8 Remove follow_me_caller_id_uuid field. 2021-03-06 09:26:19 -07:00
FusionPBX
4f8413cc6a Remove forward_caller_id_uuid field. 2021-03-06 09:00:00 -07:00
FusionPBX
8e79821304 Remove forward_caller_id_uuid field. 2021-03-06 08:59:12 -07:00
FusionPBX
e69bebcbe8 Merge pull request #5778 from demonspork/cdr-stats-improvements
Improved Missed Call accuracy, cdr statistics, and hide duplicated CDRs from Enterprise Ring Groups
2021-02-24 17:37:27 -07:00
FusionPBX
fe92309901 Update index.lua 2021-02-23 21:00:56 -07:00
FusionPBX
d2ff58ee42 Update index.lua
Added a commented out resync option.
2021-02-23 20:56:37 -07:00
demonspork
c11589b1c3 Track Voicemail Message Success/Failure in CDR
Track whether or not a message was actually left in the voicemail box. Previously we only knew that voicemail answered, now we know whether the caller left a message.
Callers who didn't leave a message now show up in the "Cancelled" call filter in xml_cdr.php

Bonus: Fixed a bug with the originating_leg_uuid that was breaking extension summary from a previous commit and some other minor bugs/typos.
2021-02-21 21:09:37 -06:00
agree
74c7f236ff Follow me fix call recording 2021-02-11 12:59:34 -05:00
FusionPBX
34f6d3e068 Add support for extension_settings. 2021-02-09 13:23:59 -07:00
agree
9ad77b64bd Ring group fix missed call alert 2021-02-03 12:18:34 -05:00
agree
a39a65d21e ring group release database handle before bridge 2021-02-02 12:58:23 -05:00
agree
5fda5d811f call center agent record 2021-01-29 13:56:04 -05:00
konradSC
5efca5afa7 Bug Fix: No beep when bypassing the greeting
We found that callers were not hearing the tone_stream if they pressed "#" to bypass the voicemail greeting. Inserting a very brief silence_stream seems to fix the issue.
2021-01-15 08:31:21 -05:00
FusionPBX
597955da06 Add a feature for global call block. 2021-01-01 23:20:17 -07:00
FusionPBX
2931445c91 Get the domain_name with a different approach to fix global inbound routes. 2020-12-21 15:35:59 -07:00
FusionPBX
64822a388c Missing message_status to listen to the recording again.
Missing message_status to listen to the recording again causes to error out and return to the main menu without it.
2020-12-17 09:00:02 -07:00
S.Mohammad Emami Razavi
f531631ddb Update exec.lua 2020-12-16 18:23:52 +03:30
Zion Dials
53e1440e1d Update listen_to_recording.lua
Missing message_status to listen to the recording again causes to error out and return to the main menu without it.
2020-12-11 08:55:42 -05:00
agree
6504fbb6b0 Follow me set accountcode of the for external destinations
Accountcode of the called extension should be set for follow me
2020-12-10 13:40:11 -05:00
agree
a7712a7582 IVR menu fix Caller ID name prefix 2020-11-22 15:23:03 -05:00
FusionPBX
5ce78d835a Merge pull request #5582 from junction1153/patch-6
Updated code for v1p1beta1 API utilization
2020-11-17 18:56:02 -07:00
FusionPBX
815ff63296 Merge pull request #5587 from junction1153/patch-7
Add new_messages variable in VM Email template
2020-11-17 18:54:18 -07:00
FusionPBX
62929a36f5 Merge pull request #5583 from Andy-Seattle/patch-6
Update send_email.lua to choose correct email template
2020-11-17 18:37:26 -07:00
fusionate
832b3fae22 Call Block: Outbound call support. 2020-11-17 17:39:49 -07:00
Joseph
d58c26a389 Add new_messages variable in VM Email template
Ability to use ${new_messages} as a variable in the subject for voicemail to email template. Specifically useful for users who are migrating from asterisk and freepbx
2020-11-17 09:32:37 -05:00
Andy-Seattle
6c8a4ec135 Update send_email.lua
To handle scenarios where transcribe_enabled is true BUT voicemail_transcription_enabled is not true for specific voicemail boxes. Need to be able to switch between the email templates.
2020-11-16 20:12:45 -08:00
Joseph
cf2a7d200b Updated code for v1p1beta1 API utilization
Advanced --> Default Settings --> Voicemail.
Add: Category: voicemail
Subcategory: transcribe_provider
Type: text
Value: google
Enabled: true

Add: Category: voicemail
Subcategory: transcribe_enabled
Type: boolean
Value: true
Enabled: true

Add: Category: voicemail
Subcategory: json_enabled
Type: boolean
Value: true
Enabled: true

Add: Category: voicemail
Subcategory: transcribe_enabled
Type: boolean
Value: true
Enabled: true

Add: Category: voicemail
Subcategory: json_enabled
Type: boolean
Value: true
Enabled: true

Add: Category: voicemail
Subcategory: google_key
Type: text
Value: INSERT YOUR API KEY HERE
Enabled: true

Add: Category: voicemail
Subcategory: google_url
Type: text
Value: https://speech.googleapis.com/v1p1beta1/speech
Enabled: true
2020-11-15 01:03:58 -05:00
Greenbea
3f426baf62 Add gateway ping-min/max params 2020-11-11 01:15:46 -05:00
FusionPBX
e5cf6bde51 Update mwi_notify.lua
Add 0 as default values for new and saved messages.
2020-11-09 22:03:33 -07:00
FusionPBX
f5b4a54403 Create mwi_notify.lua
Add new mwi_notify.lua script.
2020-11-09 21:41:29 -07:00