Commit Graph

12386 Commits

Author SHA1 Message Date
markjcrane
c18117f8b5 Remove record_transcription replaced by transcript_json 2025-12-10 13:06:11 -07:00
FusionPBX
10629fbbf0 Call Recording Transcription multiple changes
- Use the new transcribe_queue class and method
    - Move call recording transcription to xml_cdr_transcripts
    - Remove transcribe_target table, keys and colum name
2025-12-10 12:08:34 -07:00
volga629-1
178f83d6be View statements fixes (#7657)
* Missing open statement 

Missing open statement 

```
$view['sql'] .= "); \n";

```

* Double SELECT will break query

Double SELECT break query

* Forgot update version

Forgot update version

* No matching ( 

No matching  opening 

```

FROM
v_contacts as c
);

```
2025-12-10 11:24:34 -07:00
john doe
b2fc02f4a8 Replace CONCAT with indexable expressions and refactor using CTE (#7647)
Replaced unindexable CONCAT() with COALESCE(col, '') || ... and refactored dialplan lookup into a CTE with UNION to split destination-based and public-context paths.

CONCAT() is marked as STABLE in PostgreSQL and cannot be used in functional indexes, which forced sequential scans during dialplan lookups. To enable future indexing and improve query optimizability, we replace all CONCAT(a, b, c) calls with (COALESCE(a, '') || COALESCE(b, '') || COALESCE(c, '')), which is functionally equivalent for text columns (treating NULLs as empty) and composed only of IMMUTABLE operations.

Additionally, the query was refactored using a CTE with UNION to decompose a complex top-level OR condition into two independent branches:
1. Dialplans linked to matching destinations.
2. Public dialplans with domain_uuid IS NULL.

This structure allows the planner to optimize each path separately, avoid full-table scans, and leverage primary key lookups efficiently - even without additional indexes.

On a production dataset with 3kk records in v_dialplans, this change reduced dialplans query latency from ~1.5s to ~37ms (40.5x faster), with further gains possible via expression indexes.
2025-12-09 09:02:26 -07:00
Takanobu Fuse
1c2f2aaae2 Fixed Linphone Provisioning URL Error for HTTP Authentication. (#7654) 2025-12-09 08:52:02 -07:00
FusionPBX
6b063f2c28 Replace the DOCUMENT_ROOT and PROJECT_ROOT variables
Use the __DIR__ constant and dirname as needed
2025-12-08 14:12:19 -07:00
markjcrane
f56c51f6d2 Remove the reference to the empty string for boolean enabled. 2025-12-08 12:14:18 -07:00
FusionPBX
0e7ec5baa2 Change the class method getxml to get_xml
- Count the primary key in the SQL statement. Slightly more efficient.
- Updated $dir to $xml_dir
- Add an extra line feed
- Change spaces to tabs
- Remove the method return
2025-12-08 08:23:12 -07:00
volga629-1
e2ac2b3272 Number translate bug PHP Fatal error: Uncaught Error: Cannot access private property xml (#7656)
* Number translation through exception unable load private property


PHP Fatal error:  Uncaught Error: Cannot access private property

Under class defined 

```
       private $xml;
```

You can't access this properly under private constant

* Fix private property access  under class for import()

PHP Fatal error:  Uncaught Error: Cannot access private property.
2025-12-08 08:09:11 -07:00
volga629-1
807c6e2f46 Fix the vars.xml path by adding a missing forward slash (#7658)
* Vars table v_vars is not propagate table data

Path 

```
$xml_file = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'app/switch/resources/conf/vars.xml';
```

Will expand too 

```
/usr/share/nginx/fusionpbxapp/switch/resources/conf/vars.xml
```

This causes a failure to provision data into v_vars table for installs with a customized path.
2025-12-08 07:50:01 -07:00
FusionPBX
9a1e624af0 Fix condition for voicemail_transcription_enabled 2025-12-05 15:00:45 -07:00
fusionate
bb6306a7db Destination [Class]: Add optional placeholder parameter for the select method (default mode only). 2025-12-04 20:43:32 -07:00
FusionPBX
7d54568ca3 Update system_information array with apcu_enable and hostname 2025-12-03 18:10:33 -07:00
markjcrane
7126b1c47d Add hostname and use text translations 2025-12-03 11:24:48 -07:00
FusionPBX
8131e91378 Sanitize the phonebook xml 2025-12-02 12:58:40 -07:00
FusionPBX
5996544050 Fix the call center dsn variable: dsn_callcenter 2025-12-02 11:09:18 -07:00
frytimo
746329f130 Fix active calls dashboard widget hover (#7651) 2025-11-29 10:57:50 -07:00
frytimo
ef71932c74 Fix rounding causes negative timer (#7650)
When the floor operation is used it can go below zero causing the value to show as `-1👎-1` instead of 0:0:0 for a start time.
2025-11-28 14:34:41 -07:00
frytimo
fe1cd3d16f Fix live graph to show hover data points (#7649) 2025-11-28 14:34:30 -07:00
FusionPBX
ec439999b3 Add call recordings to the transcribe queue 2025-11-26 06:18:56 -07:00
Alex
48038090fc Check if queue_record_template is empty to fix a PHP warning (#7645) 2025-11-25 14:41:23 -07:00
Alex
124e7c2da8 Extension Summary: Fix include internal search filter (#7644)
* Extension Summary: Fix include internal search filter

* Update xml_cdr_extension_summary.php
2025-11-25 11:53:23 -07:00
markjcrane
e75732c7ab Fix the call center queue record 2025-11-25 10:00:47 -07:00
Alex
ee240a0822 Update bridge_edit.php (#7642) 2025-11-24 16:48:12 -07:00
Alex
c785656949 Update dialplan_outbound_add.php (#7641) 2025-11-24 16:47:12 -07:00
FusionPBX
460d1f81b8 Update esl to event_socket 2025-11-24 05:42:17 -07:00
frytimo
2951bff6c5 Reuse socket connection to event socket. (#7634)
Reuse the socket connection instead of creating a new connection for each API request.
Add PHPDoc tag "static" for the static methods in event_socket.
2025-11-24 05:30:28 -07:00
AdSecIT
7dc912eeaf Updated 470_valet_park.xml with improved compatibility for CallerID retrieval on call park. (#7640)
On call park retrieval will show original callee CallerID.
2025-11-24 05:15:24 -07:00
Ahron Greenberg (agree)
46f1ba9b2c Remove wrong 'Feature-Event' headers from event (#7635)
On multipart feature events, the feature-event header needs to be `init` only.
2025-11-24 05:11:53 -07:00
fusionate
478e2de8a8 Devices - List: Use boolean in query and labels. 2025-11-22 13:02:14 -07:00
markjcrane
bb1f1d0354 Set the total_ring_groups default value to 0 2025-11-21 17:45:28 -07:00
Alex
9e9dd2ba71 Fix undefined label (#7639) 2025-11-21 16:46:38 -07:00
Alex
d2b5fe4839 Check if destination_actions is empty to fix a PHP warning (#7633) 2025-11-19 15:56:10 -07:00
markjcrane
323d318141 Update boolean toggle
- When 2 equals it evaluates null as false and then false is selected.
2025-11-19 15:26:40 -07:00
frytimo
adfc4cc469 Create more documentation (#7627)
* Documentation, format class, no modification.
2025-11-18 18:33:07 -07:00
FusionPBX
e619c97ce6 Remove extra line that is not needed 2025-11-18 14:08:04 -07:00
FusionPBX
0d4887affd Format the date and time in fax logs with timezone
Updated SQL query to format fax date and time with timezone. Adjusted output to display formatted date and time in the fax logs.
2025-11-18 14:00:20 -07:00
markjcrane
21b85d0316 Get the language from settings and re-use it 2025-11-18 09:35:28 -07:00
frytimo
c2a2d1c1f9 Fix parameter array not unset (#7621)
* Fix parameter array not unset

* Fix parameter array not unset
2025-11-15 21:30:11 -07:00
frytimo
c11920c932 Fix PHP errors when trying to save with missing field data (#7620) 2025-11-15 21:29:51 -07:00
frytimo
b151f3c4ce Fix dialplans always shows as selected for empty entry (#7619) 2025-11-15 21:29:26 -07:00
frytimo
723b9f19f4 Fix PHP warning when destination email is not in post data (#7618) 2025-11-15 21:29:07 -07:00
frytimo
5f1b34a194 When the $show variable is false or null the condition for !$show == all will always evaluate to true. (#7617)
The call to action_name with $destination_app_data empty (no action for destination number) will cause a PHP warning.
2025-11-15 21:28:52 -07:00
frytimo
41daacf090 Fix number translation order on edit page (#7623) 2025-11-15 21:27:55 -07:00
frytimo
e8aabf8d04 Fix variable undefined when adding new module (#7622) 2025-11-15 21:27:22 -07:00
fusionate
63026bbf88 Active Calls (Dashboard): Use empty() instead. 2025-11-15 17:55:52 -07:00
fusionate
17b3188f79 Extension Summary: Resolve PHP warning. 2025-11-15 17:40:18 -07:00
fusionate
2c684a318e Active Calls: Resolve PHP warning. 2025-11-15 17:39:53 -07:00
fusionate
b887f7d727 Call Block - List: Resolve PHP warning. 2025-11-15 17:39:30 -07:00
fusionate
94837fde05 Default Template & Active Calls (Dashboard): Resolve PHP Warnings noticed on login. 2025-11-15 17:39:05 -07:00