<config>
  <smart_blf>
    <blf_items>
      {foreach $keys["line"] as $row}
      <blf_item location="side" index="{$row.device_key_id-1}" paging="1" contact_id="sd-{$row.device_key_id}">
        <behaviors>
          <behavior phone_state="idle" press_action="primary" press_function="dial" />
          <behavior phone_state="connected" press_action="primary" press_function="transfer" />
        </behaviors>
        <indicators>
          <indicator target_status="all" led_color="green" led_state="on" />
          <indicator target_status="ringing" led_color="red" led_state="fast" />
          <indicator target_status="on_the_phone" led_color="red" led_state="on" />
          <indicator target_status="hold" led_color="red" led_state="slow" />
        </indicators>
      </blf_item>
      {/foreach}
    </blf_items>
  </smart_blf>
</config>
