Phone will not provision: the causes and how to find them
A phone will not provision when it cannot fetch its settings from the phone system, so it shows no service, shows factory defaults, or keeps retrying. It is usually either looking in the wrong place or it does not trust what it finds there. This guide takes the checks in the order that rules things out fastest, and it applies to Yealink, Fanvil and most other desk phones that provision themselves.
How a desk phone finds its settings
When a desk phone starts, it looks for an address to fetch its configuration from, in an order that depends on the make. The sources are an address typed into the phone, an address supplied by your DHCP server (option 66, or a vendor-specific option), and the manufacturer's redirection service, which maps the phone's hardware address to a server you registered. The phone connects to that address, usually over HTTPS, checks the server's certificate against its own list of trusted authorities and its own clock, downloads a file written for its model, and applies it. A phone that has just been factory reset has lost any address typed into it, which is why a reset phone is the hardest case.
Why a phone will not provision: the checks in order
- It is on the wrong network. Check that the phone has an IP address in the VLAN you expect, and that it can reach other devices. A phone on a port with no DHCP, or in the wrong VLAN, never reaches the server.
- It does not know where to look. Read the phone's status page for the provisioning address and the result of the last attempt. If the address is empty, the DHCP option is not reaching the phone (a second DHCP server, the wrong VLAN, or the option missing from that VLAN's scope), or a redirection service has no entry for it. The order in which a phone tries its sources differs by make, so check the manufacturer's note.
- The address cannot be reached from the phone's network. From a computer in the same VLAN, fetch the address with
curl -v. It shows whether the name resolves, whether the connection opens, and what the server answers. If it fails, check the DNS name, the firewall rules between the phone VLAN and the server, and the port. - The phone does not trust the certificate. The name on the certificate must match the address the phone uses, the chain must include the intermediate certificates, it must not have expired, and the phone must trust the authority that issued it. Handsets carry their own list of trusted authorities, and older firmware may lack a newer one, so a certificate that a browser accepts can fail on a phone. A self-signed certificate must be installed on the phone. A phone with the wrong date will reject a valid certificate.
- The server refuses it. Phone systems recognise a phone by its hardware address, by credentials, by a one-time token or by an address that contains one. If the server's log shows a refusal, the phone is unknown, the credentials are wrong, the token has expired or been used, or the model has no template.
- A redirection service sends it somewhere else. A phone registered to a manufacturer's redirection service can be sent to an address recorded there. A phone bought second-hand, or moved from another system, may be registered to someone else's account. Look up the phone's hardware address in the service.
- The file does not suit the firmware. The phone fetches the file and ignores it, or part of it, because it uses settings that this firmware does not know. Read the phone's own log. Update the firmware to a version the template supports, or use a template written for that firmware.
- The address changed after an upgrade. A phone system upgrade can change the provisioning address, the port or the certificate, and a phone that fetched happily last week then fails. Compare what the phone is using with what the server now expects.
A Yealink phone not provisioning while the others on the same VLAN work points at the phone itself: its firmware, its stored address or its entry in the redirection service. The steps are the same whether the phone is a Yealink, a Fanvil or another make, so if Fanvil provisioning failed on one phone and not on its neighbour, compare the two phones' status pages first.
After a factory reset: no service
A phone that has been reset has forgotten the address it was given. Give it one by DHCP option 66, by the redirection service, or by typing the address into the phone's menu or web interface, where the manufacturer's notes say. Then restart it. Do not reset a working phone to test it: you will turn a phone that works into one that needs this section.
Questions people ask
Why is a phone not provisioning when option 66 is set?
Check what the phone received, not what the server sent. Read the phone's status page for the address it holds. If it is empty, the option is not reaching the phone: look for a second DHCP server, a VLAN whose scope lacks the option, or a make that reads a different option. If it holds the right address, the fault is further along (checks 3 to 5).
Should I factory-reset every phone that will not provision?
No. A reset throws away the one thing you can still learn from, which is what the phone is trying to do. Read one phone's status page and log first, fix the cause, and reset only a single phone as a test.
Do I need to open a firewall port for provisioning?
If the phone and the server are on different networks, yes: the phone must be able to reach the provisioning address and port. Test it from the phone's own VLAN with curl -v, because a rule that works from your desk may not apply to the phones.
In Wafflr
Wafflr is a phone system in development, and it has not launched, so this section describes its console as it is being built. It does not hand out a phone's configuration to whoever asks with the right hardware address, because a hardware address is a manufacturer's prefix and a counter that can be guessed. Instead an administrator issues a one-time token for a phone on the Provisioning page, and the phone fetches its file with it. Issuing a token also gives the phone a new SIP password, and the old one stops working. By default a token expires after seven days, and it is used up as the file is served, so a fetch that is cut short by a power cut or a dropped connection still spends it, and another has to be issued.
The Provisioning page shows each phone's token as waiting to be collected, collected or expired, when the phone last collected its file, and a No template warning for a model that has none. The log says what happened when a phone tried.
| Log entry | What it means |
|---|---|
| The telephone registering as a given username collected its configuration from an address | It worked, and the token is now used up |
| A provisioning request presented a token that is not live | The token has expired or been used, or the phone was left plugged in after being provisioned, or somebody is guessing |
| A telephone of a given model presented a live token and there is no template for its model | It was given nothing, and the token has not been used up: add a template or choose a supported model |
A phone that works but is running a file older than the template now produces is listed as behind, and Fetch again makes it collect the current file without restarting. Wafflr ships knowing how to configure Yealink, Poly, Grandstream, Snom and Fanvil telephones, and a model that is not on its Supported models list works with a template of its own.
If phones provision but calls have audio in one direction only, see one way audio on a business phone system.