Auto Provisioning for Yealink IP Phone with MAC Started with 805EC0

The old VoIP gateways from Yealink have problems with the autodiscovery web interface. The new devices from Yealink have a new MAC address segment and start with 805EC0.

If you want to add the devices with new MAC prefixes you can use the google chrome developer console to “hack” the javascript what validates the MAC address.

Steps to solve:

Open the browser and access the web interface of PBX. Go to the PBX -> Phone provisioning -> select required phone and click configure selected phones.

Open the Google developer tools (F12), select the sources tab, and find the file autoprovision.js (should be in the tree under Top->Mainscreeen->”IP OF PBX”->JS->autoprovision.js?ver=xxxxxxx)

Right-click on the file and select overwrite content. The file’s source code should now be added under the overrides tab, and you should be able to see it. Also check under the overrides if the overrides are active.

Find the the part what validates the mac address in the form. Like:

		if(!(_$('mac').value.beginsWith("001565"))){
		  ASTGUI.highlightField('mac', Autoprovision_mac);
		  _$('mac').value="001565";
		  return;
		}	

It should be around the line 2252. Now you can edit it to skip this check. The simplest way is to edit it as:

		if(false){
		  ASTGUI.highlightField('mac', Autoprovision_mac);
		  _$('mac').value="001565";
		  return;
		}	

Now refresh the page and the validation should be turned off. Now you will be able to add new phones with no problem. Best of all you do not need to do it again on the same computer.

Buy Me a Coffee