From 40f78c3c28021d7a7042089a54472bee3030d364 Mon Sep 17 00:00:00 2001 From: ijaron Date: Sat, 9 Nov 2024 19:40:36 -0600 Subject: [PATCH] Update dp750/mac.xml (#7152) * Update dp750/mac.xml Use $grandstream_ring_timeout for Ring time rather then hardcode Use $grandstream_dial_plan for every account rather then only first set Station name to DP750-{$mac} Add option for Automatic Reboot (Firmware 1.0.17.1+) Allow $grandstream_stun_server and use stun if $grandstream_nat_traversal == 1 $grandstream_accept_sip_from_proxy_only to set Disable Direct IP Call Turn off 3CX Auto Provision Use $grandstream_automatic_provisioning and convert to values used in DP750 vs other grandstream heardware Allow $grandstream_automatic_provisioning_minutes $grandstream_automatic_provisioning_hour $grandstream_automatic_provisioning_day use $grandstream_phonebook_download_interval rather then just disabling --- .../provision/grandstream/dp750/{$mac}.xml | 96 ++++++++++++++++--- 1 file changed, 81 insertions(+), 15 deletions(-) diff --git a/resources/templates/provision/grandstream/dp750/{$mac}.xml b/resources/templates/provision/grandstream/dp750/{$mac}.xml index 9682183af6..fdf95542fd 100644 --- a/resources/templates/provision/grandstream/dp750/{$mac}.xml +++ b/resources/templates/provision/grandstream/dp750/{$mac}.xml @@ -547,7 +547,7 @@ -60 +{$grandstream_ring_timeout} @@ -1034,7 +1034,11 @@ -{ x+ | *x+ | *xx | *xxx | *xxxx | *xxxxx | *xxxxxx | **xx | **xxx | **xxxx | **xxxxx | **xxxxxx | **xxxxxxx | **xxxxxxxx | *xx*x+ } +{if isset($grandstream_dial_plan) } +{$grandstream_dial_plan} +{else} +{literal}{x+|*x+|*++|\p\a\r\k\+*x+|\p\a\r\k\+x+|\f\l\o\w\+*x+}{/literal} +{/if} @@ -1563,7 +1567,12 @@ -{ x+ | *x+ | *xx | *xxx | *xxxx | *xxxxx | *xxxxxx | **xx | **xxx | **xxxx | **xxxxx | **xxxxxx | **xxxxxxx | **xxxxxxxx | *xx*x+ } + +{if isset($grandstream_dial_plan) } +{$grandstream_dial_plan} +{else} +{literal}{x+|*x+|*++|\p\a\r\k\+*x+|\p\a\r\k\+x+|\f\l\o\w\+*x+}{/literal} +{/if} @@ -2093,7 +2102,11 @@ -{ x+ | *x+ | *xx | *xxx | *xxxx | *xxxxx | *xxxxxx | **xx | **xxx | **xxxx | **xxxxx | **xxxxxx | **xxxxxxx | **xxxxxxxx | *xx*x+ } +{if isset($grandstream_dial_plan) } +{$grandstream_dial_plan} +{else} +{literal}{x+|*x+|*++|\p\a\r\k\+*x+|\p\a\r\k\+x+|\f\l\o\w\+*x+}{/literal} +{/if} @@ -2169,7 +2182,7 @@ -DP750 +DP750-{$mac} @@ -2219,6 +2232,53 @@ + +################################################################################### +## Maintenance / Automatic Reboot +################################################################################### +# Automatic Reboot Type +# 0 - Automatic reboot is disabled, 1 - Device will reboot daily, 2 - Device will reboot every week on the set day, 3 - Device will reboot every month on the set day +# Number: 0, 1, 2, 3 +# Mandatory = 1 +# Default Value: 0 + +{if isset($grandstream_automatic_reboot) } +{$grandstream_automatic_reboot} +{/if} + +# Yes, reboot every week on +# Number: 0 - 6 +# Mandatory = 1 +# Default Value: 0 +{if isset($grandstream_automatic_reboot_weekday) } +{$grandstream_automatic_reboot_weekday} +{/if} + +# Yes, reboot every month on day +# Number: 1 - 31 +# Mandatory = 1 +# Default Value: 1 +{if isset($grandstream_automatic_reboot_monthday) } +{$grandstream_automatic_reboot_monthday} +{/if} + +# Hour of reboot time +# Number: 0 - 23 +# Mandatory = 1 +# Default Value: 0 +{if isset($grandstream_automatic_reboot_hour) } +{$grandstream_automatic_reboot_hour} +{/if} + +# Minute of reboot time +# Number: 0 - 59 +# Mandatory = 1 +# Default Value: 0 +{if isset($grandstream_automatic_reboot_minute) } +{$grandstream_automatic_reboot_minute} +{/if} + + @@ -2785,11 +2845,11 @@ -0 +{if $grandstream_nat_traversal == 1}1{else}0{/if} -stun.ipvideotalk.com +{$grandstream_stun_server} @@ -2844,7 +2904,7 @@ -0 +{$grandstream_accept_sip_from_proxy_only} @@ -3016,7 +3076,7 @@ -1 +0 @@ -3026,20 +3086,28 @@ -0 + +{if isset($grandstream_automatic_provisioning)} +{if $grandstream_automatic_provisioning == 1} +3 +{elseif $grandstream_automatic_provisioning == 2} +1 +{elseif $grandstream_automatic_provisioning == 3} +2 +{/if} -10080 +{$grandstream_automatic_provisioning_minutes} -1 +{$grandstream_automatic_provisioning_hour} -1 +{$grandstream_automatic_provisioning_day} @@ -3364,8 +3432,6 @@ {if isset($grandstream_phonebook_download_interval)} {$grandstream_phonebook_download_interval} -{else} - 0 {/if}