Grandstream - directory request

From MiRTA PBX documentation
Revision as of 09:11, 22 May 2018 by Admin (talk | contribs) (Created page with "On the phone template, add the entry to download the directory: <pre> <P331>{$server_host}/pbx/autoprovision/{$provisioning_password}/{$mac}-directory.xml</P331> </pre> Use...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

On the phone template, add the entry to download the directory:

<P331>{$server_host}/pbx/autoprovision/{$provisioning_password}/{$mac}-directory.xml</P331>

Use this template for the directory request

<?xml version="1.0" encoding="utf-8"?>
<AddressBook>
{item_loop}
	<Contact>
		<id>1</id>
		<FirstName>{$NAME}</FirstName>
		<Frequent>0</Frequent>
		<Phone type="Work">
			<phonenumber>{$PHONE1}</phonenumber>
			<accountindex>1</accountindex>
		</Phone>
	<Group>3</Group>
		<Primary>0</Primary>
	</Contact>
{/item_loop}
</AddressBook>