The directory settings XML tag (<tbook> or <phone-book) contains a list of contact entries to be provisioned into the internal phone directory.
The tags <tbook> and <phone-book> are equivalent: These XML tags can be used either |
<tbook complete="true"> <item context="<outgoing_SIP_identity>" type="<contact_category>" index="<contact_index(0)>"> <name><contact_name</name> <number><contact_name></number> </item> ... <item context="<outgoing_SIP_identity>" type="<contact_category>" index="<contact_index(n)>"> <name><contact_name</name> <number><contact_name></number> <number_type>sip</number_type> </item> </tbook> |
<?xml version="1.0" encoding="utf-8"?> <tbook complete="true"> <item context="<outgoing_SIP_identity>" type="<contact_category>" index="<contact_index(0)>"> <name><contact_name</name> <number><contact_name></number> </item> ... <item context="<outgoing_SIP_identity>" type="<contact_category>" index="<contact_index(n)>"> <name><contact_name</name> <number><contact_name></number> <number_type>sip</number_type> </item> </tbook> |
Where the following attributes are used:
index
The index provided is used to change the specific entry at that index. Previously the tbook tried to match the entries provided to the internal entries via the given number string(and still does so when no index is provided), which allowed the provisioner to change everything but this phonenumber. Now with the help of the index even that can be done.
Previously the tbook tried to match the entries provided to the internal entries via the given number string (and still does so when no index is provided), which allowed the provisioner to change everything but this phonenumber. Now with the help of the index even that can be done.
<?xml version="1.0" encoding="utf-8"?> <tbook> <item context="line1" type="none" index="0"> <name>Adrian</name> <number>42965</number> </item> <item context="active" type="colleagues" index="1"> <name>Roland</name> <number>16424</number> </item> ... <item context="line12" type="friends" index="99"> <name>Suzy</name> <number>78371</number> </item> </tbook> |
<?xml version="1.0" encoding="utf-8"?> <tbook e='2' complete="true"> <item context="active" type='master' fav="false" mod="true"> <!-- the following tags can reside only in the master entry: * first_name * last_name * birthday * fav --> <!-- the following tags can reside both in the master or in a member entry: * group * title * organisation * email * note --> <!-- the following tags can reside only in a member entry: * name (this is just an alias for the number, not the person) * number * type * context (attribute of the 'item' tag meaning the outgoing identity) --> <name>Johnny</name> <!-- the number in the Master entry is used as an identifier linking referred by the Member entries --> <number>123</number> <first_name>John</first_name> <last_name>Doe</last_name> <title>Mr.</title> </item> <item context="active" context="line2" type='' fav="false" mod="true"> <!-- Member entry of the Master entry with number 123 --> <last_name>123</last_name> <number>003912345678</number> <!-- in Member Entry should be "Member_Alias" --> <first_name>Member_Alias</first_name> <number_type>home</number_type> <title>Boss</title> </item> <item context="active" type='' fav="false" mod="true"> <!-- Member entry of the Master entry with number 123 --> <last_name>123</last_name> <number>003933812345</number> <!-- in Member Entry should be "Member_Alias" --> <first_name>Member_Alias</first_name> <number_type>business</number_type> </item> <item context="active" type='' fav="false" mod="true"> <!-- Member entry of the Master entry with number 123 --> <last_name>123</last_name> <number>003987654321</number> <!-- in Member Entry should be "Member_Alias" --> <first_name>Member_Alias</first_name> <number_type>mobile</number_type> </item> <item context="active" type='' fav='false' mod="true"> <name>Adrian</name> <number>42965</number> <number_type>fixed</number_type> </item> </tbook> |