Commit Graph
100 Commits
Author SHA1 Message Date
emak 800e742387 Disable fax sending when domain is disabled (#6606)
* Add warning_bar style for disabled fax sending

Add styles for .warning_bar class when fax server sending is disabled due to disabled domain.

* Disable fax sending if domain is disabled

When domain is disabled, users should not be able to send faxes either.

* Add text for fax sending disabled warning
2023-04-10 09:31:16 -06:00
emakandFusionPBX 21b639cd8e user_exists: Add extension_caller_id_name and extension_caller_id_number (#6540)
* Add extension_effective_caller_id_name and extension_effective_caller_id_number

Adds 2 new variables to the user_exists dialplan:

* extension_caller_id_name
* extension_caller_id_number

This allows us to access these channel variables from the event socket and get the caller id name and number of the dialed extension when an inbound call comes in to that extension.

* Update 010_user_exists.xml

---------

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2023-01-27 10:11:53 -07:00
emak bfbfd8a99b Add French translations for email_address labels (#6494) 2022-11-21 19:25:43 -07:00
emak e52f6626f9 Fix fax_queue to Email PDF Instead of TIF (#6461)
* Fix fax_queue to Email PDF Instead of TIF

Variables `$fax_file_tif` and `$fax_file_pdf` are missing a period before the extension so file_exists is always evaluating to false. Thus, TIF was always sent. Adds the period back into the path so the check works correctly.

NOTE: `$fax_file_tif` is completely unused and can be removed from this code for cleanup.

* Use single quotes.
2022-08-22 10:10:31 -06:00
emak 26b3e7893b Add Fax Queue TX Email Variables (#6460)
* Add db field to v_fax_queue to link to fax log

* Add fax_duration field to v_fax_logs

Add fax duration to db to allow for logging of this data for fax email templates.

* Add new email variables to fax send

* Fix some logging variables and fax_log_uuid

Added back some missing session variables for the fax log.

Also update the email queue db field with the fax_log_uuid to allow us to add variables to the fax email templates later.

* Update hangup_tx.lua
2022-08-19 18:08:43 -06:00
emakandFusionPBX 3ec9cdaba1 Update deprecated sip profile params (#6445)
* Update deprecated sip profile params

Parameter names have changed. See here: https://freeswitch.org/confluence/display/FREESWITCH/Sofia+Configuration+Files

When starting a profile, the following warnings would appear:
[WARNING] sofia.c:5332 rtp-hold-timeout-sec deprecated use media_hold_timeout variable.
[WARNING] sofia.c:5325 rtp-timeout-sec deprecated use media_timeout variable.

Updating the parameters fixes the issue.

* Update external.xml.noload

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2022-08-01 08:38:35 -06:00
emakandFusionPBX 2f8ba11520 Update deprecated sip profile params (#6444)
* Update deprecated sip profile params

Parameter names have changed. See here: https://freeswitch.org/confluence/display/FREESWITCH/Sofia+Configuration+Files

When starting a profile, the following warnings would appear:
[WARNING] sofia.c:5332 rtp-hold-timeout-sec deprecated use media_hold_timeout variable.
[WARNING] sofia.c:5325 rtp-timeout-sec deprecated use media_timeout variable.

Updating the parameters fixes the issue.

* Update external-ipv6.xml.noload

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2022-08-01 08:37:24 -06:00
emakandFusionPBX 9bd300db84 Update deprecated sip profile params (#6446)
* Update deprecated sip profile params

Parameter names have changed. See here: https://freeswitch.org/confluence/display/FREESWITCH/Sofia+Configuration+Files

When starting a profile, the following warnings would appear:
[WARNING] sofia.c:5332 rtp-hold-timeout-sec deprecated use media_hold_timeout variable.
[WARNING] sofia.c:5325 rtp-timeout-sec deprecated use media_timeout variable.

Updating the parameters fixes the issue.

* Update internal-ipv6.xml.noload

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2022-08-01 08:34:53 -06:00
emakandFusionPBX 305ba420dc Update deprecated sip profile params (#6447)
* Update deprecated sip profile params

Parameter names have changed. See here: https://freeswitch.org/confluence/display/FREESWITCH/Sofia+Configuration+Files

When starting a profile, the following warnings would appear:
[WARNING] sofia.c:5332 rtp-hold-timeout-sec deprecated use media_hold_timeout variable.
[WARNING] sofia.c:5325 rtp-timeout-sec deprecated use media_timeout variable.

Updating the parameters fixes the issue.

* Update internal.xml.noload

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2022-08-01 08:33:59 -06:00
emak ea4a5e7f67 Check to make sure accountcode has some value (#6440)
The accountcode variable is used in a dialstring later on and if it comes back nil for any reason, then the following error is thrown:

2022-07-22 16:19:11.524674 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/app/follow_me/index.lua:396: attempt to concatenate global 'accountcode' (a nil value)
stack traceback:
        /usr/share/freeswitch/scripts/app/follow_me/index.lua:396: in main chunk
        /usr/share/freeswitch/scripts/app.lua:48: in main chunk

This completely breaks follow-me.

This code sets the accountcode variable to the domain name if it comes back nil during script execution, thus protecting the script from failing with an empty accountcode value in the db or query.
2022-07-22 16:47:31 -06:00
emak 2050d98e3e Update XML CDR Extension Summary Queries #5979 (#6365)
* Change labels to reflect new CC missed field

* Update extension summary queries

* Hide number alias field
2022-05-05 10:43:44 -06:00
emak 62b793efde Delete duplicate enabled="true" statements (#6332)
Most recent PR on this file duplicated enabled statements causing the dialplan to be invalid and not be generated when running App Defaults.
2022-03-23 10:03:28 -06:00
emak 8aaa3a6b9a Add variables to fax send email templates (#6326) 2022-03-21 09:32:35 -06:00
emak a5708f168f Add device image support from provisioning templates (#5994)
This change adds support for images of the current selected device on the device_edit.php page.

The images need to be stored with the provisioning templates in the following format:

* /yealink/t21p/t21p.jpg

Images loaded into the page without needing link to the direct path. This makes it possible to store images with the template and not need any form of nginx rewrite rule or any other changes.

The images are zoomable with pure CSS, no javascript required.
2021-10-29 14:37:11 -06:00
emak 364d6d6cbb Add announce sound dropdown selection (#6056)
The announce sound previously required users to manually type in the full path of the announce sound. It has now been modified to be a hybrid dropdown which shows available recordings on the domain and also allows for the old text entry method (type in the path).
2021-10-29 14:34:03 -06:00
emak 0b76d90875 Add press * to return to previous menu (#6064)
Added the ability to press * to transfer back to the previous menu based on value of ${rdnis}.
2021-10-29 14:31:56 -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:

https://github.com/fusionpbx/fusionpbx/commit/29c1d52533fd95ce0b995122471b9b283962bc3f
https://github.com/fusionpbx/fusionpbx/commit/c93c20c4e10796e7b3e64c67565748e83f0a100c
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:

https://github.com/fusionpbx/fusionpbx/commit/29c1d52533fd95ce0b995122471b9b283962bc3f
https://github.com/fusionpbx/fusionpbx/commit/c93c20c4e10796e7b3e64c67565748e83f0a100c
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:

https://github.com/fusionpbx/fusionpbx/commit/29c1d52533fd95ce0b995122471b9b283962bc3f
https://github.com/fusionpbx/fusionpbx/commit/c93c20c4e10796e7b3e64c67565748e83f0a100c
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:

https://github.com/fusionpbx/fusionpbx/commit/29c1d52533fd95ce0b995122471b9b283962bc3f
https://github.com/fusionpbx/fusionpbx/commit/c93c20c4e10796e7b3e64c67565748e83f0a100c
2021-06-10 01:09:07 -06:00
emaktechandFusionPBX b94fafbfb9 Update app_languages.php (#5928)
* Update app_languages.php

"At max no answer, then the agent's Status will changed to 'On Break'.";

* Update app_languages.php

* Update app_languages.php

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2021-05-28 22:32:01 -06:00
emaktech a0ab52d369 CDR - Don't Check Filesystem for Recording on Load
I have been debugging slow loading on our CDR pages for the last few days now.

One issue that we have encountered is that currently as the page loads, it checks the filesystem for each file one at a time. In our case, we move recordings to object storage after 1 week, so each time we check for a file it passes api calls which take over 1 second each to return a result. This causes this page to not load at all for us in many cases.

Regardless, this current method is unnecessarily I/O intensive and really page load is probably not the time to be checking for each file one by one.

So this PR is the simplest solution - remove the check entirely. I would contend that the administrator should remove the record_path from the database if the file was removed so this should be acceptable.

This solves this particular issue for us, but would need feedback from others if not checking for files makes sense.
2021-03-03 15:48:17 -05:00
emaktech 37638eafac Update app_config.php
fr-ca update
2021-01-20 17:50:04 -05:00
emaktech db16e36fb0 Update app_menu.php
fr-ca update
2021-01-20 17:47:46 -05:00
emaktech c02f401612 Update app_languages.php
fr-ca update
2021-01-20 17:46:05 -05:00
emaktech ddda85bbf1 Update app_languages.php
French Translation update
2021-01-20 12:20:38 -05:00
emaktech af78f9fc97 Update app_languages.php
FR-CA update
2021-01-18 16:43:55 -05:00
emaktech fa742ba7ff Update app_languages.php
Micro update to french language
2021-01-06 16:25:06 -05:00
emaktech d61388b3ee Update app_languages.php
French language update
2021-01-06 16:20:26 -05:00
emaktech b266affa04 Update app_languages.php
French translation micro update
2021-01-06 16:19:11 -05:00
emaktech 056e19ce8f Update app_languages.php
French language update
2021-01-06 16:16:33 -05:00
emaktech 72b273058e Update app_languages.php
Minuscule French language update
2021-01-06 16:04:03 -05:00
emaktech 731c969d4a Update app_languages.php
super minor french language edit
2021-01-06 16:02:31 -05:00
emaktech 9eb0e56448 Update app_languages.php
extremely minor french language edit
2021-01-06 15:59:47 -05:00
emaktech 4a31badbba Update app_languages.php
Minor French update
2021-01-06 15:35:20 -05:00
emaktech a894aa1aa7 Update app_languages.php
Minor french language updates
2021-01-06 15:31:51 -05:00
emaktech 5c845e27f0 Update app_languages.php 2021-01-06 12:48:03 -05:00
emaktech cc5eba5699 Revert "Order by start_epoch to Speed Up Query Execution" 2020-12-23 23:52:15 -05:00
emaktech c97d9e7022 Order by start_epoch to Speed Up Query Execution
In some cases, this seems to speed up xml_cdr loading times by ~10x.

It appears one big cause of this is the final ORDER_BY statements are very slow in PostgreSQL for timestamp fields. Ordering by start_epoch field improves query execution time in a dramatic way and should result in the same ordering.
2020-12-07 15:56:26 -05:00
emaktech 5d3b2d3226 Optimize Fax Conversion Quality
Added additional command line switches to the Ghostscript command which greatly improves the output quality and legibility of converted faxes.

Now using a simple threshold method - 75% threshold to determine if a pixel will be black or white.
Dithering is turned off completely.
Also switched to newer tiffg4 compression method.
2020-11-17 16:00:23 -05: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
emaktech d459d06e38 Order SIP Profiles by Name by Default (#5365)
SIP profiles were unordered unless $_GET["order_by"] was set. Now if unset, it will order by sip_profile_name by default for nicer ordering.
2020-07-28 22:41:06 -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
emaktech 9f2ef85f95 Add Option for Radial Gradient (#5140)
Adds ability to set the background to be a centered circular radial gradient

If the following is set: theme > background_radial_gradient > text

Then the radial gradient will be enabled. If not set, it will use linear gradient to preserve previous behavior.
2020-02-03 23:10:08 -07:00
emaktech 7cd5b0c852 fr: Added new field translations and final edit. (#4817) 2019-11-01 10:03:02 -06:00
emaktech 5208e672e2 Update fr description translation (#4818) 2019-11-01 10:02:20 -06:00
emaktech 391ac81608 Devices Page - Show only Assigned Devices to User Level (#4702)
* Update app_config.php

Add new permission device_domain_all

* Update devices.php

* Update devices.php
2019-10-08 15:00:18 -07:00
emaktech 7b856d49cc Modified fr-ca / fr-fr translation. (#4628) 2019-09-17 16:54:06 -06:00
emaktech d803d3c20f Modified fr-ca / fr-fr translation. (#4627) 2019-09-17 16:53:56 -06:00
emaktech 2ba2b6d3d3 Modified fr-ca / fr-fr translation. (#4626) 2019-09-17 16:53:45 -06:00
emaktech d9298beff9 Modified fr-ca / fr-fr translation. (#4625) 2019-09-17 16:53:34 -06:00
emaktech 89a1e807c4 Modified fr-ca / fr-fr translation. (#4621) 2019-09-17 12:36:28 -06:00
emaktech 37602ce217 Modified fr-ca / fr-fr translation. (#4622) 2019-09-17 12:36:18 -06:00
emaktech 988de2d71f Modified fr-ca / fr-fr translation. (#4623) 2019-09-17 12:35:17 -06:00
emaktech 0bdddf25ac Modified fr-ca / fr-fr translation. (#4624) 2019-09-17 12:35:00 -06:00
emaktech 9e27c4bd33 Modified fr-ca / fr-fr translation. (#4614) 2019-09-16 17:58:11 -06:00
emaktech 4014e36669 Modified fr-ca / fr-fr translation. (#4611) 2019-09-16 09:12:16 -06:00
emaktech de4dda8b09 Modified fr-ca / fr-fr translation. (#4613) 2019-09-16 09:11:51 -06:00
emaktech 7d72b9f81a Modified fr-ca / fr-fr translation. (#4612) 2019-09-16 09:11:11 -06:00
emaktech 087ec13ab8 Modified fr-ca / fr-fr translation. (#4604) 2019-09-14 09:34:00 -06:00
emaktech 87a6485e8f Modified fr-ca / fr-fr translation. (#4605) 2019-09-14 09:33:14 -06:00
emaktech 9ed86cfae0 Modified fr-ca / fr-fr translation. (#4597) 2019-09-12 17:00:16 -06:00
emaktech a08e7ca16f Modified fr-ca / fr-fr translation. (#4598) 2019-09-12 17:00:04 -06:00
emaktech ead70acce5 Modified fr-ca / fr-fr translation. (#4596) 2019-09-12 13:28:10 -06:00
emaktech 187e6402ce Modified fr-ca / fr-fr translation. (#4541) 2019-09-11 08:27:56 -06:00
emaktech d8ca58c0c8 Modified fr-ca / fr-fr translation. (#4536) 2019-09-10 15:32:18 -06:00
emaktech b6d3c94e2a Modified fr-ca / fr-fr translation. (#4537) 2019-09-10 15:31:28 -06:00
emaktech 1e83fdb057 Modified fr-ca / fr-fr translation. (#4535) 2019-09-10 14:28:42 -06:00
emaktech 1b3f740568 Modified fr-ca / fr-fr translation. (#4525) 2019-09-09 10:50:58 -06:00
emaktech 0c9e315a82 Modified fr-ca / fr-fr translation. (#4522) 2019-09-09 09:52:45 -06:00
emaktech d31bacf0c0 Modified fr-ca / fr-fr translation. (#4523) 2019-09-09 09:52:27 -06:00
emaktech a06986d468 Modified fr-ca / fr-fr translation. (#4502) 2019-09-05 21:59:33 -06:00
emaktech 068de9a150 Modified fr-ca / fr-fr translation. (#4497) 2019-09-05 13:45:14 -06:00
emaktech 4d616832aa Modified fr-ca / fr-fr translation. (#4498) 2019-09-05 13:44:58 -06:00
emaktech adb963c45e Modified fr-ca / fr-fr translation. (#4500) 2019-09-05 13:44:48 -06:00
emaktech 13d12a215d Modified fr-ca / fr-fr translation. (#4501) 2019-09-05 13:44:34 -06:00
emaktech 6680881f15 Modified fr-ca / fr-fr translation. (#4487) 2019-09-03 15:34:13 -06:00
emaktech 22f4756dc1 Modified fr-ca / fr-fr translation. (#4486) 2019-09-03 15:33:53 -06:00
emaktech e611f4740b Modified fr-ca / fr-fr translation. (#4485) 2019-09-03 15:33:32 -06:00
emaktech a44d2031fc Modified fr-ca / fr-fr translation. (#4488) 2019-09-03 15:33:08 -06:00
emaktech 46e9f82e7e Modified fr-ca / fr-fr translation. (#4484) 2019-09-03 13:22:09 -06:00
emaktech f8bad922d5 Modified fr-ca / fr-fr translation. (#4473) 2019-08-30 21:04:15 -04:00
emaktech e82286c001 Modified fr-ca / fr-fr translation. (#4472) 2019-08-30 21:03:50 -04:00
emaktech 5e56309744 Update app_languages.php (#4471) 2019-08-30 21:02:29 -04:00
emaktech 8a68f3ee5a Modified fr-ca / fr-fr translation. (#4470) 2019-08-30 21:02:05 -04:00
emaktech d156d3e08f Modified fr-ca / fr-fr translation. (#4469) 2019-08-30 21:01:34 -04:00
emaktech 6d7e9e7ca8 Modified fr-ca / fr-fr translation. (#4468) 2019-08-30 21:01:05 -04:00
emaktech 0f947b2291 Add missing fr-ca translations (#4467) 2019-08-30 20:59:43 -04:00
emaktech a70e7f9ffe Modified fr-ca / fr-fr translation. (#4478) 2019-08-30 18:57:42 -06:00
emaktech f44ed4370c Fix Ring Group Delay Timing (#4003)
This is going to sound really stupid but I have tested this extensively, submitted a Jira on it months ago (was told FS 1.6.20 was no longer supported) and it's still an issue. Please do not take my word for this and create a ring group to test the delay settings with a stopwatch and you should see the real vs set delay discrepancy.

In FreeSWITCH (both on 1.6.20 and 1.8.5) when sending leg_delay_start values, for whatever reason the actual time is double the value sent. The result of this is that if you send 1000ms as leg_delay_start the actual time the call will be delayed is 2000ms.

Because of this bad behavior, ring group delay settings end up being exactly double what is set. e.g. if you set 10s, you will have to wait 20s for the call to be initiated on leg b.

The easiest way to fix this behavior is to simply multiply leg_delay_start by half as much to get the right "real" delay time. Ugly, I know... I'm not sure if leg_delay_start value is passed elsewhere, I'm thinking this behavior may also be present in find me/follow me. If this gets accepted I will look for other locations where this behavior occurs and submit separate PRs if I find any other instances of this.
2019-06-21 22:04:14 -06:00
emaktech e1a54c9ec9 Fix Call Block Type Setting Check
When setting call_block_matching, the setting was not being evaluated as true because it was looking for 'call block' group when the actual name is 'call_block'.

Adding the underscore fixes this small syntax issue and the setting works correctly.
2019-05-28 14:27:29 -04:00
emaktech a5ff016ef5 Retrieve gateway names with variables and failover (#4004)
Previously, if a bridge statement was written with prepended variables to be passed, the gateway name would not be parsed and replaced. Additionally, if multiple bridges were used in failover in a single bridge statement separated by a pipe, only the first would be parsed and replaced.

I noticed this after upgrade to FreeSWITCH 1.8.5 (from 1.6.20) which changed failover behavior with multiple separate bridge statements. When network returns 486 BUSY, it will proceed to second bridge statement, initiating a second call. To allow failover and not have this behavior, you must write a single statement and separate your failover bridges with a pipe, this change allows the UI to show all gateway names on the line once saved.

Examples:
{fax_use_ecm=on}sofia/gateway/99b1234c-667c-4b31-9d2f-31d4f396abfa/$1
=> {fax_use_ecm=on}sofia/gateway/Gateway_Name/$1

sofia/gateway/0e70e123-00fd-4f0c-b525-bc7f6283cfa1/$1|sofia/gateway/99b1234c-667c-4b31-9d2f-31d4f396abfa/1$1
=> sofia/gateway/Gateway_One/$1|sofia/gateway/Gateway_Two/1$1
2019-03-03 11:10:15 -07:00
emaktech 966844d558 Show fax file date in user's timezone (#3999)
Previously timezone was showing in GMT, this now shows fax time in user's timezone. Code to display timezone was copied from fax_logs.php page.
2019-02-04 17:22:40 -07:00
emaktech 7682c13e4d Variables for DP750 Handset Assignment, Ring Type (#3772)
New variables for the DP750 to allow the following settings:

$grandstream_repeater_mode_enable
(Enables or disables repeater mode on DP750 base)

$grandstream_hanging_group_mode
(Allows users to set hanging group mode (e.g. ring handsets at the same time, sequentially, etc.)

$grandstream_handset_X_line_Y_enable
(Allows setting of handset to line assignment)
2018-12-02 20:44:52 -07:00
emaktech 0ebe8e08fe Add new Advanced SIP Var (#3859)
Add the following advanced SIP variable. Disabling this allows Yealink phones to display the SIP error reason in the format sent by the carrier rather than Q.850 format e.g. "User Busy" rather than "NORMAL_CLEARING"

sip.call_fail_use_reason.enable = {$yealink_sip_call_fail_use_reason_enable}
2018-12-02 20:38:17 -07:00
emaktech 18b6d4e920 Add record_append=false (#3854)
When re-recording the extension voice mail name the new recorded name is appended to the old recorded name file.  The new recorded name should replace the old recorded name.
2018-11-13 23:38:12 -06:00
emaktech 65ea399502 Add record_append=false (#3855)
When re-recording the extension voice mail name the new recorded name is appended to the old recorded name file.  The new recorded name should replace the old recorded name.
2018-11-13 23:37:53 -06:00
emaktech 9b32c42d71 Allow Editing 48 Lines on device_edit Page (#3478)
Similar to #3472 needed to allow up to 48 extension to be selectable and editable on the device_edit page.

Additionally, fixed sorting issue so line numbers are correctly sorted sequentially (line number is stored as text field so needed to change cast in SQL query).
2018-09-14 13:10:17 -06:00
emaktech cc9bf89660 Allow editing 48 lines on extension_edit page (#3472)
When provisioning 48 port analog gateway, (Grandstream GXW4248 for example) need ability to configure up to 48 lines per device.
2018-09-13 23:53:19 -06:00
emaktech 62a5c942b3 Update ivr_menu_edit.php (#3075) 2018-05-31 16:49:17 -06:00