Voice calls are sensitive to delay. A large download, a video meeting or a cloud backup can briefly fill your internet connection and make calls choppy. Quality of Service (QoS) tells your network equipment to send voice packets first, so calls stay clear even when the line is busy.
How QoS works
QoS has two parts:
- Classification and marking: identifying voice traffic and labeling it. The standard label is a DSCP value in each packet. Voice audio (RTP) is commonly marked EF (Expedited Forwarding, DSCP 46), and SIP signaling is often marked CS3 or AF31.
- Queuing and prioritization: routers and switches place marked packets in a priority queue so they are sent before bulk traffic when the link is congested.
Where QoS helps, and where it doesn't
- Inside your network: switches and your router honor the markings you configure.
- Your upload direction: your router can prioritize voice as it leaves your site. This is where QoS helps most.
- The public internet: ISPs generally ignore your markings, so QoS can't guarantee quality across the internet.
- Your download direction: traffic arriving from the internet has already crossed the bottleneck. Some routers can shape download traffic, which helps partially.
Practical setup
- Mark at the source: configure phones and your PBX to set DSCP EF on RTP and CS3/AF31 on SIP. Asterisk has
tos_audioandtos_sipsettings (or equivalents in PJSIP). - Trust markings on switches for phone ports, or put phones in a separate voice VLAN with priority.
- Router QoS: create a priority rule for voice, either by DSCP value, by the PBX or carrier IP address, or by the RTP port range.
- Bandwidth shaping: set the router's QoS bandwidth slightly below your real line speed (often around 85–90%), so the router controls the queue instead of the ISP's equipment.
- Reserve enough for voice: calculate how much your peak calls need. See VoIP bandwidth calculation.
Home and small-office routers
Many consumer routers offer simplified QoS ("prioritize this device" or "gaming/VoIP" modes). Prioritizing the agent's computer or phone and enabling smart queue management features (often called SQM, fq_codel or Cake) can greatly reduce choppy audio during heavy use. Also disable SIP ALG; see remote agent setup.
How to tell if it's working
- Run a VoIP quality test while a large download is running, with and without QoS.
- Check jitter and packet loss in call statistics during busy periods.
- Capture packets to confirm DSCP markings survive inside your network.
Summary
QoS marks voice traffic and gives it priority where you control the network, especially on your upload. Mark RTP as EF, prioritize it on switches and the router, shape bandwidth just below line speed, and test under load. It can't fix the public internet, but it removes most self-inflicted call quality problems.
Need help with VICIdial, Asterisk or AI voice agents?
SmartAiCalls sets up, secures and supports calling systems for call centers and growing businesses. Talk to us or request a free demo.