The order of the contacts in this group is important. Those contacts fill in the BLF-keys in the same order as given in the xml, and those contacts
are subscribed to, in order, up to a maximum of 40.
Contacts XML skeleton
A basic Contacts XML structure is defined here:
Contactx XML Structure example
<phonebooks>
<contacts>
<contact>
<numbers>
<number />
</numbers>
<emails>
<email />
</emails>
</contact>
</contacts>
</phonebooks>
And, a more fleshed-out example looks like:
XML Contact Example
<phonebooks>
<contacts group_name="PBX Directory" editable="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=""
account_id="104"
subscribe_to="sip:[email protected]"
>
<numbers>
<number dial="104" dial_prefix="" label="Extension" primary="1" />
<number dial="8005551234" dial_prefix="9" label="Mobile" />
</numbers>
<emails>
<email address="[email protected]" label="Work" primary="1" />
</emails>
</contact>
</contacts>
<contacts group_name="Default" editable="1" id="1">
....
</contacts>
<contacts group_name="Family Members" editable="1" id="2">
....
</contacts>
</phonebooks>
Dial Plans
The dial plan includes settings that specify the behavior of the phone as a user enters a number in off-hook dialing mode.
The digit map is the setting that describes different patterns of numbers. When a number matches a pattern, the number is sent to Asterisk to