Skip to content

Commit

Permalink
#797 Оптимизация потребления RAM для 4000+ сотрудников
Browse files Browse the repository at this point in the history
  • Loading branch information
boffart committed Nov 11, 2024
1 parent abda94f commit 8e32cf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Core/Asterisk/Configs/AclConf.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function getSettings(): void
private function getPeers(): array
{
$data = [];
$db_data = Sip::find("type = 'peer' AND ( disabled <> '1')");
$db_data = Sip::find(["type = 'peer' AND ( disabled <> '1')", 'columns' => 'networkfilterid']);
foreach ($db_data as $sip_peer) {
$arr_data = $sip_peer->toArray();
$network_filter = null;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Asterisk/Configs/SIPConf.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class SIPConf extends AsteriskConfigClass
*
* @var int
*/
protected int $limitSelectPeers = 3;
protected int $limitSelectPeers = 150;

/**
* Providers data.
Expand Down

0 comments on commit 8e32cf3

Please sign in to comment.