Add grandstream_accept_sip_from_proxy_only and synchronize the templates

This commit is contained in:
markjcrane 2021-06-30 10:14:10 -06:00
parent 2d25eeed8d
commit bfba65c494
6 changed files with 17373 additions and 17331 deletions

View File

@ -766,5 +766,13 @@
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Internet Protocol. 0 - Both, prefer IPv4, 1 - Both, prefer IPv6, 2 - IPv4 Only, 3 - IPv6 Only. Default is 0";
$y++;
$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "3dd34197-e1e8-40bc-baf2-2e07c39d59b5";
$apps[$x]['default_settings'][$y]['default_setting_category'] = "provision";
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "grandstream_accept_sip_from_proxy_only";
$apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
$apps[$x]['default_settings'][$y]['default_setting_value'] = "0";
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Accept Incoming SIP from Proxy Only. 0 - No, 1 - Yes. Default is 0";
$y++;
?>

View File

@ -35,7 +35,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.1.sip_transport != 'dns srv' && isset($account.1.server_address_secondary)}
<P2312>{$account.1.server_address_secondary}:{$account.1.sip_port}</P2312>
{else}
@ -44,21 +44,21 @@
<!-- # Outbound Proxy -->
<!-- # String -->
{if $account.1.sip_transport != 'dns srv' && isset($account.1.outbound_proxy_primary)}
<P48>{$account.1.outbound_proxy_primary}:{$account.1.sip_port}</P48>
{else}
<P48>{$account.1.outbound_proxy_primary}</P48>
{/if}
{/if}
<!-- # Backup Outbound Proxy -->
<!-- # String -->
{if $account.1.sip_transport != 'dns srv' && isset($account.1.outbound_proxy_secondary)}
<P2333>{$account.1.outbound_proxy_secondary}:{$account.1.sip_port}</P2333>
{else}
<P2333>{$account.1.outbound_proxy_secondary}</P2333>
{/if}
{/if}
<!-- # BLF Server -->
<!-- # String -->
@ -1001,7 +1001,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.2.sip_transport != 'dns srv' && isset($account.2.server_address_secondary)}
<P2412>{$account.2.server_address_secondary}:{$account.2.sip_port}</P2412>
{else}
@ -1010,7 +1010,7 @@
<!-- # Outbound Proxy -->
<!-- # String -->
{if $account.2.sip_transport != 'dns srv' && isset($account.2.outbound_proxy_primary)}
<P403>{$account.2.outbound_proxy_primary}:{$account.2.sip_port}</P403>
{else}
@ -1019,7 +1019,7 @@
<!-- # Backup Outbound Proxy -->
<!-- # String -->
{if $account.2.sip_transport != 'dns srv' && isset($account.2.outbound_proxy_secondary)}
<P2433>{$account.2.outbound_proxy_secondary}:{$account.2.sip_port}</P2433>
{else}
@ -1124,7 +1124,7 @@
<!-- # Number: 1 - 64800 -->
<!-- # Mandatory -->
<P412>{$account.2.register_expires}</P412>
<!-- # Subscribe Expiration. Default is 60. Max about 45 days -->
<!-- # Number: 1 - 64800 -->
@ -1469,7 +1469,7 @@
<!-- # Accept Incoming SIP from Proxy Only. 0 - No, 1 - Yes. Default is 0 -->
<!-- # Number: 0, 1 -->
<!-- # Mandatory -->
<P2447>1</P2447>
<P2447>{$grandstream_accept_sip_from_proxy_only}</P2447>
<!-- # Authenticate Incoming INVITE. 0 - No, 1 - Yes. Default is 0 -->
<!-- # Number: 0, 1 -->
@ -1954,7 +1954,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.3.sip_transport != 'dns srv' && isset($account.3.server_address_secondary)}
<P2512>{$account.3.server_address_secondary}:{$account.3.sip_port}</P2512>
{else}
@ -1968,7 +1968,7 @@
<P503>{$account.3.outbound_proxy_primary}:{$account.3.sip_port}</P503>
{else}
<P503>{$account.3.outbound_proxy_primary}</P503>
{/if}
{/if}
<!-- # Backup Outbound Proxy -->
<!-- # String -->
@ -2906,7 +2906,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.4.sip_transport != 'dns srv' && isset($account.4.server_address_secondary)}
<P2612>{$account.4.server_address_secondary}:{$account.4.sip_port}</P2612>
{else}
@ -2915,16 +2915,16 @@
<!-- # Outbound Proxy -->
<!-- # String -->
{if $account.4.sip_transport != 'dns srv' && isset($account.4.outbound_proxy_primary)}
<P603>{$account.4.outbound_proxy_primary}:{$account.4.sip_port}</P603>
{else}
<P603>{$account.4.outbound_proxy_primary}</P603>
{/if}
{/if}
<!-- # Backup Outbound Proxy -->
<!-- # String -->
{if $account.4.sip_transport != 'dns srv' && isset($account.4.outbound_proxy_secondary)}
<P2633>{$account.4.outbound_proxy_secondary}:{$account.4.sip_port}</P2633>
{else}
@ -3080,7 +3080,6 @@
<!-- # Switch Backup Proxy on No Response. 0 - No, 1 - Yes. Default is 0 -->
<!-- # Number: 0,1 -->
<!-- # Mandatory -->
<P26392>0</P26392>
<!-- # SIP Transport. 0 - UDP, 1 - TCP. 2 - TCP/TLS. Default is 0 -->
@ -4813,7 +4812,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.6.sip_transport != 'dns srv' && isset($account.6.server_address_secondary)}
<P2812>{$account.6.server_address_secondary}:{$account.6.sip_port}</P2812>
{else}
@ -5966,7 +5965,7 @@
<!-- # Mandatory -->
<P51>{$grandstream_lan_port_vlan}</P51>
{else}
<P51>0</P51>
<P22174>0</P22174>
@ -6095,9 +6094,9 @@
<P7051>{$grandstream_openvpn_server}</P7051>
<!-- # OpenVPN Port. Default is 1194 -->
<!-- # Number -->
<!-- # Number -->
<!-- # Mandatory -->
{if isset($grandstream_openvpn_port)}
{if isset($grandstream_openvpn_port)}
<P7052>{$grandstream_openvpn_port}</P7052>
{else}
<P7052>1194</P7052>
@ -6295,7 +6294,7 @@
<!-- # 3CX Auto Provision. 0 - No, 1 - Yes. Default is Yes -->
<!-- # Number: 0, 1 -->
<!-- # Mandatory -->
<P1414>1</P1414>
<P1414>0</P1414>
<!-- # Automatic Upgrade. -->
<!-- # 0 - No, -->
@ -6485,7 +6484,11 @@
<!-- # gxp - Downloaded Language -->
<!-- # String -->
<!-- # Mandatory -->
{if isset($grandstream_display_language)}
<P1362>{$grandstream_display_language}</P1362>
{else}
<P1362>Auto</P1362>
{/if}
<!-- # Default Input Selection. Default is Multi-Tap. -->
<!-- # 0 - Multi-Tap, 1 - Shiftable -->
@ -8175,14 +8178,14 @@
<!-- # Wallpaper Source. 0 - Default, 1 - Download, 2-USB(for GXP2140/2160/2170 only), 3 - Uploaded, 4 - Color Background -->
<!-- # Number: 0-4 -->
<!-- # Mandatory -->
{if isset($grandstream_wallpaper_url)}
<P2916>1</P2916>
{/if}
<!-- # Wallpaper Server Path -->
<!-- # String -->
{if isset($grandstream_wallpaper_url)}
<P2916>1</P2916>
<P2917>{$grandstream_wallpaper_url}</P2917>
{/if}
<!-- # Color Background. Default is #000000. -->
@ -8311,7 +8314,7 @@
<!-- # Mandatory -->
{if isset($grandstream_speaker_ring_volume)}
<P8352>{$grandstream_speaker_ring_volume}</P8352>
{/if}
{/if}
<!-- # Notification Tone Volume -->
<!-- # Number: 0-7. Default is 5. -->
@ -12951,6 +12954,7 @@
<!-- # String -->
<!-- # <P1463></P1463> -->
{/literal}
<!-- ############################################################################## -->
<!-- ## Settings/Programmable Keys / Softkeys Settings -->
<!-- ############################################################################## -->

View File

@ -35,7 +35,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.1.sip_transport != 'dns srv' && isset($account.1.server_address_secondary)}
<P2312>{$account.1.server_address_secondary}:{$account.1.sip_port}</P2312>
{else}
@ -44,21 +44,21 @@
<!-- # Outbound Proxy -->
<!-- # String -->
{if $account.1.sip_transport != 'dns srv' && isset($account.1.outbound_proxy_primary)}
<P48>{$account.1.outbound_proxy_primary}:{$account.1.sip_port}</P48>
{else}
<P48>{$account.1.outbound_proxy_primary}</P48>
{/if}
{/if}
<!-- # Backup Outbound Proxy -->
<!-- # String -->
{if $account.1.sip_transport != 'dns srv' && isset($account.1.outbound_proxy_secondary)}
<P2333>{$account.1.outbound_proxy_secondary}:{$account.1.sip_port}</P2333>
{else}
<P2333>{$account.1.outbound_proxy_secondary}</P2333>
{/if}
{/if}
<!-- # BLF Server -->
<!-- # String -->
@ -1001,7 +1001,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.2.sip_transport != 'dns srv' && isset($account.2.server_address_secondary)}
<P2412>{$account.2.server_address_secondary}:{$account.2.sip_port}</P2412>
{else}
@ -1010,7 +1010,7 @@
<!-- # Outbound Proxy -->
<!-- # String -->
{if $account.2.sip_transport != 'dns srv' && isset($account.2.outbound_proxy_primary)}
<P403>{$account.2.outbound_proxy_primary}:{$account.2.sip_port}</P403>
{else}
@ -1019,7 +1019,7 @@
<!-- # Backup Outbound Proxy -->
<!-- # String -->
{if $account.2.sip_transport != 'dns srv' && isset($account.2.outbound_proxy_secondary)}
<P2433>{$account.2.outbound_proxy_secondary}:{$account.2.sip_port}</P2433>
{else}
@ -1124,7 +1124,7 @@
<!-- # Number: 1 - 64800 -->
<!-- # Mandatory -->
<P412>{$account.2.register_expires}</P412>
<!-- # Subscribe Expiration. Default is 60. Max about 45 days -->
<!-- # Number: 1 - 64800 -->
@ -1469,7 +1469,7 @@
<!-- # Accept Incoming SIP from Proxy Only. 0 - No, 1 - Yes. Default is 0 -->
<!-- # Number: 0, 1 -->
<!-- # Mandatory -->
<P2447>1</P2447>
<P2447>{$grandstream_accept_sip_from_proxy_only}</P2447>
<!-- # Authenticate Incoming INVITE. 0 - No, 1 - Yes. Default is 0 -->
<!-- # Number: 0, 1 -->
@ -1954,7 +1954,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.3.sip_transport != 'dns srv' && isset($account.3.server_address_secondary)}
<P2512>{$account.3.server_address_secondary}:{$account.3.sip_port}</P2512>
{else}
@ -1968,7 +1968,7 @@
<P503>{$account.3.outbound_proxy_primary}:{$account.3.sip_port}</P503>
{else}
<P503>{$account.3.outbound_proxy_primary}</P503>
{/if}
{/if}
<!-- # Backup Outbound Proxy -->
<!-- # String -->
@ -2906,7 +2906,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.4.sip_transport != 'dns srv' && isset($account.4.server_address_secondary)}
<P2612>{$account.4.server_address_secondary}:{$account.4.sip_port}</P2612>
{else}
@ -2915,16 +2915,16 @@
<!-- # Outbound Proxy -->
<!-- # String -->
{if $account.4.sip_transport != 'dns srv' && isset($account.4.outbound_proxy_primary)}
<P603>{$account.4.outbound_proxy_primary}:{$account.4.sip_port}</P603>
{else}
<P603>{$account.4.outbound_proxy_primary}</P603>
{/if}
{/if}
<!-- # Backup Outbound Proxy -->
<!-- # String -->
{if $account.4.sip_transport != 'dns srv' && isset($account.4.outbound_proxy_secondary)}
<P2633>{$account.4.outbound_proxy_secondary}:{$account.4.sip_port}</P2633>
{else}
@ -3080,7 +3080,6 @@
<!-- # Switch Backup Proxy on No Response. 0 - No, 1 - Yes. Default is 0 -->
<!-- # Number: 0,1 -->
<!-- # Mandatory -->
<P26392>0</P26392>
<!-- # SIP Transport. 0 - UDP, 1 - TCP. 2 - TCP/TLS. Default is 0 -->
@ -3862,7 +3861,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.5.sip_transport != 'dns srv' && isset($account.5.outbound_proxy_secondary)}
{if $account.5.sip_transport != 'dns srv' && isset($account.5.server_address_secondary)}
<P2712>{$account.5.server_address_secondary}:{$account.5.sip_port}</P2712>
{else}
<P2712>{$account.5.server_address_secondary}</P2712>
@ -4813,7 +4812,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.6.sip_transport != 'dns srv' && isset($account.6.server_address_secondary)}
<P2812>{$account.6.server_address_secondary}:{$account.6.sip_port}</P2812>
{else}
@ -5966,7 +5965,7 @@
<!-- # Mandatory -->
<P51>{$grandstream_lan_port_vlan}</P51>
{else}
<P51>0</P51>
<P22174>0</P22174>
@ -6097,7 +6096,7 @@
<!-- # OpenVPN Port. Default is 1194 -->
<!-- # Number -->
<!-- # Mandatory -->
{if isset($grandstream_openvpn_port)}
{if isset($grandstream_openvpn_port)}
<P7052>{$grandstream_openvpn_port}</P7052>
{else}
<P7052>1194</P7052>
@ -6337,7 +6336,7 @@
<!-- # Firmware Upgrade Confirmation. 0 - No, 1 - Yes. Default is 1 -->
<!-- # Number: 0,1 -->
<!-- # Mandatory -->
<P8375>0</P8375>
<P8375>1</P8375>
<!-- #Config -->
<!-- # Config Via. 0 - TFTP, 1 - HTTP, 2 - HTTPS, 3 - FTP, 4 - FTPS. Default is 1. Default is 2 -->
@ -6485,7 +6484,11 @@
<!-- # gxp - Downloaded Language -->
<!-- # String -->
<!-- # Mandatory -->
{if isset($grandstream_display_language)}
<P1362>{$grandstream_display_language}</P1362>
{else}
<P1362>Auto</P1362>
{/if}
<!-- # Default Input Selection. Default is Multi-Tap. -->
<!-- # 0 - Multi-Tap, 1 - Shiftable -->
@ -6725,7 +6728,11 @@
<!-- # Sort Phonebook by. 0 - Last Name, 1 - First Name. Default is 0 -->
<!-- # Number: 0, 1 -->
<!-- # Mandatory -->
{if isset($grandstream_sort_phonebook_by)}
<P2914>{$grandstream_sort_phonebook_by}</P2914>
{else}
<P2914>0</P2914>
{/if}
<!-- # Phonebook Key Function. 0 - Default, 1 - LDAP Search, 2 - Local Phonebook, 3 - Local Group, 4 - Broadsoft Phonebook -->
<!-- # Number: 0, 1, 2, 3, 4. -->
@ -6739,7 +6746,11 @@
<!-- # Default search mode. 0 - Quick match, 1 - Exact match. Default is 0 -->
<!-- # Number: 0, 1. -->
<!-- # Mandatory -->
{if isset($grandstream_phonebook_search_mode)}
<P2970>{$grandstream_phonebook_search_mode}</P2970>
{else}
<P2970>0</P2970>
{/if}
<!-- ############################################################################## -->
<!-- ## Phonebook/LDAP -->
@ -8167,15 +8178,14 @@
<!-- # Wallpaper Source. 0 - Default, 1 - Download, 2-USB(for GXP2140/2160/2170 only), 3 - Uploaded, 4 - Color Background -->
<!-- # Number: 0-4 -->
<!-- # Mandatory -->
<!-- # This is defined in if/else statement below. Commented out here to avoid duplicate declaration -->
<!-- <P2916>0</P2916> -->
{if isset($grandstream_wallpaper_url)}
<P2916>1</P2916>
{/if}
<!-- # Wallpaper Server Path -->
<!-- # String -->
{if isset($grandstream_wallpaper_url)}
<P2916>1</P2916>
<P2917>{$grandstream_wallpaper_url}</P2917>
{/if}
<!-- # Color Background. Default is #000000. -->
@ -8304,7 +8314,7 @@
<!-- # Mandatory -->
{if isset($grandstream_speaker_ring_volume)}
<P8352>{$grandstream_speaker_ring_volume}</P8352>
{/if}
{/if}
<!-- # Notification Tone Volume -->
<!-- # Number: 0-7. Default is 5. -->
@ -12944,6 +12954,7 @@
<!-- # String -->
<!-- # <P1463></P1463> -->
{/literal}
<!-- ############################################################################## -->
<!-- ## Settings/Programmable Keys / Softkeys Settings -->
<!-- ############################################################################## -->

View File

@ -35,7 +35,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.1.sip_transport != 'dns srv' && isset($account.1.server_address_secondary)}
<P2312>{$account.1.server_address_secondary}:{$account.1.sip_port}</P2312>
{else}
@ -44,21 +44,21 @@
<!-- # Outbound Proxy -->
<!-- # String -->
{if $account.1.sip_transport != 'dns srv' && isset($account.1.outbound_proxy_primary)}
<P48>{$account.1.outbound_proxy_primary}:{$account.1.sip_port}</P48>
{else}
<P48>{$account.1.outbound_proxy_primary}</P48>
{/if}
{/if}
<!-- # Backup Outbound Proxy -->
<!-- # String -->
{if $account.1.sip_transport != 'dns srv' && isset($account.1.outbound_proxy_secondary)}
<P2333>{$account.1.outbound_proxy_secondary}:{$account.1.sip_port}</P2333>
{else}
<P2333>{$account.1.outbound_proxy_secondary}</P2333>
{/if}
{/if}
<!-- # BLF Server -->
<!-- # String -->
@ -1001,7 +1001,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.2.sip_transport != 'dns srv' && isset($account.2.server_address_secondary)}
<P2412>{$account.2.server_address_secondary}:{$account.2.sip_port}</P2412>
{else}
@ -1010,7 +1010,7 @@
<!-- # Outbound Proxy -->
<!-- # String -->
{if $account.2.sip_transport != 'dns srv' && isset($account.2.outbound_proxy_primary)}
<P403>{$account.2.outbound_proxy_primary}:{$account.2.sip_port}</P403>
{else}
@ -1019,7 +1019,7 @@
<!-- # Backup Outbound Proxy -->
<!-- # String -->
{if $account.2.sip_transport != 'dns srv' && isset($account.2.outbound_proxy_secondary)}
<P2433>{$account.2.outbound_proxy_secondary}:{$account.2.sip_port}</P2433>
{else}
@ -1124,7 +1124,7 @@
<!-- # Number: 1 - 64800 -->
<!-- # Mandatory -->
<P412>{$account.2.register_expires}</P412>
<!-- # Subscribe Expiration. Default is 60. Max about 45 days -->
<!-- # Number: 1 - 64800 -->
@ -1469,7 +1469,7 @@
<!-- # Accept Incoming SIP from Proxy Only. 0 - No, 1 - Yes. Default is 0 -->
<!-- # Number: 0, 1 -->
<!-- # Mandatory -->
<P2447>1</P2447>
<P2447>{$grandstream_accept_sip_from_proxy_only}</P2447>
<!-- # Authenticate Incoming INVITE. 0 - No, 1 - Yes. Default is 0 -->
<!-- # Number: 0, 1 -->
@ -1954,7 +1954,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.3.sip_transport != 'dns srv' && isset($account.3.server_address_secondary)}
<P2512>{$account.3.server_address_secondary}:{$account.3.sip_port}</P2512>
{else}
@ -1968,7 +1968,7 @@
<P503>{$account.3.outbound_proxy_primary}:{$account.3.sip_port}</P503>
{else}
<P503>{$account.3.outbound_proxy_primary}</P503>
{/if}
{/if}
<!-- # Backup Outbound Proxy -->
<!-- # String -->
@ -2906,7 +2906,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.4.sip_transport != 'dns srv' && isset($account.4.server_address_secondary)}
<P2612>{$account.4.server_address_secondary}:{$account.4.sip_port}</P2612>
{else}
@ -2915,16 +2915,16 @@
<!-- # Outbound Proxy -->
<!-- # String -->
{if $account.4.sip_transport != 'dns srv' && isset($account.4.outbound_proxy_primary)}
<P603>{$account.4.outbound_proxy_primary}:{$account.4.sip_port}</P603>
{else}
<P603>{$account.4.outbound_proxy_primary}</P603>
{/if}
{/if}
<!-- # Backup Outbound Proxy -->
<!-- # String -->
{if $account.4.sip_transport != 'dns srv' && isset($account.4.outbound_proxy_secondary)}
<P2633>{$account.4.outbound_proxy_secondary}:{$account.4.sip_port}</P2633>
{else}
@ -3080,7 +3080,6 @@
<!-- # Switch Backup Proxy on No Response. 0 - No, 1 - Yes. Default is 0 -->
<!-- # Number: 0,1 -->
<!-- # Mandatory -->
<P26392>0</P26392>
<!-- # SIP Transport. 0 - UDP, 1 - TCP. 2 - TCP/TLS. Default is 0 -->
@ -4813,7 +4812,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.6.sip_transport != 'dns srv' && isset($account.6.server_address_secondary)}
<P2812>{$account.6.server_address_secondary}:{$account.6.sip_port}</P2812>
{else}
@ -5966,7 +5965,7 @@
<!-- # Mandatory -->
<P51>{$grandstream_lan_port_vlan}</P51>
{else}
<P51>0</P51>
<P22174>0</P22174>
@ -6097,7 +6096,7 @@
<!-- # OpenVPN Port. Default is 1194 -->
<!-- # Number -->
<!-- # Mandatory -->
{if isset($grandstream_openvpn_port)}
{if isset($grandstream_openvpn_port)}
<P7052>{$grandstream_openvpn_port}</P7052>
{else}
<P7052>1194</P7052>
@ -6295,7 +6294,7 @@
<!-- # 3CX Auto Provision. 0 - No, 1 - Yes. Default is Yes -->
<!-- # Number: 0, 1 -->
<!-- # Mandatory -->
<P1414>1</P1414>
<P1414>0</P1414>
<!-- # Automatic Upgrade. -->
<!-- # 0 - No, -->
@ -6485,7 +6484,11 @@
<!-- # gxp - Downloaded Language -->
<!-- # String -->
<!-- # Mandatory -->
{if isset($grandstream_display_language)}
<P1362>{$grandstream_display_language}</P1362>
{else}
<P1362>Auto</P1362>
{/if}
<!-- # Default Input Selection. Default is Multi-Tap. -->
<!-- # 0 - Multi-Tap, 1 - Shiftable -->
@ -6725,7 +6728,11 @@
<!-- # Sort Phonebook by. 0 - Last Name, 1 - First Name. Default is 0 -->
<!-- # Number: 0, 1 -->
<!-- # Mandatory -->
{if isset($grandstream_sort_phonebook_by)}
<P2914>{$grandstream_sort_phonebook_by}</P2914>
{else}
<P2914>0</P2914>
{/if}
<!-- # Phonebook Key Function. 0 - Default, 1 - LDAP Search, 2 - Local Phonebook, 3 - Local Group, 4 - Broadsoft Phonebook -->
<!-- # Number: 0, 1, 2, 3, 4. -->
@ -6739,7 +6746,11 @@
<!-- # Default search mode. 0 - Quick match, 1 - Exact match. Default is 0 -->
<!-- # Number: 0, 1. -->
<!-- # Mandatory -->
{if isset($grandstream_phonebook_search_mode)}
<P2970>{$grandstream_phonebook_search_mode}</P2970>
{else}
<P2970>0</P2970>
{/if}
<!-- ############################################################################## -->
<!-- ## Phonebook/LDAP -->
@ -8167,15 +8178,14 @@
<!-- # Wallpaper Source. 0 - Default, 1 - Download, 2-USB(for GXP2140/2160/2170 only), 3 - Uploaded, 4 - Color Background -->
<!-- # Number: 0-4 -->
<!-- # Mandatory -->
<!-- # This is defined in if/else statement below. Commented out here to avoid duplicate declaration -->
<!-- <P2916>0</P2916> -->
{if isset($grandstream_wallpaper_url)}
<P2916>1</P2916>
{/if}
<!-- # Wallpaper Server Path -->
<!-- # String -->
{if isset($grandstream_wallpaper_url)}
<P2916>1</P2916>
<P2917>{$grandstream_wallpaper_url}</P2917>
{/if}
<!-- # Color Background. Default is #000000. -->
@ -8304,7 +8314,7 @@
<!-- # Mandatory -->
{if isset($grandstream_speaker_ring_volume)}
<P8352>{$grandstream_speaker_ring_volume}</P8352>
{/if}
{/if}
<!-- # Notification Tone Volume -->
<!-- # Number: 0-7. Default is 5. -->
@ -12247,7 +12257,7 @@
<!-- # Value. -->
<!-- # String. -->
<!-- # P23903 = -->
{/literal}
<!-- ###################################################################################### -->
<!-- ## Programmable Keys/Physical Multi-Purpose Keys - GXP2130/2160 only -->
@ -12276,7 +12286,6 @@
<!-- # User ID. Max length allowed is 64 characters. -->
<!-- # String -->
<!-- <P303></P303> -->
{/literal}
{assign var=key_types value=["none"=>-1,"speed dial"=>0, "blf"=>1, "presence watcher"=>2, "eventlist blf"=>3,"speed dial active"=>4,"dial dtmf"=>5,"voicemail"=>6,"call return"=>7,"transfer"=>8,"call park"=>9,"intercom"=>10,"ldap search"=>11,"conference"=>12,"multicast paging"=>13,"record"=>14,"call log"=>15,"monitored call park"=>16,"menu"=>17]}
{$start_id=323}
@ -12945,6 +12954,7 @@
<!-- # String -->
<!-- # <P1463></P1463> -->
{/literal}
<!-- ############################################################################## -->
<!-- ## Settings/Programmable Keys / Softkeys Settings -->
<!-- ############################################################################## -->

View File

@ -35,7 +35,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.1.sip_transport != 'dns srv' && isset($account.1.server_address_secondary)}
<P2312>{$account.1.server_address_secondary}:{$account.1.sip_port}</P2312>
{else}
@ -44,21 +44,21 @@
<!-- # Outbound Proxy -->
<!-- # String -->
{if $account.1.sip_transport != 'dns srv' && isset($account.1.outbound_proxy_primary)}
<P48>{$account.1.outbound_proxy_primary}:{$account.1.sip_port}</P48>
{else}
<P48>{$account.1.outbound_proxy_primary}</P48>
{/if}
{/if}
<!-- # Backup Outbound Proxy -->
<!-- # String -->
{if $account.1.sip_transport != 'dns srv' && isset($account.1.outbound_proxy_secondary)}
<P2333>{$account.1.outbound_proxy_secondary}:{$account.1.sip_port}</P2333>
{else}
<P2333>{$account.1.outbound_proxy_secondary}</P2333>
{/if}
{/if}
<!-- # BLF Server -->
<!-- # String -->
@ -1001,7 +1001,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.2.sip_transport != 'dns srv' && isset($account.2.server_address_secondary)}
<P2412>{$account.2.server_address_secondary}:{$account.2.sip_port}</P2412>
{else}
@ -1010,7 +1010,7 @@
<!-- # Outbound Proxy -->
<!-- # String -->
{if $account.2.sip_transport != 'dns srv' && isset($account.2.outbound_proxy_primary)}
<P403>{$account.2.outbound_proxy_primary}:{$account.2.sip_port}</P403>
{else}
@ -1019,7 +1019,7 @@
<!-- # Backup Outbound Proxy -->
<!-- # String -->
{if $account.2.sip_transport != 'dns srv' && isset($account.2.outbound_proxy_secondary)}
<P2433>{$account.2.outbound_proxy_secondary}:{$account.2.sip_port}</P2433>
{else}
@ -1124,7 +1124,7 @@
<!-- # Number: 1 - 64800 -->
<!-- # Mandatory -->
<P412>{$account.2.register_expires}</P412>
<!-- # Subscribe Expiration. Default is 60. Max about 45 days -->
<!-- # Number: 1 - 64800 -->
@ -1469,7 +1469,7 @@
<!-- # Accept Incoming SIP from Proxy Only. 0 - No, 1 - Yes. Default is 0 -->
<!-- # Number: 0, 1 -->
<!-- # Mandatory -->
<P2447>1</P2447>
<P2447>{$grandstream_accept_sip_from_proxy_only}</P2447>
<!-- # Authenticate Incoming INVITE. 0 - No, 1 - Yes. Default is 0 -->
<!-- # Number: 0, 1 -->
@ -1954,7 +1954,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.3.sip_transport != 'dns srv' && isset($account.3.server_address_secondary)}
<P2512>{$account.3.server_address_secondary}:{$account.3.sip_port}</P2512>
{else}
@ -1968,7 +1968,7 @@
<P503>{$account.3.outbound_proxy_primary}:{$account.3.sip_port}</P503>
{else}
<P503>{$account.3.outbound_proxy_primary}</P503>
{/if}
{/if}
<!-- # Backup Outbound Proxy -->
<!-- # String -->
@ -2906,7 +2906,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.4.sip_transport != 'dns srv' && isset($account.4.server_address_secondary)}
<P2612>{$account.4.server_address_secondary}:{$account.4.sip_port}</P2612>
{else}
@ -2915,16 +2915,16 @@
<!-- # Outbound Proxy -->
<!-- # String -->
{if $account.4.sip_transport != 'dns srv' && isset($account.4.outbound_proxy_primary)}
<P603>{$account.4.outbound_proxy_primary}:{$account.4.sip_port}</P603>
{else}
<P603>{$account.4.outbound_proxy_primary}</P603>
{/if}
{/if}
<!-- # Backup Outbound Proxy -->
<!-- # String -->
{if $account.4.sip_transport != 'dns srv' && isset($account.4.outbound_proxy_secondary)}
<P2633>{$account.4.outbound_proxy_secondary}:{$account.4.sip_port}</P2633>
{else}
@ -3080,7 +3080,6 @@
<!-- # Switch Backup Proxy on No Response. 0 - No, 1 - Yes. Default is 0 -->
<!-- # Number: 0,1 -->
<!-- # Mandatory -->
<P26392>0</P26392>
<!-- # SIP Transport. 0 - UDP, 1 - TCP. 2 - TCP/TLS. Default is 0 -->
@ -4813,7 +4812,7 @@
<!-- # Secondary SIP Server -->
<!-- # String -->
{if $account.6.sip_transport != 'dns srv' && isset($account.6.server_address_secondary)}
<P2812>{$account.6.server_address_secondary}:{$account.6.sip_port}</P2812>
{else}
@ -5966,7 +5965,7 @@
<!-- # Mandatory -->
<P51>{$grandstream_lan_port_vlan}</P51>
{else}
<P51>0</P51>
<P22174>0</P22174>
@ -6097,7 +6096,7 @@
<!-- # OpenVPN Port. Default is 1194 -->
<!-- # Number -->
<!-- # Mandatory -->
{if isset($grandstream_openvpn_port)}
{if isset($grandstream_openvpn_port)}
<P7052>{$grandstream_openvpn_port}</P7052>
{else}
<P7052>1194</P7052>
@ -6295,7 +6294,7 @@
<!-- # 3CX Auto Provision. 0 - No, 1 - Yes. Default is Yes -->
<!-- # Number: 0, 1 -->
<!-- # Mandatory -->
<P1414>1</P1414>
<P1414>0</P1414>
<!-- # Automatic Upgrade. -->
<!-- # 0 - No, -->
@ -8179,15 +8178,14 @@
<!-- # Wallpaper Source. 0 - Default, 1 - Download, 2-USB(for GXP2140/2160/2170 only), 3 - Uploaded, 4 - Color Background -->
<!-- # Number: 0-4 -->
<!-- # Mandatory -->
<!-- # This is defined in if/else statement below. Commented out here to avoid duplicate declaration -->
<!-- <P2916>0</P2916> -->
{if isset($grandstream_wallpaper_url)}
<P2916>1</P2916>
{/if}
<!-- # Wallpaper Server Path -->
<!-- # String -->
{if isset($grandstream_wallpaper_url)}
<P2916>1</P2916>
<P2917>{$grandstream_wallpaper_url}</P2917>
{/if}
<!-- # Color Background. Default is #000000. -->
@ -8316,7 +8314,7 @@
<!-- # Mandatory -->
{if isset($grandstream_speaker_ring_volume)}
<P8352>{$grandstream_speaker_ring_volume}</P8352>
{/if}
{/if}
<!-- # Notification Tone Volume -->
<!-- # Number: 0-7. Default is 5. -->

File diff suppressed because it is too large Load Diff