Slowly getting through the options etc.
All the path statements relate to the Phone so they should remain untouched. Also different sources on the web showed different paths. Be warned the phone will download the cfg with invalid paths. (ie) it created new "PhoneBooks" in the wrong area of the phone. A backup of the configuration file from the phone became huge.
If you want common phone books either create a directory within a web enabled ibay or create one just for the phone book files.
Create a new IP device and add the following code to the provisioning stanza. Note the mac.cfg file name has to be lowercase.
["$mac.cfg"
[ cfg_version ]
path = /yealink/config/Setting/autop.cfg
mac_cfg_ver = 0.0.0.1
[ account ]
path=/yealink/config/voip/sipAccount0.cfg
Enable = 1
DisplayName = $ext
UserName = $ext
AuthName = $ext
password = $password
SIPServerHost = $localip
SIPServerPort = 5060
SIPListenPort = 5060
Expire = 3600
UseOutboundProxy = 0
OutboundHost =
OutboundPort = 5060
EnableSTUN = 0
[ audio0 ]
path=/yealink/config/voip/sipAccount0.cfg
enable = 1
PayloadType = PCMU
priority = 1
rtpmap = 0
[ audio1 ]
path=/yealink/config/voip/sipAccount0.cfg
enable = 1
PayloadType = PCMA
priority = 2 "
rtpmap = 8
[ audio2 ]
path=/yealink/config/voip/sipAccount0.cfg
enable = 0
PayloadType = G723_53
priority = 0
rtpmap = 4
[ audio3 ]
path=/yealink/config/voip/sipAccount0.cfg
enable = 0
PayloadType = G723_63
priority = 0
rtpmap = 4
[ audio4 ]
path=/yealink/config/voip/sipAccount0.cfg
enable = 1
PayloadType = G729
priority = 3
rtpmap = 18
[ audio5 ]
path=/yealink/config/voip/sipAccount0.cfg
enable = 0
PayloadType = G722
priority = 0
Rtpmap = 9
[ audio6 ]
path=/yealink/config/voip/sipAccount0.cfg
enable = 0
PayloadType = iLBC
Priority = 3
rtpmap = 97
[ audio7 ]
path=/yealink/config/voip/sipAccount0.cfg
enable = 0
PayloadType = G726-16
priority = 0
rtpmap = 112
[ audio8 ]
path=/yealink/config/voip/sipAccount0.cfg
enable = 0
PayloadType = G726-24
priority = 0
rtpmap = 102
[ audio9 ]
path=/yealink/config/voip/sipAccount0.cfg
enable = 0
PayloadType = G726-32
Priority = 0
rtpmap = 2
[ audio10 ]
path=/yealink/config/voip/sipAccount0.cfg
enable = 0
PayloadType = G726-40
priority = 0
rtpmap = 104
[ NAT ]
path=/yealink/config/voip/sipAccount0.cfg
MaxRTPPort = 11800
MinRTPPort = 11780
NATTraversal = 0
STUNServer = 217.10.79.21
STUNPort = 10000
EnableUDPUpdate = 1
UDPUpdateTime = 30
rport = 0
[ DTMF ]
path=/yealink/config/voip/sipAccount0.cfg
DTMFInbandTransfer = 1
DTMFPayload = 101
]
["y000000000004.cfg"
[ cfg_version ]
path = /yealink/config/Setting/autop.cfg
com_cfg_ver = 0.0.0.1
[ firmware ]
server_type = tftp
server_ip = $localip
server_port = 69
login_name =
login_pswd =
http_url= $localip
firmware_name = 6.43.0.50.rom
[ autop_mode ]
path = /yealink/config/Setting/autop.cfg
mode = 3
schedule_day =
[ autoprovision ]
path = /yealink/config/Setting/autop.cfg
server_type = tftp
ftp_server_ip =
ftp_server_port =
tftp_server_ip = $localip
tftp_server_port = 69
ftp_name =
ftp_pswd =
http_url = $localip
[ Features ]
path = /yealink/config/Features/Phone.cfg
DND = 0
Call_Waiting = 1
[ AutoAnswer ]
path = /yealink/config/Features/Phone.cfg
Enable = 0
[ PhoneSetting ]
path = /yealink/config/Setting/Setting.cfg
Voicevolume = 4
Ringtype = Ring1
HandFreeSpkVol = 8
HandFreeMicVol = 8
HandSetSpkVol = 8
HandSetMicVol =
HeadSetSpkVol =
HeadSetMicVol =
[ Time ]
path = /yealink/config/Setting/Setting.cfg
TimeZone = +10
TimeServer1 = $localip
TimeServer2 = cn.pool.ntp.org
Interval = 1000
[ ContactList ]
path = /tmp/download.cfg
server_address = $localip/contactData1.xml
[ RemotePhoneBook0 ]
path = /yealink/config/Setting/Setting.cfg
URL = http://$localip/phones/Phonebook0.xml
Name = Directory
]
The remote Phone book has to be in this format
<?xml version="1.0" encoding="UTF-8" ?>
<xxxIPPhoneDirectory clearlight="true">
<Title>LIST NAME</Title>
<Prompt>Prompt</Prompt>
<DirectoryEntry>
<Name>NAME DESC</Name>
<Telephone>NUMBER</Telephone>
</DirectoryEntry>
<DirectoryEntry>
<Name>NAME DESC</Name>
<Telephone>NUMBER</Telephone>
</DirectoryEntry>
<SoftKeyItem>
<Name>#</Name>
<URL>http://xxx/minibrowser/start.xml</URL>
</SoftKeyItem>
<SoftKeyItem>
<Name>*</Name>
<URL>http://xxx/minibrowser/menu.xml</URL>
</SoftKeyItem>
</xxxIPPhoneDirectory>
Just duplicate the Directory block with more entries.
The local phone book needs a different format. The "" are required.
<contactData>
−
<group>
<contact sDisplayName="NAME" sOfficeNumber="NUMBER" sMobilNumber="NUMBER" sOtherNumber="" sLine="0"/>
</group>
<blacklist/>
</contactData>
Just repeat the contact line with the required entries. So far this has not been imported during the provisioning but is requested during the in.tftpd[27573]: RRQ from 192.168.36.75 filename contactData1.xml. Still working on that one.
There are a lot more options/lines that can go into the provisioning files. See the
http://www.yealink.com/en/download.asp?BigClassName=IP%20PhoneAs for the extra lines, I created a new extension number without the mac address and added it as account1. It worked not sure if it is the best way to do it.
Comments welcome.