xbow
Junior Member
Posts: 5
Joined: Jul 2019
|
One CFG file for one phone
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.
|
|
08-20-2020 01:39 PM |
|