Firewall and QoS settings for VoIP phones
For the office network: let the phones reach the phone system, forward no ports to them, keep SIP ALG off and UDP timeouts long, and put voice first.
This is for whoever looks after the office network: the settings that keep calls clear and phones reachable. The phones on the Telxpress phone system only open connections out to the system. Nothing has to be opened from the internet to them.
The settings
- Let the phones reach the phone system. If your firewall allows only listed destinations, ask us for the current server addresses and ports before you write the rule. They change over time, so we give them out on request instead of printing them here.
- Forward nothing to the phones. No port forwarding and no DMZ for a phone: an open phone is found by scanners and rings for nobody (see why your phone rings with nobody there).
- Turn SIP ALG off on the router or firewall: how to turn off SIP ALG.
- Keep UDP sessions open long enough. A short UDP timeout makes an idle phone stop receiving calls. SonicWall advises raising the timeout of the phones' outbound rule from 30 to 120 seconds, and up to 300 seconds on SonicOS 7. On a SonicWall, also turn off deep packet inspection on the rules the phones use.
- Put voice first. Yealink phones mark their audio with DSCP 46 (EF) and their call setup messages with 26 (AF31) as delivered. Give traffic marked 46 priority on the switches and on the internet link. RFC 4594 suggests CS5 for call signaling and many Cisco networks use CS3: what matters is that the switches trust and act on the markings the phones send.
- Leave room on the internet link. With the G.711 voice format, each call carries about 87 kbps in each direction on Ethernet, by Cisco's figures. Our VoIP bandwidth calculator works out a whole office.
- Give the phones their own VLAN where the switches allow it, so a busy computer network does not crowd the calls. The VLAN glossary entry explains the idea.
When something still goes wrong
Tell us what the calls do (one-way audio, drops after a set time, no ringing) and when. With that and a copy of the phone's details from finding a Yealink phone's IP address and firmware, our technicians can usually point to the setting at fault. The QoS glossary entry covers the background.