4.2. PhoneBook config file "phonebook.xml"

Example:

<phonebook>
  <title>Internal Phonebook</title>
  <entry>
    <type>user</type>
    <firstname>Petra</firstname>
    <lastname>Petersson</lastname>
    <extension>10</extension>
    <context>internal</context>
    <peername>SIP/tel10</peername>
  </entry>
  <entry>
    <type>conference</type>
    <confname>7000</confname>
    <displayname>Conference 1</displayname>
    <extension>7000</extension>
    <context>internal</context>
  </entry>
  <entry>
    <type>queue</type>
    <queuename>board</queuename>
    <displayname>SwitchBoard</displayname>
    <extension>s</extension>
    <context>inbound</context>
  </entry>
</phonebook>


The file phonebook.xml is a sample file included in software package of asterBoard™ to show the user, how a static phonebook has to look like. Experienced users or system integrators with PHP knowledge can easily adopt the webservice function that reads this file to a function that reads the entries for these entities from a webservice or database. By using the defaults, this file is read during initialization of a PhoneBook layout object defined inside the application config file config.xml.


title:

Existence: optional

Value: String representation of the title of a PhoneBook layout object

Description: The string specified here is show in the title bar of a PhoneBook layout object.


Currently, there are three different types of entries that are displayed inside the views of a PhoneBook layout object:

  • user
  • conference
  • queue