Commit Graph

5305 Commits

Author SHA1 Message Date
Nate 506332c95f Database class integration. Create order_by() and limit_offset() functions. 2019-07-01 17:30:03 -06:00
Nate 9b57165ed3 Fix typo in select() method switch statement. 2019-07-01 13:26:26 -06:00
Nate 058dec41b9 Database Class Support for "...ies" Table Names (#4321)
Currently, the permission checks within the class try to singularize the table name, then check for permissions based on the result.  This PR modifies the private singular() function to support table names that end in "...ies", where an _add or _edit permission likely uses a 'y' instead.  An example would be where inserting records into v_event_categories, the class should probably look for an "event_category_add" permission, instead of "event_categorie_add".  Likewise for update queries.  

This proposed change isn't foolproof, obviously. In the case of inserting or updating records in a table named v_pies, it would fail to suffice.  You're welcome to integrate a better solution, if one exists.
2019-06-30 15:11:15 -06:00
mtghr 9b5b6d6099 Update {$mac}.cfg (#4061)
* Update {$mac}.cfg

Polycom will not support wild  card cert only if you disable strictCertCommonNameValidation

also polycom is missing many root  certs so we need an option to push them via the template 

bot stuff was tested by me in  production and its working fine

* Use isset
2019-06-29 13:40:11 -06:00
Chris Black 5fe2f6f400 Update {$mac}.cfg (#4287)
add line key to T54s
2019-06-29 13:32:41 -06:00
Len 6e07792505 Update {$mac}.xml (#4316) 2019-06-29 13:30:31 -06:00
Len 2180784eb4 Update {$mac}.xml (#4317) 2019-06-29 13:29:55 -06:00
Len 27510c09dc Update {$mac}.xml (#4318) 2019-06-29 13:29:34 -06:00
Len 82787ebbe1 Update {$mac}.xml (#4319) 2019-06-29 13:29:22 -06:00
Len b2190f5f22 Update {$mac}.xml (#4320) 2019-06-29 13:28:41 -06:00
FusionPBX 806a5ac02c
Update {$mac}.cfg 2019-06-29 12:14:05 -06:00
FusionPBX 35740e069f
Update {$mac}.cfg 2019-06-29 12:13:03 -06:00
FusionPBX 0cd5a32458
Update {$mac}.cfg 2019-06-29 12:02:58 -06:00
FusionPBX a32711142f
Update {$mac}.cfg 2019-06-29 11:59:46 -06:00
FusionPBX 0f10a0a01e
Update index.lua 2019-06-28 13:12:04 -06:00
FusionPBX 77ef2b6142
Update functions.php 2019-06-27 10:16:43 -06:00
Len 2881eb9c63 Create {$mac}.xml (#4306) 2019-06-26 23:57:07 -06:00
Len ce3a01bd2e Create {$mac}.xml (#4307) 2019-06-26 23:56:48 -06:00
Len b2e5d71a81 Create {$mac}.xml (#4308) 2019-06-25 12:34:16 -06:00
Len 61ffff0bc5 Create {$mac}.xml (#4310) 2019-06-25 12:34:00 -06:00
Len ae53af87e2 Create {$mac}.xml (#4305) 2019-06-25 11:47:59 -06:00
Len 24f6206bd2 Create {$mac}.xml (#4309) 2019-06-25 11:47:27 -06:00
Len 2ddd0478a8 Update {$mac}.xml (#4304) 2019-06-24 21:34:11 -06:00
emaktech 9dcaddd814 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
Len b8a203201b Update {$mac}.xml (#4302) 2019-06-21 22:02:50 -06:00
mtghr 57e4f82528 Update {$mac}.cfg (#4301)
the Expire time was set to 3600 with no way to change it
2019-06-20 07:15:21 -06:00
Luis Daniel Lucio Quiroz 6b256a41b3 gives save_var_xml() more tolerance (#4299)
when there is no local freeswitch running (big cluster deployments where Fusion UI is in another server), sometimes there is no local freeswitch running. this breaks the variables per host.

This patch gives the chance to use the hostname as a fallback option before giving up.
2019-06-20 03:35:41 -06:00
Len a3660b3a62 Update {$mac}.xml (#4294) 2019-06-18 21:12:33 -06:00
Len 2df3444558 Update {$mac}.xml (#4295) 2019-06-18 21:10:47 -06:00
Len c26cc68c02 Update {$mac}.xml (#4296) 2019-06-18 21:09:58 -06:00
Len a422a4aab8 Update {$mac}.xml (#4297) 2019-06-18 21:09:11 -06:00
Len 0000bca8e3 Update {$mac}.xml (#4298) 2019-06-18 21:08:24 -06:00
FusionPBX a5e1c9b783
Create {$mac}.xml 2019-06-18 19:14:28 -06:00
Len 0730dc1ed6 Update {$mac}.xml (#4282)
* Update {$mac}.xml

* Update {$mac}.xml
2019-06-15 08:43:56 -06:00
FusionPBX 5aeaf79d90
Update hangup_rx.lua 2019-06-14 23:59:37 -06:00
FusionPBX 49038db08c
Update fax_retry.lua 2019-06-14 23:56:56 -06:00
Len 2c75b5eece Update {$mac}.xml (#4281)
* Update {$mac}.xml

* Update {$mac}.xml
2019-06-14 22:12:43 -06:00
Len 3b266d1e14 Update {$mac}.xml (#4283)
* Update {$mac}.xml

* Update {$mac}.xml
2019-06-14 19:58:40 -06:00
Len 193aae4d27 Update {$mac}.xml (#4284)
* Update {$mac}.xml

* Update {$mac}.xml
2019-06-14 19:57:04 -06:00
Len abbe0c3237 Update {$mac}.xml (#4285)
* Update {$mac}.xml

* Update {$mac}.xml
2019-06-14 19:56:50 -06:00
FusionPBX b71a333d40
This code actually breaks inbound fax email. Commented it out and it works again. 2019-06-11 18:42:58 -06:00
FusionPBX 57f6309744
Update hangup_rx.lua 2019-06-11 02:58:52 -06:00
blackwolfresearch 51fcd89756 Security Fixes (#4268)
* Updated fixes for CVE-2019-11409

* Fix for XSS - (CVE-2018-19094)

* Fix for fax cmd injection (CVE-2018-19096)
2019-06-06 18:46:00 -06:00
Len dccc9d2f15 Create y000000000096.cfg (#4261) 2019-06-05 23:47:16 -06:00
jpattWPC e1efd90943 Allow Phrases to be used in IVRs (#4263)
With the current implementation, Phrases cannot be used in IVRs as streamfile.lua prevents keypresses from being passed back to the IVR. This fix makes a small change to the way phrases are stored and allows streamfile to be run without blocking IVR keypresses.
2019-06-05 21:12:13 -06:00
jpattWPC 7937f72ed3 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
Len 4b9f6c0a2b Create {$mac}.cfg (#4257) 2019-06-05 10:56:31 -06:00
Len 92efbd9364 Create directory.xml (#4258) 2019-06-05 10:50:09 -06:00
Len c084caa5b6 Create favorite_setting.xml (#4259) 2019-06-05 10:49:49 -06:00
Len 974d5e2cff Create {$mac}.boot (#4260) 2019-06-05 10:49:30 -06:00
chansizzle f020851e93 Update app_languages.php (#4252) 2019-06-03 16:23:33 -06:00
FusionPBX a98e5087cf
Update index.lua 2019-06-03 08:24:13 -06:00
Len 67881888bb Update {$mac}.xml (#4241) 2019-06-02 13:09:42 -06:00
Bryan Redeagle 1f5cae758f Added support for Digium D-Series phones. (#4229) 2019-06-02 10:01:54 -06:00
Len c5d9276900 Update {$mac}.xml (#4236) 2019-06-01 20:47:10 -06:00
Len 3bd61ce71c Update {$mac}.xml (#4237) 2019-06-01 20:46:47 -06:00
Len 59ce8931a6 Update {$mac}.xml (#4240) 2019-06-01 20:46:05 -06:00
Len 8e0c952198 Update {$mac}.xml (#4239) 2019-06-01 20:45:08 -06:00
Len e9221b3c0c Update {$mac}.xml (#4238) 2019-06-01 20:44:00 -06:00
Len 0d2fab8569 Update {$mac}.xml (#4234) 2019-06-01 20:12:13 -06:00
FusionPBX 9dc683be3d
Update {$mac}.xml 2019-06-01 17:15:01 -06:00
FusionPBX 87722f6cca
Rename {mac}.xml to {$mac}.xml 2019-06-01 17:06:05 -06:00
FusionPBX 6c04b1b227
Rename {mac}.xml to {$mac}.xml 2019-06-01 17:05:18 -06:00
FusionPBX 3333cd4dea
Update index.lua 2019-06-01 15:07:49 -06:00
Nate ed43a99129 Functions: Update send_email function to support attachments 2019-06-01 12:07:58 -06:00
FusionPBX 2d6f9bc02a
Minor version update 4.5.6 2019-05-30 02:03:56 -06:00
FusionPBX 1edbef23dd
Update message.php 2019-05-30 01:55:07 -06:00
FusionPBX bf1150be57
Update record_message.lua 2019-05-30 01:53:35 -06:00
FusionPBX ab1bc930d0 Revert "[4.5] Fix the ALTER TABLE (#4097)"
This reverts commit 8822528227.
2019-05-30 00:56:51 -06:00
emaktech 0d78e776db
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
FusionPBX 641aa60469
Update database.php 2019-05-27 19:56:32 -06:00
FusionPBX a56a62d00d
White space cleanup on the text class. 2019-05-25 23:40:51 -06:00
FusionPBX 16b3baad5a
Merge pull request #4205 from Len-PGH/patch-3
Update {$mac}.xml
2019-05-25 14:23:20 -06:00
FusionPBX 39e84a1b93
Merge pull request #4206 from Len-PGH/patch-4
Update {$mac}.xml
2019-05-25 14:23:07 -06:00
FusionPBX 54e3c1a512
Merge pull request #4207 from Len-PGH/patch-5
Update {$mac}.xml
2019-05-25 14:20:48 -06:00
FusionPBX 6146977387
Merge pull request #4208 from Len-PGH/patch-6
Update {$mac}.xml
2019-05-25 14:19:55 -06:00
Len feab4f1bd7
Update {$mac}.xml 2019-05-25 15:44:33 -04:00
Len 4133751624
Update {$mac}.xml 2019-05-25 15:43:03 -04:00
Len 893973eea7
Update {$mac}.xml 2019-05-25 15:42:15 -04:00
Len d681baf08f
Update {$mac}.xml 2019-05-25 15:41:07 -04:00
Len 8f5ff66331
Update {$mac}.xml 2019-05-25 15:40:22 -04:00
FusionPBX 058e680749
Merge pull request #4202 from Len-PGH/patch-50
Update {mac}.xml
2019-05-25 11:22:06 -06:00
FusionPBX 999e670e30
Merge pull request #4195 from Len-PGH/patch-43
Update {$mac}.xml
2019-05-25 11:21:43 -06:00
Len d63d873867
Update {mac}.xml 2019-05-25 13:21:04 -04:00
FusionPBX 2f108a8f80
Merge pull request #4196 from Len-PGH/patch-44
Update {$mac}.xml
2019-05-25 11:15:26 -06:00
FusionPBX 984a4e7691
Merge pull request #4197 from Len-PGH/patch-45
Update {$mac}.xml
2019-05-25 11:15:11 -06:00
FusionPBX 03b8e4be9f
Merge pull request #4198 from Len-PGH/patch-46
Update {$mac}.xml
2019-05-25 11:14:51 -06:00
FusionPBX d17191bb28
Merge pull request #4199 from Len-PGH/patch-47
Update {$mac}.xml
2019-05-25 11:13:59 -06:00
FusionPBX 9802fbe935
Merge pull request #4200 from Len-PGH/patch-48
Update {$mac}.xml
2019-05-25 11:13:25 -06:00
Len 99b98cadba
Update {$mac}.xml 2019-05-25 13:10:42 -04:00
Len a1d2a204bd
Update {$mac}.xml 2019-05-25 13:09:30 -04:00
Len f48e16172c
Update {$mac}.xml 2019-05-25 13:07:13 -04:00
Len 9204d3f7c3
Update {$mac}.xml 2019-05-25 13:05:08 -04:00
Len 46831ac609
Update {$mac}.xml 2019-05-25 13:02:59 -04:00
Len 668cdc5801
Update {$mac}.xml 2019-05-25 13:00:17 -04:00
Len f5cbb3190f
Update {$mac}.xml 2019-05-25 12:53:22 -04:00
Len f202557489
Update {$mac}.xml 2019-05-25 12:47:48 -04:00
FusionPBX be05767b3d
Merge pull request #4192 from Len-PGH/patch-40
Update {$mac}.xml
2019-05-25 10:34:14 -06:00
FusionPBX 45ff69c677
Merge pull request #4193 from Len-PGH/patch-41
Update {$mac}.xml
2019-05-25 10:34:02 -06:00
FusionPBX f5f5602116
Merge pull request #4177 from Len-PGH/patch-25
Update {$mac}.xml
2019-05-25 10:33:05 -06:00