This article explains how to configure Quality of Service (QoS) for Aircall using a Ubiquiti UniFi Security Gateway (USG), including enabling Smart Queues and opening the required ports. Proper configuration helps prioritize Aircall traffic and reduce the risk of call quality issues when your network is under load.
Activating the Smart Queue
UniFi Security Gateway offers a Smart Queue option based on Fair Queuing and Codel, which prioritizes traffic and reduces delays when the router or bandwidth becomes overloaded. Activating this option will give priority to all traffic coming in and out of Aircall over other applications on the network.
Important: Activating Smart Queue may reduce the maximum throughput
(approximately 85 Mbps for the USG and 250 Mbps for the USG-PRO).
It is strongly recommended to monitor your available speed with and without Smart QoS enabled.
Steps:
Go to your UniFi controller and select Settings.
In the blue tab, select Networks.
From your network list, select the WAN network that you will be using for your VoIP service.
Scroll down to the Common Settings section.
Click Enable smart queues.
Perform the built-in speed test in the UniFi interface by selecting Pre-populate (or by using any other speed test).
Click Enable Smart Queues and the fields Up Rate and Down Rate will appear.
Click Pre-populate to automatically set 80% of the Up and Down bandwidth.
Click Save.
Important: Saving these settings may restart your USG.
It is recommended to perform this change outside of business hours.
Opening ports
To make sure that traffic is not blocked at the port level, it is necessary to open a specific set of ports.
Steps:
Access your UniFi dashboard and navigate to:
Settings > Routing & Firewall > Firewall > LAN IN-
Click + Create a new rule and set:
Enabled: On
Before predefined rules
Action: Accept
Protocol: TCP and UDP
Leave the Advanced settings with their default values
-
Configure the Source:
Source type: Address/port group
Address group: Create a new group named
Aircall_IP, with the type set to Address, and add the IP range shown in the referenced table:168.86.128.0/18
-
Port group: Create a new group named
Aircall_portand select Port as the type. Add the following ports:TCP: 443, 3478, 5349
UDP & TCP: 3478 and the range 10000 to 20000
-
Configure the Destination:
Destination type: Address/port group
Address group:
Aircall_AddPort group:
Aircall_P
Save the rule.
Once these settings are saved, your router is configured to prioritize Aircall communications. You can also perform a speed test on your network to monitor the resulting traffic.
UniFi access points and switches
By default, UniFi access points and switches automatically map DSCP values to Wi-Fi Multimedia (WMM) priority. Voice is automatically given the highest priority on these devices, so no further changes are needed.