Backup Yealink Local Contacts to provisioning server

Thanks to @xrobau for this post: Polycom phones via http and HTTPS

I was able to use the same logic to backup the Yealink local contacts to FreePBX’s /tftpboot folder.

  1. Download and copy the put.yealink file to the /tftfpboot directory
  2. Give Asterisk ownership of the file chown asterisk:asterisk /tftpboot/put.yealink
  3. Download and copy the yealink.conf file to the /etc/httpd/conf.d directory
  4. Restart Apache systemctl restart httpd
  5. Edit your provisioning file to enable the remote backup static.auto_provision.local_contact.backup.enable= 1
  6. Edit your provisioning file with the URL static.auto_provision.local_contact.backup.path =
    1. HTTPS: https://pbx.domain.com:1443
    2. HTTP: http://pbx.domain.com:84
    3. Or it could include a username and password https://123456:[email protected]:1443
    4. Or if you have the Commerical EPM use this in basfile edit: __provisionAddress__
  7. Reprovision or reboot your phone to pick up the change
  8. Edit your local address once to force it to upload the file
5 Likes

If you upgrade to FreePBX 16, the script handler needs updated to reflect PHP7.

The git repository is updated for new installs., but if you have an existing install, this will fix it for you

sudo sed -i "s/php5/php7/" /etc/httpd/conf.d/yealink.conf
sudo systemctl restart httpd
1 Like