add http_auth for remote phone book, fix dns issues (#1912)

This commit is contained in:
Chris Black
2016-09-12 14:16:52 -07:00
committed by FusionPBX
parent db9b088d86
commit 54c15039ba
22 changed files with 262 additions and 119 deletions
@@ -7,6 +7,18 @@
#######################################################################################
network.dhcp_host_name =
#Configure the WAN port type; 0-DHCP(default), 1-PPPoE, 2-Static IP Address;
#Require reboot;
network.internet_port.type =
#Configure the static IP address, submask, gateway and DNS server.
#Require reboot;
network.internet_port.ip =
network.internet_port.mask =
network.internet_port.gateway =
network.primary_dns = {$dns_server_primary}
network.secondary_dns = {$dns_server_secondary}
#######################################################################################
## PPPOE ##
#######################################################################################
@@ -24,7 +36,7 @@ network.internet_port.speed_duplex =
network.pc_port.speed_duplex =
network.pc_port.dhcp_server = 1
network.static_dns_enable = 0
{if isset($dns_server_primary)}network.static_dns_enable = 1{else}network.static_dns_enable = 0{/if}
{if isset($vlan_port_id) }
#######################################################################################
@@ -555,7 +567,7 @@ remote_phonebook.data.1.name = Users
{if isset($yealink_remote_phonebook_1_url) }
remote_phonebook.data.1.url = {$yealink_remote_phonebook_1_url}
{else}
remote_phonebook.data.1.url = http://{$domain_name}/app/provision/?file=directory.xml&contacts=users
remote_phonebook.data.1.url = http://{if isset($http_auth_username)}{$http_auth_username}:{$http_auth_password}@{/if}{$domain_name}/app/provision/?file=directory.xml&contacts=users
{/if}
{if isset($yealink_remote_phonebook_2_name) }
@@ -566,7 +578,7 @@ remote_phonebook.data.2.name = Groups
{if isset($yealink_remote_phonebook_2_url) }
remote_phonebook.data.2.url = {$yealink_remote_phonebook_2_url}
{else}
remote_phonebook.data.2.url = http://{$domain_name}/app/provision/?file=directory.xml&contacts=groups
remote_phonebook.data.2.url = http://{if isset($http_auth_username)}{$http_auth_username}:{$http_auth_password}@{/if}{$domain_name}/app/provision/?file=directory.xml&contacts=groups
{/if}
{if isset($yealink_remote_phonebook_3_name) }
@@ -577,7 +589,7 @@ remote_phonebook.data.3.name = Extensions
{if isset($yealink_remote_phonebook_3_url) }
remote_phonebook.data.3.url = {$yealink_remote_phonebook_3_url}
{else}
remote_phonebook.data.3.url = http://{$domain_name}/app/provision/?file=directory.xml&contacts=extensions
remote_phonebook.data.3.url = http://{if isset($http_auth_username)}{$http_auth_username}:{$http_auth_password}@{/if}{$domain_name}/app/provision/?file=directory.xml&contacts=extensions
{/if}
remote_phonebook.data.4.name = {$yealink_remote_phonebook_4_name}
@@ -1610,7 +1622,7 @@ super_search.url =
## Directory Setting ##
#######################################################################################
#Configure the access URL of the directory setting file.
directory_setting.url = http://{$domain_name}/app/provision/?file=favorite_setting.xml
directory_setting.url = http://{if isset($http_auth_username)}{$http_auth_username}:{$http_auth_password}@{/if}{$domain_name}/app/provision/?file=favorite_setting.xml
#######################################################################################
## Configure the access URL of firmware ##