From 7b95bcb5c0c189e528caf2d354af48a78558e2d7 Mon Sep 17 00:00:00 2001 From: Len Date: Fri, 22 Nov 2019 21:33:22 -0500 Subject: [PATCH] Update {$mac}.xml (#4904) --- .../provision/grandstream/gac2500/{$mac}.xml | 40 ++++++++----------- 1 file changed, 17 insertions(+), 23 deletions(-) diff --git a/resources/templates/provision/grandstream/gac2500/{$mac}.xml b/resources/templates/provision/grandstream/gac2500/{$mac}.xml index c4da4ef81e..44958da1f2 100644 --- a/resources/templates/provision/grandstream/gac2500/{$mac}.xml +++ b/resources/templates/provision/grandstream/gac2500/{$mac}.xml @@ -4375,11 +4375,11 @@ - {if isset($contact_grandstream)} - 2 - {else} - 0 - {/if} + {if isset($contact_groups) || isset($contact_users) || isset($contact_extensions)} + 2 + {else} + 0 + {/if} @@ -4393,11 +4393,7 @@ - {if isset($contact_grandstream)} - 1 - {else} - 0 - {/if} + {$grandstream_phonebook_download} @@ -4408,27 +4404,25 @@ - {if isset($contact_grandstream)} - {$grandstream_phonebook_xml_server_path}{$mac}/ - {elseif isset($grandstream_phonebook_xml_server_path)} - {$grandstream_phonebook_xml_server_path} - {else} - - {/if} + {if isset($grandstream_phonebook_xml_server_path)} + {$grandstream_phonebook_xml_server_path}/{$mac} + {else} + + {/if} - + {$http_auth_username} - + {$http_auth_password} {if isset($grandstream_phonebook_download_interval)} - {$grandstream_phonebook_download_interval} - {else} - 0 - {/if} + {$grandstream_phonebook_download_interval} + {else} + 0 + {/if}