Commit Graph

244 Commits

Author SHA1 Message Date
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 1bfbbdb262 Only write the scripts if the directory is set. 2016-04-03 09:29:37 -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