Commit Graph

421 Commits

Author SHA1 Message Date
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
emaktech 9bf45318a7
Allow Variable to Manually set Agent Status (#5383)
Adds a bit of additional logic to allow the following variable to be set in dialplan:

agent_action

When set to login, this script will always log the agent in regardless of current state.
When set to logout, this script will always log the agent out regardless of current state.
When unset, original behavior is preserved.

The reason for adding this code is to allow us to create a dialplan that puts a user on DND at the same time as logging out the agent, and vice-versa.
2020-08-05 21:42:13 -06:00
Gill Abada d19e81bb22
feature add mask/unmask recordings in real time. white space cleanup. (#5373)
Co-authored-by: Gill Abada <gill@callifi.com>
2020-07-31 10:01:36 -06:00
agree 3d9e249cc9
Conference recording missing ext (#5368) 2020-07-29 12:29:41 -06:00
FusionPBX 14a3ff4e9a
pgsql host 2020-07-25 09:36:44 -06:00
konradSC 6faadabea8
Fix for follow-me loops in Ring Groups (#5362)
We only want to lookup the follow-me destinations for ring group members. If additional numbers are added to the destination array via follow-me lookup then we don't want to check for follow-me again on the new destinations. This can result in a lookup loop that will cause the call to not complete and throw lua into a loop that will fill up logs and burn system resources.
2020-07-22 11:54:27 -06:00
agree cb7a604226
Add ability to have custom directory prompt (#5360) 2020-07-21 10:15:01 -06:00
agree 0cdab532ef
set domain_uuid variable (#5345) 2020-07-12 16:23:20 -06:00
agree 59bd5a9e54
Add domain_uuid variable (#5344) 2020-07-12 15:47:54 -06:00
agree 9dc180626a
xml handler: fix duplicate gateways and unnecessary query (#5341) 2020-07-09 17:49:19 -06:00
Len ff1477e2ef
Update callcenter.conf.lua (#5326)
updated unused variable/typo
2020-07-02 18:37:41 -06:00
FusionPBX fc8746c87e
Company directory add order by first name 2020-07-02 12:23:55 -06:00
agree 836fe64cf6
pin_number.lua get pin number description (#5322)
* Update pin_number.lua
2020-06-26 10:07:07 -06:00
Chris Black 9b3de1d895
Update scripts.php (#5263)
fix so that if user has a hostname instead of IP address the config.lua gets written correctly
2020-06-25 00:44:57 -06:00
agree 5ec163b488
Update ivr.conf.lua (#5309) 2020-06-22 10:20:37 -06:00
FusionPBX 96a261e444
Add dialplan context global. 2020-06-21 00:01:28 -06:00
FusionPBX bcc990e84f
Fix follow me calls to external destinations. 2020-06-19 20:14:28 -06:00
agree 4a67c9c0bd
Update ivr.conf.lua (#5306) 2020-06-18 11:38:32 -06:00
FusionPBX ddc27525a8
Combine related IVR menu XML. 2020-06-17 19:27:22 -06:00
agree 0671ed9f1e
Update ivr.conf.lua (#5304) 2020-06-17 10:47:41 -06:00
Nate eddef554a7 Voicemail: Resolve 'undefined parameter' error in logs upon voicemail playback. 2020-05-28 19:14:01 -06:00
FusionPBX b2295da641
Change sip_from_user to user_name for greater flexibility. 2020-05-26 15:49:47 -06:00
FusionPBX 4672cb1115
More work to remove HESITATION from the translation. 2020-05-21 18:55:41 -06:00
FusionPBX 8100f968c3
Fix the indentation and white space. 2020-05-21 18:24:13 -06:00
FusionPBX 113b9d15d1
IBM Watson remove *HESITATION 2020-05-20 20:06:16 -06:00
FusionPBX be39ad99eb
Update call_flow add sleep before uuid_display. 2020-05-19 17:36:11 -06:00
Luis Daniel Lucio Quiroz 3a2265d92b
[4.5] prevents routing errors (#5276)
* [4.5] prevents routing errors
* Update directory.lua
2020-05-18 13:53:43 -06:00
emaktech 064b999fef
Attach PDF on Sent Fax Email Instead of TIF (#5277)
Small change that attaches a pdf copy of the sent fax rather than the tif by replacing the extension in the file path.

PDF files are dramatically smaller and more user friendly than TIF files.
2020-05-18 13:51:08 -06:00
FusionPBX e08c49df10
Move the connection string and add new local settings. 2020-05-18 13:44:17 -06:00
FusionPBX 73cf589159
Make follow_me_strategy more flexible. 2020-05-18 13:21:13 -06:00
FusionPBX 20d6349601
Update index.lua
Remove code that is not needed.
2020-05-12 12:44:40 -06:00
agree 3883814c08
Update index.lua (#5268) 2020-05-12 12:40:38 -06:00
FusionPBX 85052f08e4
Update index.lua 2020-05-07 14:03:31 -06:00
konradSC e1f4f97485
Remove hard coded setting for moderator conf ctls (#5221)
Conference Controls for moderators are hard coded. Because of this you cannot use the Conference Controls app in the web interface to create a new set of moderator controls and set them in the Conference Profile.
2020-05-07 14:01:38 -06:00
agree 30be1a99a8
Add optional endconf flag for conference moderators (#5245)
* Update index.lua
* Update app_languages.php
* Update app_config.php
* Update conference_room_edit.php
* Update app_config.php
* Update conference_room_edit.php
* Update app_languages.php
* Update index.lua
2020-05-04 22:15:16 -06:00
FusionPBX 61896c3e3f
Update index.lua 2020-04-25 11:43:44 -06:00
saraxxin 5bdfe348f2
Set new channel variable (#5238)
New channel variable added so that one may hook on to DISA calls which are not local.
New variable: disa_outbound
2020-04-24 10:09:59 -06:00
agree effb8c74ea
Update index.lua (#5239) 2020-04-24 10:08:40 -06:00
Redbehrend 210bc253d6
Update index.lua (#5241)
* Update index.lua

added confirm to random ring group, quick fixed random sort for low endpoint ring groups so the likelyhood of the same extension coming up 5-8 times in a row is MUCH lower

* Update index.lua

two randoms added too much query time just simplified not the same results but still better than just plain random()

* Fixed Yealink Account 6 Errors

Fixed Yealink Account 6 Errors (misstyped)

* Revert "Fixed Yealink Account 6 Errors"

This reverts commit 7e48d32a33.
2020-04-24 00:27:50 -06:00
agree 47de6eee03
Update index.lua (#5240) 2020-04-22 23:13:25 -06:00
FusionPBX d456f95cee
Update callcenter.conf.lua 2020-04-21 14:43:00 -06:00
FusionPBX 6d4ad6358d
Update callcenter.conf.lua 2020-04-17 16:27:45 -06:00
agree 755fa078d5
Fixed group_confirm_key for rollover strategy (#5236)
* Update index.lua
2020-04-17 14:06:54 -06:00
FusionPBX 07ccad5671
Update index.lua 2020-04-10 22:40:04 -06:00
markjcrane a6977be1dc Call Broadcast add start time 2020-04-01 19:30:49 +00:00
agree 31d199a637
Conference center announcement control (#5224)
* Update conference_room_edit.php
2020-03-31 15:51:00 -06:00
racitup 58061a188b
Fix followed_by recording reference (#5222) 2020-03-31 13:58:04 -06:00
hershyheilpern c1f47f31da Conference center raise hand feature (#5212)
* Update app_languages.php
* Update conference_interactive_inc.php
* Update conference_exec.php
* Create raise_hand.lua
* Update conference.conf
* Update app_languages.php
2020-03-26 21:22:44 -06:00
Luis Daniel Lucio Quiroz 296fdead32 [4.5] Fix fax email Subject when not using sofia/gatewa (#5204)
Same as 4.4
2020-03-25 15:45:15 -06:00
FusionPBX 38683c6a97 Update index.lua 2020-03-24 18:20:01 -06:00
FusionPBX d229a329c8 Update index.lua 2020-03-21 13:27:07 -06:00
FusionPBX f9fa55f2e7 Update index.lua 2020-03-21 13:16:58 -06:00
konradSC 609be158da Setting a conference room sounds=false (#5189)
Right now settings a conference room's to 'sounds=false' doesn't do anything. This fixes that bug. 

Additional updates to the script most likely need to be made after this so that conference_enter_sound and conference_exit_sound honor the value specified in the conference profile. I didn't see any code referencing the conference profile values for sounds.
2020-03-20 13:29:44 -06:00
FusionPBX 329afeb6b3 Update index.lua 2020-03-17 15:01:58 -06:00
agree 7ac144fe05 Added ringback silence capability (#5162)
* Update format_ringback.lua

* Update ringbacks.php
2020-02-27 15:42:07 -07:00
FusionPBX 9ad8899565 Update blf_subscribe.lua 2020-02-24 23:45:35 -07:00
FusionPBX 572d0b7dca Update directory.lua 2020-02-14 16:14:45 -07:00
FusionPBX eee2f6eff0 Update index.lua 2020-02-13 18:51:02 -07:00
Nate 3e729537a6 Voicemail: Fix email download link. 2020-02-13 07:15:59 -07:00
Adrian Fretwell d5823a88c3 Update cidlookup.lua (#5134)
Added callee parameter to SQL query and changed v_destinations.destination_number to look at callee.
2020-01-28 21:33:10 -07:00
FusionPBX 2e36e47f66 Update index.lua 2020-01-23 19:54:43 -07:00
FusionPBX d795ee62d1 Update scripts.php 2020-01-17 17:55:42 -07:00
FusionPBX 4a31db0ed6 Update scripts.php 2020-01-17 17:53:36 -07:00
markjcrane ca5a824bb5 Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
FusionPBX f1b3af3bb8 Update scripts.php 2019-09-26 08:33:45 -06:00
Nate 836fb87136 Misc Classes: Database class integration. 2019-09-02 15:57:18 -06:00
jpattWPC 4ae27f13b6 Add support for PostgreSQL TLS (#4262)
This commit adds support for PostgreSQL TLS communication. This requires /etc/fusionpbx/config.php to have two parameters added:

$db_secure = true;
$db_cert_authority = "/path/to/ca.crt";
2019-06-05 21:10:58 -06:00
FusionPBX 222bb23321 Update scripts.php 2018-04-23 11:26:31 -06:00
FusionPBX d528775e10 Update scripts.php 2017-07-22 00:48:46 -06:00
Mafoo 7bdea2c30c dos2unix (#2682)
find . -name "*.php" | xargs dos2unix
2017-06-12 22:09:36 -07:00
Luis Daniel Lucio Quiroz ea669cbf69 Let the apps be more self-contained regarding LUA scripts (#2440)
At this moment, all LUA scripts must be at resources/install/script, this patch allows applications to be more self-contained by having app/*/resources/install/scripts directory, which it will be copied to the scripts_dir directory as well.
2017-03-22 09:25:33 -06:00
FusionPBX 6cd7ee770e Update scripts.php 2017-02-09 00:19:55 -07:00
Luis Daniel Lucio Quiroz 7ec779419b SCRIPTS: PHP bin is not always php5 (#2352) 2017-02-07 21:32:39 -07:00
Richard Neese 3a5fe74230 fixing debian pkg installs (#2363) 2017-02-07 15:52:44 -07:00
FusionPBX f26e4e7d6f Update scripts.php 2017-01-10 01:41:29 -07:00
FusionPBX a963aad9b1 Update scripts.php 2017-01-10 01:36:59 -07:00
FusionPBX a6b3ab1243 Update scripts.php
Add expire.default and expire.ivr.
2016-12-14 08:41:35 -07:00
FusionPBX bda099197c Update scripts.php 2016-10-23 13:00:31 -06:00
Alexey Melnichuk 28d3ebb51f Allow use odbc to store files (record/voicemail) in database. (#1535)
* Change. Allow use odbc to store files (record/voicemail) in database.

* Fix. Generate correct default config.
2016-09-04 13:05:47 -06:00
FusionPBX 80808959d2 Update scripts.php
Add conf_dir to lua.conf
2016-08-08 09:35:06 -06:00
FusionPBX 1ceee17605 Update scripts.php
Remove the extra ) to fix the syntax.
2016-07-08 17:09:09 -06:00
Mafoo 904a52434a BugFix-Add PROJECT_PATH for lua (#1740)
added project_path for lua to use where it needs to build urls
2016-07-08 13:12:37 -06:00
Alexey Melnichuk 2b2ca19da0 Fix. generate XXX_dir options in config.lua (#1709) 2016-06-26 13:45:57 -06:00
Alexey Melnichuk 78d8619cfd Fix. generate correct config file. (#1708) 2016-06-26 13:18:49 -06:00
Alexey Melnichuk f8c2904aaf Add. option to store setting in memcache. (#1707) 2016-06-26 11:43:32 -06:00
markjcrane 8936f46782 Add settings array to the config.lua. 2016-06-24 14:50:55 -06:00
FusionPBX 4f35edbc49 Update scripts.php
Remove this code as its breaking the upgrade page when migrating from source to package paths.
2016-05-15 08:57:59 -06:00
Harry G. Coin 077059eeb1 Fix so fusionpbx doesn't fail on servers with php versions later than 5. (e.g. php7).
Also a few warning causes fixed.
Also, one step along the way to allow freeswitch to be u freeswitch g freeswitch and fusionpbx to run www-data:www-data.
2016-04-25 20:52:21 -05:00
Harry G. Coin bda6861f88 \r\n --> \n
Cause all the .php files containing lines ending with \r\n to instead end with \n.

DYI with:

find fusionpbx -type f -name '*.php' -exec dos2unix '{}' \;
2016-04-25 20:30:23 -05:00
markjcrane 38922f6bc5 Restore the path to config.lua. 2016-04-16 00:44:10 -06:00
markjcrane 6b7513dcb0 Use the connect method in the constructor. 2016-04-16 00:27:24 -06:00
markjcrane 9c0c7dbfcf Get the db_type, db_username, db_password, and more using the constructor. 2016-04-16 00:21:01 -06:00
markjcrane 37e42ae754 Set the full path to the config.lua script. 2016-04-15 23:16:19 -06:00
markjcrane 44850f0246 Set the sciprt directory from the session variable. 2016-04-15 19:57:29 -06:00
markjcrane 4b55af24f7 Add class_exists 2016-04-14 23:23:14 -06:00
markjcrane 317a47582e Update the scripts class. 2016-04-14 23:09:49 -06:00
markjcrane 0080578811 Update the script.php class use session event socket information for now. 2016-04-04 23:27:41 -06:00
markjcrane df9d78a11f Get the script_dir path from event socket. 2016-04-03 09:47:58 -06:00
markjcrane 194dccfd93 Use is_dir instead of check for the length of the stirng. 2016-04-03 09:36:27 -06:00
markjcrane 3ad26f1965 Change expire["sofia_conf"] to expire["sofia"] and expire["acl_conf"] to expire["acl"]. Then add a default value to prevent nil errors when the conf.lua script has not been updated. 2016-04-02 08:32:43 -06:00
markjcrane 4a31b2343e Change to the new context require renaming two variables to be consistent and to prevent a problem. 2016-03-24 23:08:23 -06:00
markjcrane b11b98da52 Change sytnax from database["name"] to database.name in the config.lua. 2016-03-24 20:15:09 -06:00
markjcrane 9249e1db9a On windows force to / instead of the backslash \ as path. This fixes a problem where recording c:\pathtofusionpbx\recordings fails because the \r gets understood as a carriage return in the session:record in FreeSWITCH. 2016-03-24 15:02:04 -06:00
mafoo 3b438926b6 WhitespaceClean-app/batch_1
whitespace pass over files
for reference regex that was used s/[ \t]+(\r?\n)/\1/
2016-03-11 11:56:29 +00:00
markjcrane 3fc3e0114b Set the $db as a global variable in the class. 2015-12-20 22:54:08 -07:00
markjcrane 515d069f0e Use the system function for recursive copy. 2015-12-20 22:52:40 -07:00
markjcrane 7927102a16 Fix a problem caused with a search and replace on the correct_path method. 2015-12-20 22:50:33 -07:00
markjcrane 1f2a1b754e Add app/scripts to add a new scripts class and app_defaults to copy the lua scripts and write the config.lua. 2015-12-20 22:47:48 -07:00