Provisioning yealink .cfg

Provisionamento do aparelho T22

1 – Arquivo chamado y000000000005.cfg no qual contem todas as minhas configurações necessárias ao aparelho
2 – Um arquivo com o mac.cfg na qual contem somente arquivos individuais.
3 – No aparelho colocar o endereço completo do cfg. Exemplo http://192.168.254.21/provisionig/ e ativar o provisioning.

Exemplo completo abaixo:

[root@ipbx ~]# cat /var/www/html/provisioning2/y000000000005.cfg

[ ReplaceRule ]
path = /tmp/dialplan.xml
1=1,55,*2

# Lista de Contato local
[ LLDP ]
path = /config/Network/Network.cfg
EnableLLDP = 1
PacketInterval = 120

# conta 2
[ account ]
path = /config/voip/sipAccount1.cfg
Enable = 0
Label = %NULL%
DisplayName = %NULL%
AuthName = %NULL%
UserName = %NULL%

# conta 3
[ account ]
path = /config/voip/sipAccount2.cfg
SIPServerHost = 172.16.1.2
password = senha

#conta 1
[ account ]
path = /config/voip/sipAccount0.cfg
Enable = 1
SIPServerHost = 172.16.1.2
password = senha
SIPServerPort = 5060
UseOutboundProxy = 0
OutboundHost =
OutboundPort = 5060
Transport = 0
BakOutboundHost =
BakOutboundPort = 5060
proxy-require =
AnonymousCall = 0
RejectAnonymousCall = 0
Expire = 3600
SIPListenPort = 5060
Enable 100Rel = 0
precondition = 0
SubsribeRegister = 0
SubsribeMWI = 0
CIDSource = 0
EnableSessionTimer = 0
SessionExpires =
SessionRefresher = 0
EnableUserEqualPhone = 0
srtp_encryption = 0
ptime = 20
ShareLine =
dialoginfo_callpickup =
MissedCallLog = 1
AutoAnswer = 0
AnonymousCall_OnCode =
AnonymousCall_OffCode =
AnonymousReject_OnCode =
AnonymousReject_OffCode =
BLANumber =
conf-type = 0
conf-uri =
BlfListCode =
SubscribeACDExpire= 3600

[ DTMF ]
path = /config/voip/sipAccount0.cfg
DTMFInbandTransfer = 1
InfoType = 0
DTMFPayload = 101

[ NAT ]
path = /config/voip/sipAccount0.cfg
NATTraversal = 0
STUNServer =
STUNPort = 3478
EnableUDPUpdate = 1
UDPUpdateTime = 30
rport = 0

[ ADVANCED ]
path = /config/voip/sipAccount0.cfg
default_t1 = 0.5
default_t2 = 4
default_t4 = 5

[blf]
path = /config/voip/sipAccount0.cfg
SubscribePeriod = 1800
BLFList_URI =

[ audio0 ]
path = /config/voip/sipAccount0.cfg
enable = 1
PayloadType = PCMU
priority = 1
rtpmap = 0

[ audio1 ]
path = /config/voip/sipAccount0.cfg
enable = 1
PayloadType = PCMA
priority = 2
rtpmap = 8

[ audio2 ]
path = /config/voip/sipAccount0.cfg
enable = 0
PayloadType = G723_53
priority = 0
rtpmap = 4

[ audio3 ]
path = /config/voip/sipAccount0.cfg
enable = 0
PayloadType = G723_63
priority = 0
rtpmap = 4

[ audio4 ]
path = /config/voip/sipAccount0.cfg
enable = 1
PayloadType = G729
priority = 3
rtpmap = 18

[ audio5 ]
path = /config/voip/sipAccount0.cfg
enable = 1
PayloadType = G722
priority = 4
rtpmap = 9

[ audio7 ]
path = /config/voip/sipAccount0.cfg
enable = 0
PayloadType = G726-16
priority = 0
rtpmap = 112

[ audio8 ]
path = /config/voip/sipAccount0.cfg
enable = 0
PayloadType = G726-24
priority = 0
rtpmap = 102

[ audio9 ]
path = /config/voip/sipAccount0.cfg
enable = 0
PayloadType = G726-32
priority = 0
rtpmap = 2

[ audio10 ]
path = /config/voip/sipAccount0.cfg
enable = 0
PayloadType = G726-40
priority = 0
rtpmap = 104

[ HotDesking ]
path = /config/voip/sipAccount0.cfg
IsHotDeskAccount = 0

[ RingTone ]
path = /config/voip/sipAccount0.cfg
RingType = Ring1.wav

[ RingTone ]
path = /config/voip/sipAccount1.cfg
RingType = Ring2.wav

[ RingTone ]
path = /config/voip/sipAccount2.cfg
RingType = Ring1.wav

[ WAN ]
path = /config/Network/Network.cfg
#WANType:0:DHCP,1:PPPoE,2:StaticIP
WANType = 2
WANStaticIP =
WANSubnetMask = 255.255.255.0
WANDefaultGateway = 172.16.1.254

[ DNS ]
path = /config/Network/Network.cfg
PrimaryDNS = 172.16.1.254
SecondaryDNS = 192.168.218.120

[ PPPoE ]
path = /config/Network/Network.cfg
PPPoEUser =
PPPoEPWD =

[ LAN ]
path = /config/Network/Network.cfg
#LANTYPE:0:Router, 1:Bridge
LANTYPE = 1
RouterIP = 10.0.0.1
LANSubnetMask = 255.255.255.0
EnableDHCP = 1
DHCPStartIP = 10.0.0.10
DHCPEndIP = 10.0.0.100
SpanToPCPort = 0

[ VLAN ]
path = /config/Network/Network.cfg
#ISVLAN,VID and USRPRIORITY are used for VLAN on LAN port
#PC_PORT_VLAN_ENABLE,PC_PORT_VID and PC_PORT_PRIORITY are used for PC port
ISVLAN = 0
VID = 0
USRPRIORITY = 0
PC_PORT_VLAN_ENABLE = 0
PC_PORT_VID = 0
PC_PORT_PRIORITY = 0

[ QOS ]
path = /config/Network/Network.cfg
SIGNALTOS = 40
RTPTOS = 40

[ RTPPORT ]
path = /config/Network/Network.cfg
MaxRTPPort = 11800
MinRTPPort = 11780

[ SYSLOG ]
path = /config/Network/Network.cfg
#specify the server for syslog storage
SyslogdIP =

[ 802.1X ]
path = /config/Network/Network.cfg
Mode = 0
Identity =
MD5Passwd =

[ VPN ]
path = /config/Network/Network.cfg
EnableVPN =0

[ Ethernet ]
path = /config/Network/Network.cfg
WANPortLink = 0
PCPortLink = 0

[ Lang ]
path = /config/Setting/Setting.cfg
#WebLanguage is the setting of language on web management
WebLanguage = Portuguese
ActiveWebLanguage = Portuguese

[ Time ]
path = /config/Setting/Setting.cfg
TimeZone = -3
TimeZoneName = Brazil(DST)
TimeServer1 = 172.16.1.254
TimeServer2 = 192.168.218.202
Interval = 1000
#Set daylight saving time.SummerTime 0 means disable,1 means enable, 2 means automatic
SummerTime = 2
StartTime =
EndTime =
TimeFormat =
DateFormat = 3
OffSetTime =
DSTTimeType =

[ PhoneSetting ]
path = /config/Setting/Setting.cfg
InterDigitTime = 3
FlashHookTimer = 1
Lock = 0
Ringtype = Ring1.wav
BackLight = 2
BacklightTime = 30
ProductName =
Contrast =
HandFreeSpkVol = 8
HandFreeMicVol = 8
HandSetSpkVol = 8
HandSetMicVol = 8
HeadSetSpkVol = 8
HeadSetMicVol = 8
RingVol= 8
RingForTranFailed = Ring1.wav
LogonWizard = 0
PreDialAutoDial = 1
IsDeal180 = 0
DialNowDelay = 1

[ DialNow ]
path = /tmp/dialnow.xml
server_address = http://172.16.1.251/provisioning/Dial/dialnow.xml

[ SignalToneVol ]
path = /config/Setting/Setting.cfg
Handset = 8
Headset = 8
Handfree = 8

[ AlertInfo0 ]
path = /config/Setting/Setting.cfg
Text =
Ringer =

[ AlertInfo1 ]
path = /config/Setting/Setting.cfg
Text =
Ringer =

[ AlertInfo2 ]
path = /config/Setting/Setting.cfg
Text =
Ringer =

[ AlertInfo3 ]
path = /config/Setting/Setting.cfg
Text =
Ringer =

[ AlertInfo4 ]
path = /config/Setting/Setting.cfg
Text =
Ringer =

[ AlertInfo5 ]
path = /config/Setting/Setting.cfg
Text =
Ringer =

[ AlertInfo6 ]
path = /config/Setting/Setting.cfg
Text =
Ringer =

[ AlertInfo7 ]
path = /config/Setting/Setting.cfg
Text =
Ringer =

[ AlertInfo8 ]
path = /config/Setting/Setting.cfg
Text =
Ringer =

[ AlertInfo9 ]
path = /config/Setting/Setting.cfg
Text =
Ringer =

[ AlwaysFWD ]
path = /config/Features/Forward.cfg
Enable = 0
Target =
On_Code =
Off_Code =

[ BusyFWD ]
path = /config/Features/Forward.cfg
Enable = 0
Target =
On_Code =
Off_Code =

[ TimeoutFWD ]
path = /config/Features/Forward.cfg
Enable = 0
Target =
Timeout = 10
On_Code =
Off_Code =

[ Features ]
path = /config/Features/Phone.cfg
Call_Waiting = 0
Call_WaitingTone = 0
Hotlinenumber =
BusyToneDelay =
LCD_Logo =
DND_Code =
Refuse_Code =
DND_On_Code =
DND_Off_Code =
ButtonSoundOn = 1
CallCompletion = 0
AllowIntercom = 1
IntercomMute = 0
IntercomTone = 1
IntercomBarge = 1
Hotlinedelay = 4
SendKeySoundOn = 1
BroadsoftFeatureKeySync = 0
PswPrefix =
PswLength =
PswDialEnable = 0
HistorySaveDisplay = 1
SaveCallHistory = 1
PswPrefix =
PswLength =
PswDialEnable = 0
HistorySaveDisplay = 1
SaveCallHistory = 1
ButtonSoundOn = 1

[ RingerDevice ]
path = /config/Features/Phone.cfg
IsUseHeadset = 0

[ Trans ]
path = /config/Features/Phone.cfg
IsOnHookTrans = 1

[ AutoRedial ]
path = /config/Features/Phone.cfg
EnableRedial = 0
RedialInterval = 10
RedialTimes = 10

[ PoundSend ]
path = /config/Features/Phone.cfg
#Set # key or * key as send. #:1 and *:2
Enable = 1

[ Emergency ]
path = /config/Features/Phone.cfg
Num = 190

[ SoftKey ]
path = /config/Setting/UserSpecific.cfg
IsDefineKey = 0

[ memory1 ]
path = /config/vpPhone/vpPhone.ini
#Line means the line taken in use.0 stands for auto,1 stands for line1…except for one condition when type is blf(DKtype:16),0 stands for line1,1 stands for line2…
#DKtype defines the type of the key,ranging from 0 to 17
#DKtype 0:N/A 1:Conference 2:Forward 3:Transfer
#DKtype 4:Hold 5:DND 6:Redial 7:Call Return
#DKtype 8:SMS 9:Call Pickup 10:Call Park 11:DTMF
#DKtype 12:Voicemail 13:SpeedDial 14:Intercom 15:Line(for line key only)
#DKtype 16:BLF 17:URL 18:Group Listening 19:Public Hold
#DKtype 20:Private Hold 21:Shared Line 22:XML Gruop 23:Group Pickup
#DKtype 24:Paging 25:Record 35: URL Record 27:XMLbrowser
#DKtype 34:Hot Desking 38:LDAP 39:BLF List 40:Prefix
#DKtype 41:Zero-Sp-Touch 42:ACD 45Local Gruop 46:Broadsoft Group

#Set Memory key1

Line =
Value =
type =
PickupValue =
DKtype =
XMLPhoneBook =

[ memory2 ]
path = /config/vpPhone/vpPhone.ini
Line = 1
type = BLF
Value = 2300
KEY_MODE = Asterisk
HotNumber =
HotLineId = 1
Callpickup =
IntercomId = -1
IntercomNumber =
DKtype = 16
PickupValue = 2300

[ memory3 ]
path = /config/vpPhone/vpPhone.ini
Line = 1
type = BLF
Value = 2300
KEY_MODE = Asterisk
HotNumber =
HotLineId = 1
Callpickup =
IntercomId = -1
IntercomNumber =
DKtype = 16
PickupValue = 2300

[ memory12 ]
path = /config/vpPhone/vpPhone.ini
DKtype = 16
Line = 0
type = blf
Value = 2300
KEY_MODE = Asterisk
HotNumber =
HotLineId = 1
Callpickup =
IntercomId = -1
IntercomNumber =
PickupValue = 2300

[programablekey1]
path = /config/vpPhone/vpPhone.ini

#DKtype 0:N/A 2:Forward 5:DND 6:Redial
#DKtype 7:Call Return 8:SMS 9:Call Pickup 22:XML Group
#DKtype 28:Call List 29:Directory 30:Menu 31:Switch Account
#DKtype 45:Local Gruop 46:Broadsoft Group 47:XML Phonebook
#DKtype 32:New SMS 33:Status 43:Local Group 44:Broadsoft Phonebook

#Set SoftKey1
DKtype =
Line =
Value =
XMLPhoneBook =

[programablekey2]
path = /config/vpPhone/vpPhone.ini
#Set SoftKey2
DKtype = 9
Line =
Value = *2
XMLPhoneBook =

[programablekey3]
path = /config/vpPhone/vpPhone.ini
#Set SoftKey3
DKtype = 13
Line =
Value = *99
XMLPhoneBook =

[programablekey4]
path = /config/vpPhone/vpPhone.ini
#Set SoftKey4
DKtype = 45
Line = 1
Value =
XMLPhoneBook = %NULL%

# tecla up
[programablekey5]
path = /config/vpPhone/vpPhone.ini
#Set Up key
DKtype = 30
Line =
Value =
XMLPhoneBook =

[programablekey6]
path = /config/vpPhone/vpPhone.ini
#Set Down key
DKtype =
Line =
Value =
XMLPhoneBook =

[programablekey7]
path = /config/vpPhone/vpPhone.ini
#Set Left key
DKtype =
Line =
Value =
XMLPhoneBook =

[programablekey8]
path = /config/vpPhone/vpPhone.ini
#Set Right key
DKtype =
Line =
Value =
XMLPhoneBook =

[programablekey9]
path = /config/vpPhone/vpPhone.ini
#Set OK key
DKtype =
Line =
Value =
XMLPhoneBook =

[programablekey10]
path = /config/vpPhone/vpPhone.ini
#Set Cancel key
DKtype =
Line =
Value =
XMLPhoneBook =

[programablekey11]
path = /config/vpPhone/vpPhone.ini
#Set CONF key
DKtype =
Line =
Value =
XMLPhoneBook =

[programablekey12]
path = /config/vpPhone/vpPhone.ini
#Set HOLD key
DKtype =
Line =
Value =
XMLPhoneBook =

[programablekey13]
path = /config/vpPhone/vpPhone.ini
#Set MUTE key
DKtype =
Line =
Value =
XMLPhoneBook =

[programablekey14]
path = /config/vpPhone/vpPhone.ini
#Set TRAN key
DKtype =
Line =
Value =
XMLPhoneBook =

[ Profile ]
path = /config/vpm.cfg
VAD = 0
CNG = 1
ECHO = 1
SIDE_TONE = -3
headset_send = 29

[ Jitter ]
path = /config/vpm.cfg
Adaptive = 1
Min = 0
Max = 300
Nominal = 120

[ Message ]
path = /config/Features/Message.cfg
#Set voicemail number for each account
VoiceNumber0 = *100
VoiceNumber1 =
VoiceNumber2 = *100
VoiceNumber3 =
VoiceNumber4 =
VoiceNumber5 =

[ Country ]
path = /config/voip/tone.ini
#The tones are defined by countries.If Country = Custom,the customized values will be used.
Country = Brazil

[ Tone Param ]
path = /config/voip/tone.ini
dial =
ring =
busy =
congestion =
callwaiting =
dialrecall =
record =
info =
stutter =
message =
autoanswer =

[ Default ]
path = /config/voip/tone.ini
dial = 1
ring = 1
busy = 1
congestion = 1
callwaiting = 1
dialrecall = 1
record = 1
info = 1
stutter = 1
message = 1
autoanswer = 1

[ AreaCode ]
path = /config/DialRule/areacode.cfg
code =
minlen =
maxlen =

[ RemotePhoneBook0 ]
path = /config/Setting/Setting.cfg
URL =
Name =

[ RemotePhoneBook1 ]
path = /config/Setting/Setting.cfg
URL =
Name =

[ RemotePhoneBook2 ]
path = /config/Setting/Setting.cfg
URL =
Name =

[ RemotePhoneBook3 ]
path = /config/Setting/Setting.cfg
URL =
Name =

[ RemotePhoneBook4 ]
path = /config/Setting/Setting.cfg
URL =
Name =

[ Webserver Type ]
path = /config/Advanced/Advanced.cfg
WebType =

[ Key0 ]
Path = /config/vpPhone/Ext38_00000000000001.cfg
DKtype =
Line =
Value =
type =
PickupValue =
Label =

[ Key1 ]
Path = /config/vpPhone/Ext38_00000000000001.cfg
DKtype =
Line =
Value =
type =
PickupValue =
Label =

[ Key0 ]
Path = /config/vpPhone/Ext38_00000000000002.cfg
DKtype =
Line =
Value =
type =
PickupValue =
Label =

[ Key1 ]
Path = /config/vpPhone/Ext38_00000000000002.cfg
DKtype =
Line =
Value =
type =
PickupValue =
Label =

[ FactoryConfig ]
path = /config/Setting/AdvSetting.cfg
CustomEnabled = 0

[ LDAP ]
Path = /config/Contacts/LDAP.cfg
NameFilter=
NumberFilter=
host= 0.0.0.0
port= 389
base=
user=
pswd=
MaxHits= 50
NameAttr=
NumbAttr=
DisplayName=
version= 3
SearchDelay= 0
CallInLookup= 1
LDAPSort= 1
DialLookup= 0

[ ManagementServer ]
path = /config/TR069/tr069.ini
ConnectionRequestUsername =
ConnectionRequestPassword =
url =
PeriodicInformEnable = 0
PeriodicInformInterval =
EnableTR069 = 0
Username =
Password =

[ Account0 ]
path = /config/Contacts/BroadSoft.cfg
DisplayName =
Server = 178.16.1.254
Port =
UserName =
PassWord =

[ CallLog0 ]
path = /config/Contacts/BroadSoft.cfg
DisplayName =
Server =
Port =
UserName =
PassWord =

[ REGSURGE ]
path = /config/Network/Network.cfg
RegSurgePrevention = 0

[ TrustedCertificates ]
path = /tmp/PEM_certificate0.crt
option =
server_address =

[ https ]
path = /config/Setting/Setting.cfg
TrustCertificates = 1

[ ServerCertificates ]
path = /tmp/server.pem
option =
server_address =

[ ACD ]
path = /yealink/config/Features/Phone.cfg
AutoAvailable = 0
AutoAvailableTimer = 60
Broadsoft = 0

[ PushXML ]
path = /yealink/config/Setting/AdvSetting.cfg
ServerIP =

[ autoprovision ]
path = /yealink/config/Setting/autop.cfg
server_address = http://172.16.1.251/provisioning/

[ autop_mode ]
path = /config/Setting/autop.cfg
mode = 7
schedule_min = 22:59
schedule_time = 22:00
schedule_time_end = 23:59
schedule_dayofweek = 0123456

[ BroadSoft ]
path = /yealink/config/Contacts/BroadSoft.cfg
BWCallLogandDir = 0
BeHaveCallLog = 1
BeHaveBWDir = 1

[ firmware ]
path = /tmp/download.cfg
server_type = http
server_ip = http://172.16.1.2
server_port = 80
http_url = http://172.16.1.2/provisioning/FirmwareT22/
firmware_name = T22.rom

[ ContactList ]
path = /tmp/download.cfg
server_address = http://172.16.1.2/provisioning/Contacts/contactData1.xml

Aqui a configuração individual:
[root@ipbx ~]# cat /var/www/html/provisioning2/0015652345F1.cfg

# %NULL% = deleta o valor existente no campo. Se deixar vazio nao altera.

# CONTA 1
[ account ]
path = /config/voip/sipAccount0.cfg
Enable = 1
Label = Ramal 2301
DisplayName = Ramal 2301
AuthName = 2301
UserName = 2301

# CONTA 3
[ account ]
path = /config/voip/sipAccount2.cfg
Enable = 1
Label = Ramal 2311
DisplayName = Ramal 2311
AuthName = 2311
UserName = 2311

Deixe um comentário