Commit Graph

357 Commits

Author SHA1 Message Date
FusionPBX 0c91ac4feb
Don't use the extension dial_string to set the phone on DND. 2021-10-14 01:02:00 -06:00
hershyheilpern 23f95137f4
Add IVR Option to Call Block (#6059)
* add ivr option to call block
2021-10-14 00:27:59 -06:00
markjcrane e429756307 Change error/user_busy to USER_BUSY 2021-09-18 23:26:21 -06:00
agree 7fd5f53384
Voicemail use tail calls (#5984)
reference https://www.lua.org/pil/6.3.html
2021-09-18 10:36:37 -06:00
FusionPBX 17a7dff859
Delete commented out lines. 2021-09-18 10:34:28 -06:00
Luis Daniel Lucio Quiroz a66135e352
[4.5] Fix doube ivr_menu_cid_prefix (#6015)
You already do that in the dialplan, no need to do it here
2021-09-18 10:32:16 -06:00
agree f17a4e2e8e
[follow me] *21 don't null dial string (#6051)
* [follow me] *21 don't null dial string
2021-09-18 10:28:19 -06:00
FusionPBX 7353170563
Channel variable request_id=true is no longer needed. 2021-09-16 13:18:18 -06:00
markjcrane 11fd9ed86b Add sofia global settings 2021-09-04 22:31:07 -06:00
agree a2e4fd00bd
[Extension] Don't null dial_string when enable/disable follow me or dnd (#6000) 2021-08-25 10:28:26 -06:00
agree b0fef5135c
ring group lua minor improvement (#5998)
ring_group_distinctive_ring is always an empty string
2021-08-20 18:28:40 -06:00
FusionPBX e5df624536
Update page.lua 2021-08-02 17:13:00 -06:00
FusionPBX 9dc93980e1
Move show channels outside the loop to make it for more efficient. 2021-08-02 17:10:43 -06:00
FusionPBX 2bcb3b343b
Replace show channels like
Like statement failed for a customer replaced with show channels then search the results to destination is available or busy.
2021-08-02 16:47:47 -06:00
FusionPBX d9be32d422
Add [find_file.lua] to the logging and show file that wasn't found. 2021-07-08 12:41:22 -06:00
chansizzle 398b52fa23
date and time moved to envelope information (#5982) 2021-06-26 10:40:06 -06:00
FusionPBX 7bbdb8160f
Improve the code comment 2021-06-22 11:10:32 -06:00
FusionPBX 3a063bc2ff
Update call_flow_monitor.lua 2021-06-22 10:02:09 -06:00
chansizzle 87d47fe961
create voicemail envelope information option (#5966)
* create voicemail envelope information option

* Update voicemail.xml
2021-06-21 16:16:47 -06:00
agree 13c5d984f2
[voicemail] Add # option to go to next recording without saving the message (#5973)
This useful for shared voicemail boxes and a voicemail is meant for someone else or a person doesn't want yet to mark the voicemail as saved
2021-06-12 13:42:47 -06:00
emaktech f44467a2b5
Remove these as they break HTML emails. (#5969)
* Remove these as they break HTML emails. 
*  Remove quotes from Caller ID name and number. 

Same as following commits:

29c1d52533
c93c20c4e1
2021-06-10 01:10:32 -06:00
emaktech e9207b114e
Update index.lua (#5970)
* Remove these as they break HTML emails. 
* Remove quotes from Caller ID name and number. 

Same as following commits:

29c1d52533
c93c20c4e1
2021-06-10 01:09:58 -06:00
emaktech 0891590141
Remove these as they break HTML emails. (#5971)
* Remove these as they break HTML emails. 
* Remove quotes from Caller ID name and number. 

Same as following commits:

29c1d52533
c93c20c4e1
2021-06-10 01:09:29 -06:00
emaktech f6a5d171ca
Remove these as they break HTML emails. (#5972)
* Remove these as they break HTML emails. 
* Remove quotes from Caller ID name and number. 

Same as following commits:

29c1d52533
c93c20c4e1
2021-06-10 01:09:07 -06:00
markjcrane 9bf7b8c8ef Deprecate the meetings table and move the moderator and participant pins to the conference rooms table 2021-05-27 02:30:49 -06:00
FusionPBX c93c20c4e1
Remove quotes from Caller ID name and number. 2021-05-20 12:15:14 -06:00
FusionPBX 29c1d52533
Remove these as they break HTML emails. 2021-05-20 12:00:17 -06:00
FusionPBX e52cd61887
Merge pull request #5924 from greenbea/patch-34
[voicemail] allow setting greeting_number_id to default
2021-05-13 23:14:40 -06:00
markjcrane a7b014df6a Set session variables conference_room_uuid and conference_room_name 2021-05-07 18:19:40 -06:00
markjcrane 3ce6855116 Add hold_music support to ring groups 2021-05-06 15:09:34 -06:00
agree 60220abf33
[RIng Group] Improve presence
the whole point of ring group presence is to monitor the ringing state If the call was bridged or went to timeout destination the presence should be set to terminated
2021-05-03 17:26:49 -04:00
agree 09e5280f3e
[voicemail] allow setting greeting_number_id to defualt 2021-04-29 16:43:39 -04:00
FusionPBX 77064157d5
Merge pull request #5756 from greenbea/patch-19
IVR Menu fix menu options with same length as direct dial regex
2021-04-28 11:33:26 -06:00
FusionPBX 849c93ffd9
Merge pull request #5921 from greenbea/patch-32
Add presence support for ring groups
2021-04-27 22:43:15 -06:00
markjcrane a6e59c3522 Call Center Queue name change from uuid@domain to extension@domain 2021-04-27 22:42:09 -06:00
agree 17d35e6501 Ring group presence add missing channel variable
without presence_id set freeswitch won't update any presence changes for
a call
2021-04-27 23:34:36 -04:00
agree 00526b4334 Add presence support for ring groups 2021-04-27 11:55:19 -04:00
FusionPBX 55e2316a11
Merge pull request #5894 from greenbea/patch-29
Add max registrations per extension setting
2021-04-23 10:36:01 -06:00
FusionPBX c7076a9883
Merge pull request #5896 from konradSC/patch-91
MWI for Multi Registrations on Multi Profiles
2021-04-23 08:03:41 -06:00
agree 69e892e790 [callcenter] Add ability for callcenter presence
* Freeswitch requires callcenters to have queue_name@domain for presence to work
2021-04-22 18:51:25 -04:00
konradSC ac388f9229
MWI for Multi Registrations on Multi Profiles
Sometimes you can have multiple registrations for the same extension across multiple SIP profiles. This adds the functionality to fire an event for each unique SIP profile. I also added a check to see if we have already send an event for a profile since you don't want multiple events fired one SIP profile.
2021-04-16 11:08:57 -04:00
agree 5967dfbfaf Add max registrations per extension setting 2021-04-11 00:28:06 -04:00
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 b7eef0e69e
Fix negative lookahead 2021-02-03 23:29:10 -05:00
FusionPBX f43910e328
Update ivr.conf.lua 2021-02-03 16:25:08 -07:00
agree c4dfb7ce59 IVR Menu fix menu options with same length as direct dial regex 2021-02-03 17:23:51 -05: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
FusionPBX b494732eb7
Update mwi_notify.lua
Add debug information.
2020-11-09 21:38:04 -07:00
FusionPBX cfe259d868
Update send_mail.lua
Change header from X-FusionPBX-Email-Call-UUID to the correct value of X-FusionPBX-Call-UUID
2020-11-07 19:21:19 -07:00
FusionPBX 991fffa4ed
Update index.lua
Add call_block_country_code and handle e.164 automatically when the country code has been provided.
2020-11-02 11:10:45 -07:00
FusionPBX a5dadb650b
Update send_mail.lua
Use a more concise method to get default settings for email.
2020-10-27 20:42:09 -06:00
FusionPBX 54db7db4c3
Update send_email.lua
Add email_queue_enabled
2020-10-27 20:38:44 -06:00
FusionPBX afcbdaf676
Update record_message.lua
Improve the indentation
2020-10-27 20:02:19 -06:00
FusionPBX 6d0865acc8
Update send_mail.lua
Update local after email.
2020-10-22 22:09:08 -06:00
konradSC c2688fcf2a
Check for origination_callee_id_name
This was breaking when the variable wasn't set in the dialplan. 

Len discovered this :-)
2020-10-21 12:09:28 -04:00
Greenbea 3aa39634c9 ivr menu add pin number 2020-10-18 15:44:33 -04:00
Nate a770fd878c Voicemail: Enhance recording playback options. 2020-10-12 11:46:51 -06:00
FusionPBX ce2a772720
Update index.lua
Remove trailing space.
2020-10-10 13:29:15 -06:00
Nate 325da538c3 Voicemail: Adjust default greeting to accept * for remote access. 2020-10-08 18:05:20 -06:00
Nate c10d508ba8 Voicemail: Minor adjustment to play greeting script. 2020-10-08 16:18:02 -06:00
FusionPBX 4edb1d67ac
Update ivr.conf.lua
This was added to send calls to the IVR menu exit action when it reaches the ivr_menu_max_failures. However it causes a bug when ivr_menu_max_failures = 1 and IVR Menu Option has a digits larger than 2 which gets interpreted as a failure and then sent to the fail destination. This code causes a worse issue than it solves. Commenting out the code until finding a better solution.
2020-10-02 11:58:27 -06:00
Nate 85e9be8148 VM Scripts: Restore recording beep tone for add intro on vm forward. 2020-09-29 14:57:00 -06:00
Joseph 9b012a4405
Fix broken accountcode on fax retries (#5490)
accountcode would only appear on the sip header for the 1st retry. Added the accountcode parameter to the rest of the originate commands to resolve this issue
2020-09-26 22:46:07 -06:00
Joseph e164817bdb
Update index.lua (#5487)
Add the name of the voice mail box in the VM to email template. (part B)
2020-09-26 16:10:59 -06:00
Joseph 52f1b64947
Update record_message.lua (#5488) 2020-09-26 16:08:45 -06:00
Joseph 3934cc4810
Update send_email.lua (#5489)
Changed MM to MI, otherwise times would show as XX:09:XX. Appears that MM is not a valid value.
2020-09-26 16:07:36 -06:00
FusionPBX 53c3b9a7b0
Update send_email.lua 2020-09-26 16:07:03 -06:00
Joseph ec6303d0fe
Update send_email.lua (#5486)
Add the name of the voice mail box in the VM to email template.
2020-09-26 15:55:21 -06:00
Mark J Crane 78f50121dd Remove trailing spaces and add a sleep. 2020-09-26 01:16:08 +00:00
Nate 46adde4a22 Voicemail: Use phrases instead of direct sounds. 2020-09-25 16:58:44 -06:00
agree 0216ebee07
Update index.lua (#5484) 2020-09-23 12:10:50 -06:00
FusionPBX cf1b6eab3e
Voicemail message date using time zone 2020-09-19 08:48:31 -06:00
FusionPBX 56e56aa6f9
Comment out get variable record_name 2020-09-11 10:29:15 -06:00
graycom-git d4cc92e21f
Update index.lua (#5443)
Update to use effective_caller_id_name when prefixed on inbound routes as the caller_id_name when recording voicemail details in database
2020-09-08 09:52:54 -06:00
FusionPBX 93f5c996ae
Remove trailing tabs. 2020-09-08 09:50:17 -06:00
Mafoo 269c21d37b
BugFix [master] - ring_groups\index.lua (#5441)
change to use functions.send_mail so system from address is taken into account
2020-09-08 09:46:52 -06:00
FusionPBX 1db78cf7ea
Change dbh to db to fix an error seen in the logs. 2020-09-07 18:37:20 -06:00
FusionPBX baadb2185b
Transcription change how we are picking it up. 2020-09-02 15:58:42 -06:00
FusionPBX d7e085f9f7
Update send_email.lua 2020-09-01 19:24:03 -06:00
FusionPBX 4322d6dece
Add the server hostname. 2020-09-01 19:09:04 -06:00
FusionPBX b476f17af6
Disable transcribe_enabled if method is equal to queue. 2020-09-01 19:06:40 -06:00
agree 62e821087f
Fix follow me originate_delay for external numbers (#5432)
* Fix follow me originate_delay
2020-09-01 10:29:18 -06:00
FusionPBX d3f1bfc51e
email_status set to waiting 2020-08-31 12:31:40 -06:00
FusionPBX f7b715b399
Update send_mail.lua 2020-08-30 20:14:09 -06:00
FusionPBX d18123d679
Add extension_uuid to the agent contact 2020-08-28 14:20:16 -06:00
FusionPBX 7a38482459
Add additional a + to is local or SQL statement. 2020-08-27 21:50:22 -06:00
FusionPBX 1fcc06e622
Use caceh set only if dialplan_mode has a value. 2020-08-27 21:48:04 -06:00
FusionPBX cd4f709a20
Add cache.get and cache.set 2020-08-27 16:57:08 -06:00
FusionPBX c317a6ab1c
Update ivr.conf.lua 2020-08-27 15:27:19 -06:00
FusionPBX 32301f438a
Change vertical spaces. 2020-08-27 15:25:29 -06:00
FusionPBX 6abd91830f
Remove this as it causes a syntax error. 2020-08-27 13:23:22 -06:00
FusionPBX 8c1f42f50d
Update dialplan.lua 2020-08-27 13:02:38 -06:00
FusionPBX 2d838ff4d1
Rename dialplan_method to dialplan_mode. 2020-08-27 13:01:48 -06:00
FusionPBX cb2758193f
Update dialplan.lua 2020-08-27 10:19:44 -06:00
FusionPBX 07f0bf9829
Remove settings will not work without the domain_uuid. 2020-08-27 09:33:29 -06:00
FusionPBX b3ddc87077
Add destination_prefix and destination_area_code and capitlize SQL commands. 2020-08-27 09:23:49 -06:00
Andrew Querol ebab725771
[4.5] Allow changing the direct dial digits regex for IVRs (#5421)
* Modify ivr.conf.lua to allow changing the direct dial matching digits from default settings

This is needed to allow using direct dial with IVR options that overlap the default regex pattern.

* Add in the new direct_dial_digits setting to allow changing what triggers attempting a direct dial in IVRs
2020-08-27 08:04:48 -06:00
FusionPBX 66ee5d4546
Add destination_trunk_prefix and destination_area_code to the SQL Query. 2020-08-26 22:49:48 -06:00
FusionPBX 399366d18d
Add a delay to the agent status. 2020-08-25 14:11:29 -06:00
FusionPBX 11b4f96bf2
Change how sleep is performed. 2020-08-19 14:05:28 -06:00
FusionPBX 6d553542c5
Add sleep for 1 second.
On a few systems this required to fix dtmf detection.
2020-08-18 20:44:24 -06:00
FusionPBX 2e8f5d1f00
Update ivr.conf.lua 2020-08-13 16:40:55 -06:00