Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

A basic Contacts XML structure is defined here:

Code Block
xml
borderStylexmlsolid
titleContactx XML Structure examplexml
borderStylesolid
<phonebooks>
    <contacts>
        <contact>
            <numbers>
                <number />
            </numbers>
            <emails>
                <email />
            </emails>
        </contact>
    </contacts>
</phonebooks>

And, a more fleshed-out example looks like:

Code Block
xml
borderStylexmlsolid
titleXML Contact Examplexml
borderStylesolid
<phonebooks>
    <contacts group_name="PBX Directory" editable="1" id="0">
        <contact
            prefix="Mr"
            first_name="Robert"
            second_name="Davis"
            last_name="Jones"
            suffix="III"
            contact_type="sip"
            organization="Digium"
            job_title="Direction Manager"
            location="East Texas"
            notes="A rapscallion"
            account_id="104"
            subscribe_to="sip:104@1.2.3.4"
            has_voicemail="1"
            can_monitor="1"
            can_intercom="1"
        >
            <numbers>
                <number dial="104" dial_prefix="" label="Extension" primary="1" />
                <number dial="8005551234" dial_prefix="9" label="Mobile" />
            </numbers>
            <emails>
                <email address="rdj@mycompany.com" label="Work" primary="1" />
            </emails>
        </contact>
     </contacts>
    <contacts group_name="Default" editable="1" id="Default">
    ....
    </contacts>
    <contacts group_name="Family Members" editable="1" id="anythingyouwant">
    ....
    </contacts>
</phonebooks>

...