Digium D40/D45 - directory request

From MiRTA PBX documentation
Jump to navigation Jump to search
<phonebooks>
<contacts group_name="Default" editable="0" id="0">
     {item_loop}
      <contact
          id="{$INDEX}"
	  prefix=""
	  first_name="{$NAME}"
	  second_name=""
	  last_name="{$LASTNAME}"
	  suffix=""
	  contact_type="sip"
	  organization="{$COMPANY}"
	  job_title=""
	  location=""
	  notes=""
	  account_id="{$SIPADDRESS}"
	  subscribe_to="sip:{$SIPADDRESS}-{$tenantcode}@pbx.somecompany.com"
	  >
            <numbers>
                <number dial="{$PHONE1}" dial_prefix="" label="Phone" primary="2" />
                <number dial="{$SIPADDRESS}" dial_prefix="" label="Extension" primary="1" />
            </numbers>
	  <emails>
                <email address="{$EMAIL}" label="e-mail" primary="1" />
	  </emails>
	  <actions>
		<action id="pickupcall" dial="{$SIPADDRESS}" dial_prefix="**" label="Pickup" name="Pickup" />
		<action id="primary" dial="{$SIPADDRESS}" dial_prefix="" label="{$NAME}" name="{$NAME}" />
		<action id="itcm" dial="{$SIPADDRESS}" dial_prefix="*80" label="Intercom" name="Intercom" />
	  </actions>
	</contact>
     {/item_loop}
   </contacts>
</phonebooks>