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}