Hello,
I included in res_digium_phone_devices.conf the following 3 lines:
contact=contacts-internal.xml
blf_items=myBlfFile.xml
blf_contact_group=PBX Directory
My Digium D50 manages to pull the directory and display correctly all the contacts.(I have a script running a PHP module to update regularly the phone directory)
Now I would like to have phone keys (side) atributed to some of the contacts. Say contact_id: 189 which is:
<contact
id="189"
first_name="Noemie"
last_name="Arrivale"
contact_type="sip"
organization="foobar"
job_title="Manager"
>
<actions>
<action id="primary" dial="03457XXXX" dial_prefix="" label="" name="Direct" />
</actions>
</contact>
So I created my myBlfFile.xml which I posted in the same directory as the contacts file.
<config>
<smart_blf>
<blf_items>
<blf_item location="side" index="0" paging="1" contact_id="189">
<behaviors>
<behavior phone_state="idle" target_status="on_the_phone" press_action="call_vm" press_function="dial" />
<behavior phone_state="idle" target_status="idle" press_action="regular_dial" press_function="dial" />
</behaviors>
<indicators>
<indicator target_status="idle" ring="0" ringtone_id="Digium" led_color="green" led_state="on" line_label_fgcolor="#BDBDBD" line_label_bgcolor="#212121" />
<indicator target_status="ringing" ring="1" ringtone_id="Techno" led_color="red" led_state="fast" line_label_fgcolor="#FFFFFF" line_label_bgcolor="#308030" />
</indicators>
</blf_item>
</blf_items>
</smart_blf>
I simply copied pasted the example found on the wiki, changing the id with the correct one.
Now, when I press the side key, a number is dialed, but not the right number… the phone pulls the 1st contact listed in my phone directory (id = 1) and not id = 189.
Anybody to help me understand what is wrong here ?
Thanks