Add Fanvil variables (#5450)

Added the following variables fanvil_country_toneset, fanvil_default_answer_mode, fanvil_default_ringtone_ext, fanvil_menu_password, fanvil_greeting, fanvil_display_xxx, fanvil_time_xxx, fanvil_softkey_xxx, admin_name, admin_password and more.
This commit is contained in:
chansizzle
2020-09-10 15:56:58 -06:00
committed by GitHub
parent 8f673a3144
commit e83e3d4875
@@ -30,7 +30,7 @@
<DHCP6AutoDNS>1</DHCP6AutoDNS> <DHCP6AutoDNS>1</DHCP6AutoDNS>
<DHCP6AutoTime>0</DHCP6AutoTime> <DHCP6AutoTime>0</DHCP6AutoTime>
<UseVendor6ClassID>0</UseVendor6ClassID> <UseVendor6ClassID>0</UseVendor6ClassID>
<Vendor6ClassID></Vendor6ClassID> <Vendor6ClassID>Fanvil X3U</Vendor6ClassID>
</net> </net>
<mm> <mm>
<ILBCPayloadType></ILBCPayloadType> <ILBCPayloadType></ILBCPayloadType>
@@ -50,7 +50,7 @@
<RTPKeepAlive></RTPKeepAlive> <RTPKeepAlive></RTPKeepAlive>
<RTCPCNAMEUser></RTCPCNAMEUser> <RTCPCNAMEUser></RTCPCNAMEUser>
<RTCPCNAMEHost></RTCPCNAMEHost> <RTCPCNAMEHost></RTCPCNAMEHost>
<SelectYourTone></SelectYourTone> <SelectYourTone>{if isset($fanvil_country_toneset)}{$fanvil_country_toneset}{else}11{/if}</SelectYourTone>
<SidetoneGAIN></SidetoneGAIN> <SidetoneGAIN></SidetoneGAIN>
<PlayEgressDTMF></PlayEgressDTMF> <PlayEgressDTMF></PlayEgressDTMF>
<DialTone></DialTone> <DialTone></DialTone>
@@ -1086,8 +1086,8 @@
<CallerNameType>0</CallerNameType> <CallerNameType>0</CallerNameType>
<MuteForRing>0</MuteForRing> <MuteForRing>0</MuteForRing>
<AutoHandleVideo>0</AutoHandleVideo> <AutoHandleVideo>0</AutoHandleVideo>
<DefaultAnsMode>1</DefaultAnsMode> <DefaultAnsMode>{$fanvil_default_answer_mode}</DefaultAnsMode>
<DefaultDialMode>1</DefaultDialMode> <DefaultDialMode>{$fanvil_default_dial_mode}</DefaultDialMode>
<HoldToTransfer>0</HoldToTransfer> <HoldToTransfer>0</HoldToTransfer>
<EnablePreDial>1</EnablePreDial> <EnablePreDial>1</EnablePreDial>
<DefaultExtLine>1</DefaultExtLine> <DefaultExtLine>1</DefaultExtLine>
@@ -1125,12 +1125,12 @@
<alertInfo index="1"> <alertInfo index="1">
<Text></Text> <Text></Text>
<Line>-1</Line> <Line>-1</Line>
<RingType>Type 1</RingType> <RingType>{if isset($fanvil_default_ringtone_ext)}{$fanvil_default_ringtone_ext}{else}Type 1{/if}</RingType>
</alertInfo> </alertInfo>
<alertInfo index="2"> <alertInfo index="2">
<Text></Text> <Text></Text>
<Line>-1</Line> <Line>-1</Line>
<RingType>Type 1</RingType> <RingType>{if isset($fanvil_default_ringtone_ext2)}{$fanvil_default_ringtone_ext2}{else}Type 1{/if}</RingType>
</alertInfo> </alertInfo>
<alertInfo index="3"> <alertInfo index="3">
<Text></Text> <Text></Text>
@@ -1174,7 +1174,7 @@
</alertInfo> </alertInfo>
</call> </call>
<phone> <phone>
<MenuPassword>123</MenuPassword> <MenuPassword>{if isset($fanvil_menu_password)}{$fanvil_menu_password}{else}123{/if}</MenuPassword>
<KeyLockPassword>123</KeyLockPassword> <KeyLockPassword>123</KeyLockPassword>
<FastKeylockCode></FastKeylockCode> <FastKeylockCode></FastKeylockCode>
<EnableKeyLock>0</EnableKeyLock> <EnableKeyLock>0</EnableKeyLock>
@@ -1197,11 +1197,11 @@
<XMLUpdateInterval>30</XMLUpdateInterval> <XMLUpdateInterval>30</XMLUpdateInterval>
<VqmDisplayOrder></VqmDisplayOrder> <VqmDisplayOrder></VqmDisplayOrder>
<display> <display>
<LCDTitle>VOIP PHONE</LCDTitle> <LCDTitle>{$fanvil_greeting}</LCDTitle>
<LCDConstrast>5</LCDConstrast> <LCDConstrast>5</LCDConstrast>
<EnableEnergysaving>4</EnableEnergysaving> <EnableEnergysaving>{if isset($fanvil_display_brightness_inactive)}{$fanvil_display_brightness_inactive}{else}4{/if}</EnableEnergysaving>
<LCDLuminanceLevel>12</LCDLuminanceLevel> <LCDLuminanceLevel>{if isset($fanvil_display_brightness_active)}{$fanvil_display_brightness_active}{else}12{/if}</LCDLuminanceLevel>
<BacklightOffTime>45</BacklightOffTime> <BacklightOffTime>{if isset($fanvil_display_inactivity_time)}{$fanvil_display_inactivity_time}{else}45{/if}</BacklightOffTime>
<DisableCHNIME>0</DisableCHNIME> <DisableCHNIME>0</DisableCHNIME>
<PhoneModel></PhoneModel> <PhoneModel></PhoneModel>
<HostName>dvf97</HostName> <HostName>dvf97</HostName>
@@ -1242,7 +1242,7 @@
<HandFreeVol></HandFreeVol> <HandFreeVol></HandFreeVol>
<HandFreeMicVol></HandFreeMicVol> <HandFreeMicVol></HandFreeMicVol>
<HandFreeRingVol></HandFreeRingVol> <HandFreeRingVol></HandFreeRingVol>
<RingType></RingType> <RingType>{if isset($fanvil_default_ringtone)}{$fanvil_default_ringtone}{else}Type 1{/if}</RingType>
</volume> </volume>
<date> <date>
<EnableSNTP>{if isset($fanvil_enable_sntp)}{$fanvil_enable_sntp}{else}1{/if}</EnableSNTP> <EnableSNTP>{if isset($fanvil_enable_sntp)}{$fanvil_enable_sntp}{else}1{/if}</EnableSNTP>
@@ -1268,16 +1268,16 @@
</date> </date>
<timeDisplay> <timeDisplay>
<EnableTimeDisplay>0</EnableTimeDisplay> <EnableTimeDisplay>0</EnableTimeDisplay>
<TimeDisplayStyle>0</TimeDisplayStyle> <TimeDisplayStyle>{if isset($fanvil_time_display)}{$fanvil_time_display}{else}0{/if}</TimeDisplayStyle>
<DateDisplayStyle>0</DateDisplayStyle> <DateDisplayStyle>{if isset($fanvil_date_display)}{$fanvil_date_display}{else}6{/if}</DateDisplayStyle>
<DateSeparator>0</DateSeparator> <DateSeparator>{if isset($fanvil_date_separator)}{$fanvil_date_separator}{else}0{/if}</DateSeparator>
</timeDisplay> </timeDisplay>
<softkey> <softkey>
<SoftkeyMode>0</SoftkeyMode> <SoftkeyMode>0</SoftkeyMode>
<SoftKeyExitStyle>2</SoftKeyExitStyle> <SoftKeyExitStyle>{if isset($fanvil_softkey_exit)}{$fanvil_softkey_exit}{else}2{/if}</SoftKeyExitStyle>
<DesktopSoftkey>history;contact;dnd;menu;</DesktopSoftkey> <DesktopSoftkey>{if isset($fanvil_softkey_desktopsoftkey)}{$fanvil_softkey_desktopsoftkey}{else}history;contact;dnd;menu;{/if}</DesktopSoftkey>
<TalkingSoftkey>hold;xfer;conf;end;</TalkingSoftkey> <TalkingSoftkey>{if isset($fanvil_softkey_talkingsoftkey)}{$fanvil_softkey_talkingsoftkey}{else}hold;xfer;conf;end;{/if}</TalkingSoftkey>
<RingingSoftkey>accept;none;forward;reject;</RingingSoftkey> <RingingSoftkey>{if isset($fanvil_softkey_ringingsoftkey)}{$fanvil_softkey_ringingsoftkey}{else}accept;none;forward;reject;{/if}</RingingSoftkey>
<AlertingSoftkey>end;none;none;none;</AlertingSoftkey> <AlertingSoftkey>end;none;none;none;</AlertingSoftkey>
<XAlertingSoftkey>end;none;none;xfer;</XAlertingSoftkey> <XAlertingSoftkey>end;none;none;xfer;</XAlertingSoftkey>
<ConferenceSoftkey>hold;none;split;end;</ConferenceSoftkey> <ConferenceSoftkey>hold;none;split;end;</ConferenceSoftkey>
@@ -1287,7 +1287,7 @@
<DialerCallSoftkey>send;2aB;delete;exit;</DialerCallSoftkey> <DialerCallSoftkey>send;2aB;delete;exit;</DialerCallSoftkey>
<DialerXferSoftkey>delete;xfer;send;exit;</DialerXferSoftkey> <DialerXferSoftkey>delete;xfer;send;exit;</DialerXferSoftkey>
<DialerCfwdSoftkey>send;2aB;delete;exit;</DialerCfwdSoftkey> <DialerCfwdSoftkey>send;2aB;delete;exit;</DialerCfwdSoftkey>
<DesktopClick>history;status;none;none;none;</DesktopClick> <DesktopClick>{if isset($fanvil_softkey_desktopclick)}{$fanvil_softkey_desktopclick}{else}history;status;none;none;none;{/if}</DesktopClick>
<DailerClick>pline;nline;none;none;none;</DailerClick> <DailerClick>pline;nline;none;none;none;</DailerClick>
<CallClick>none;none;none;none;none;</CallClick> <CallClick>none;none;none;none;none;</CallClick>
<DesktopLongPress>status;none;none;none;reset;</DesktopLongPress> <DesktopLongPress>status;none;none;none;reset;</DesktopLongPress>
@@ -1703,12 +1703,12 @@
<TelnetPrompt></TelnetPrompt> <TelnetPrompt></TelnetPrompt>
<LogonTimeout>15</LogonTimeout> <LogonTimeout>15</LogonTimeout>
<account index="1"> <account index="1">
<Name></Name> <Name>{if isset($admin_name)}{$admin_name}{else}admin{/if}</Name>
<Password>admin</Password> <Password>{if isset($admin_password)}{$admin_password}{else}admin{/if}</Password>
<Level>10</Level> <Level>10</Level>
</account> </account>
<account index="2"> <account index="2">
<Name></Name> <Name>guest</Name>
<Password>guest</Password> <Password>guest</Password>
<Level>5</Level> <Level>5</Level>
</account> </account>
@@ -1716,12 +1716,12 @@
<log> <log>
<Level>ERROR</Level> <Level>ERROR</Level>
<Style>level,tag</Style> <Style>level,tag</Style>
<OutputDevice></OutputDevice> <OutputDevice>{if $fanvil_syslog_enable == '1'},syslog{else}stdout{/if}</OutputDevice>
<FileName>platform.log</FileName> <FileName>platform.log</FileName>
<FileSize>512KB</FileSize> <FileSize>512KB</FileSize>
<SyslogTag>platform</SyslogTag> <SyslogTag>platform</SyslogTag>
<SyslogServer>0.0.0.0</SyslogServer> <SyslogServer>{if isset($fanvil_syslog_server)}{$fanvil_syslog_server}{else}0.0.0.0{/if}</SyslogServer>
<SyslogServerPort>514</SyslogServerPort> <SyslogServerPort>{if isset($fanvil_syslog_server_port)}{$fanvil_syslog_server_port}{else}514{/if}</SyslogServerPort>
</log> </log>
<tr069> <tr069>
<TR069Tone>1</TR069Tone> <TR069Tone>1</TR069Tone>
@@ -1737,11 +1737,11 @@
<CPEUserName>dps</CPEUserName> <CPEUserName>dps</CPEUserName>
<CPEPassword>dps</CPEPassword> <CPEPassword>dps</CPEPassword>
<PeriodixInterval>3600</PeriodixInterval> <PeriodixInterval>3600</PeriodixInterval>
<TLSVersion>0</TLSVersion> <TLSVersion>2</TLSVersion>
<AreaCode>020</AreaCode> <AreaCode>020</AreaCode>
<STUNEnable>0</STUNEnable> <STUNEnable>0</STUNEnable>
<STUNServerAddr></STUNServerAddr> <STUNServerAddr>{$fanvil_stun_server}</STUNServerAddr>
<STUNServerPort>3478</STUNServerPort> <STUNServerPort>{$fanvil_stun_port}</STUNServerPort>
<STUNLocalPort>30000</STUNLocalPort> <STUNLocalPort>30000</STUNLocalPort>
</tr069> </tr069>
<hotspot> <hotspot>
@@ -1788,18 +1788,18 @@
<AutoServerDigest>0</AutoServerDigest> <AutoServerDigest>0</AutoServerDigest>
</mt> </mt>
<ap> <ap>
<DefaultUsername></DefaultUsername> <DefaultUsername>{$http_auth_username}</DefaultUsername>
<DefaultPassword></DefaultPassword> <DefaultPassword>{$http_auth_password}</DefaultPassword>
<InputCfgFileName></InputCfgFileName> <InputCfgFileName></InputCfgFileName>
<DeviceCfgFileKey></DeviceCfgFileKey> <DeviceCfgFileKey></DeviceCfgFileKey>
<CommonCfgFileKey></CommonCfgFileKey> <CommonCfgFileKey></CommonCfgFileKey>
<DownloadCommonConf>1</DownloadCommonConf> <DownloadCommonConf>1</DownloadCommonConf>
<SaveProvisionInfo>0</SaveProvisionInfo> <SaveProvisionInfo>0</SaveProvisionInfo>
<CheckFailTimes>5</CheckFailTimes> <CheckFailTimes>5</CheckFailTimes>
<FlashServerIP></FlashServerIP> <FlashServerIP>{if isset($fanvil_provision_url)}{$fanvil_provision_url}{else}https://{$domain_name}/app/provision{/if}</FlashServerIP>
<FlashFileName></FlashFileName> <FlashFileName>{$fanvil_firmware_config}</FlashFileName>
<FlashProtocol>2</FlashProtocol> <FlashProtocol>5</FlashProtocol>
<FlashMode>0</FlashMode> <FlashMode>1</FlashMode>
<FlashInterval>1</FlashInterval> <FlashInterval>1</FlashInterval>
<updatePBInterval>720</updatePBInterval> <updatePBInterval>720</updatePBInterval>
<APPswdEncryption>0</APPswdEncryption> <APPswdEncryption>0</APPswdEncryption>
@@ -1817,27 +1817,27 @@
</opt> </opt>
</ap> </ap>
<fwCheck> <fwCheck>
<EnableAutoUpgrade>0</EnableAutoUpgrade> <EnableAutoUpgrade>{if isset($fanvil_enable_auto_upgrade)}{$fanvil_enable_auto_upgrade}{else}0{/if}</EnableAutoUpgrade>
<UpgradeServer1></UpgradeServer1> <UpgradeServer1>{if isset($fanvil_firmware_upgrade_server_1)}{$fanvil_firmware_upgrade_server_1}{else}{/if}</UpgradeServer1>
<UpgradeServer2></UpgradeServer2> <UpgradeServer2>{if isset($fanvil_firmware_upgrade_server_2)}{$fanvil_firmware_upgrade_server_2}{else}{/if}</UpgradeServer2>
<AutoUpgradeInterval>24</AutoUpgradeInterval> <AutoUpgradeInterval>{if isset($fanvil_firmware_upgrade_interval)}{$fanvil_firmware_upgrade_interval}{else}24{/if}</AutoUpgradeInterval>
</fwCheck> </fwCheck>
<qos> <qos>
<EnableVLAN>0</EnableVLAN> <EnableVLAN>{if isset($fanvil_enable_vlan)}{$fanvil_enable_vlan}{else}0{/if}</EnableVLAN>
<VLANID>256</VLANID> <VLANID>{if isset($fanvil_lan_port_vlan)}{$fanvil_lan_port_vlan}{else}256{/if}</VLANID>
<EnablePVID>0</EnablePVID> <EnablePVID>{if isset($fanvil_pc_port_vlan)}2{else}0{/if}</EnablePVID>
<PVIDValue>254</PVIDValue> <PVIDValue>{if isset($fanvil_pc_port_vlan)}{$fanvil_pc_port_vlan}{else}254{/if}</PVIDValue>
<SignallingPriority>0</SignallingPriority> <SignallingPriority>{if isset($fanvil_qos_sip)}{$fanvil_qos_sip}{else}0{/if}</SignallingPriority>
<VoicePriority>0</VoicePriority> <VoicePriority>{if isset($fanvil_qos_rtp_voice)}{$fanvil_qos_rtp_voice}{else}0{/if}</VoicePriority>
<VideoPriority>0</VideoPriority> <VideoPriority>{if isset($fanvil_qos_rtp_video)}{$fanvil_qos_rtp_video}{else}0{/if}</VideoPriority>
<LANPortPriority>0</LANPortPriority> <LANPortPriority>0</LANPortPriority>
<EnablediffServ>0</EnablediffServ> <EnablediffServ>{if isset($fanvil_enable_diffserv)}{$fanvil_enable_diffserv}{else}0{/if}</EnablediffServ>
<SingallingDSCP>46</SingallingDSCP> <SingallingDSCP>{if isset($fanvil_dscp_sip)}{$fanvil_dscp_sip}{else}46{/if}</SingallingDSCP>
<VoiceDSCP>46</VoiceDSCP> <VoiceDSCP>{if isset($fanvil_dscp_rtp_voice)}{$fanvil_dscp_rtp_voice}{else}46{/if}</VoiceDSCP>
<VideoDSCP>46</VideoDSCP> <VideoDSCP>{if isset($fanvil_dscp_rtp_video)}{$fanvil_dscp_rtp_video}{else}34{/if}</VideoDSCP>
<LLDPTransmit>1</LLDPTransmit> <LLDPTransmit>{if isset($fanvil_lldp_tx_enable)}{$fanvil_lldp_tx_enable}{else}0{/if}</LLDPTransmit>
<LLDPRefreshTime>60</LLDPRefreshTime> <LLDPRefreshTime>{if isset($fanvil_lldp_refresh)}{$fanvil_lldp_refresh}{else}60{/if}</LLDPRefreshTime>
<LLDPLearnPolicy>1</LLDPLearnPolicy> <LLDPLearnPolicy>{if isset($fanvil_lldp_learn)}{$fanvil_lldp_learn}{else}0{/if}</LLDPLearnPolicy>
<LLDPSaveLearnData>0</LLDPSaveLearnData> <LLDPSaveLearnData>0</LLDPSaveLearnData>
<CDPEnable>0</CDPEnable> <CDPEnable>0</CDPEnable>
<CDPRefreshTime>60</CDPRefreshTime> <CDPRefreshTime>60</CDPRefreshTime>