One CFG file for one phone - Printable Version +- Yealink Forums (http://forum.yealink.com/forum) +-- Forum: IP Phone Series (/forumdisplay.php?fid=4) +--- Forum: Auto Provisioning (/forumdisplay.php?fid=14) +--- Thread: One CFG file for one phone (/showthread.php?tid=44354) |
One CFG file for one phone - xbow - 08-20-2020 01:39 PM i'm stuck with this kind of problem: i have to generate two files (mac.boot & mac.cfg) for every my phone. Description: There are a number on Yealink phones (and GS too) which configured by autoprovisioning process from tftp server. i have such structure in the tftp server: / (root) - y000000000000.boot (for brand new phones, it loads the network.cfg for VLAN settings) | --- yealink (dir for Yealink configs) | +-- network.cfg (sets network.vlan.*, local_time.*, auto_provision.*) +-- sip_acc1.cfg (turn on account1 and sets sip_server.1.address) +-- features.cfg (sets intercom, language, user_password for wui) +-- ldap.cfg (sets ldap config) +-- T23G.cfg +-- T27G.cfg +-- T40P.cfg +-- <MAC>.boot (includes all (network,sip,features,ldap) CFGs, one of T*.cfg files, and <MAC>.cfg +-- <MAC>.cfg (sets dhcp_host_name, and auth info for the account.1) This structure gives me a flexibility in the configuration of yealink phone pool, but I have to generate both <MAC>.boot and <MAC>.cfg files for every phone. I tried to move parameters form the <MAC>.cfg file to a bottom of the <MAC>.boot, it's doesn't work. I tried to use the y000000000000.boot but i've got the same result. I think common parameters do not work in *.boot files. In other side, I tried to make <MAC>.cfg file with a sequence of a loading needed *.cfg files, but AFAIK include:config doesn't work in *.cfg. Is there a way to separate common configuration parameters and a particular authentication information in defferent files? Sorry for my English. I hope I described the problem clearly. RE: One CFG file for one phone - xbow - 08-21-2020 05:00 AM (08-20-2020 01:39 PM)xbow Wrote: i'm stuck with this kind of problem: i have to generate two files (mac.boot & mac.cfg) for every my phone. The problem resoleved thanks to http://forum.yealink.com/forum/showthread.php?tid=41012 I made second y000000000000.boot file under /yealink directory: Code: #!version:1.0.0.1 and <MAC>.cfg file for the phone: Code: #!version:1.0.0.1 and now the process is doing as i planned: y000000000000.boot -> network.cfg -> T23G.cfg -> sip_acc1.cfg -> features.cfg -> ldap.cfg -> 805ec0160800.cfg All works well ! |