Contacts with smart BLF

How can I make contacts and smart BLF for an application.
Here’s what I did.

configuration file:
<smart_blf>
<blf_items>
<blf_item location=“main” index=“3” paging=“0” app_id=“Annuaire”/>
</blf_items>
</smart_blf>

contact file:













When i add conf for smart blf in file configuration , buttons contacts does not work and if i remove smart blf it work egain.

Do you have an idea to solve this problem.

The phone’s configuration file doesn’t have the smart blf items definition in-line. It pulls in an XML file containing all of the smart blf items definitions.

e.g.

<?xml version="1.0">
<config>
...other things like your phone settings and your account, etc.
...
    <smart_blf>
        <blf_items url="http://server.example.com/myblfitems.xml" />
    </smart_blf>
...
</config>

It does not work, I did it to.

File configuration:

<contacts url="http://172.16.22.10:8667/Digium/000fd3069208-contacts.xml" id="internal" />
<smart_blf>
    <blf_items url="http://172.16.22.10:8667/Digium/myblfitems.xml" />
</smart_blf>

File for contacts:

    <contact first_name="User Test1" last_name="" subscribe_to="sip:112@172.16.22.10" >
        <numbers>
            <number dial="112" label="Extension" primary="1" />
        </numbers>
    </contact>
    <contact first_name="User Test2" last_name="" subscribe_to="sip:116@172.16.22.10" >
        <numbers>
            <number dial="116" label="Extension" primary="1" />
        </numbers>
    </contact>
 </contacts>

myblfitems.xml

<smart_blf>
<blf_items>
<blf_item location=“main” index=“3” paging=“1” app_id=“Annuaire”>
</blf_items>
</smart_blf>

If I did this configuration, it show me only speed button for Usert Test1 and Usert Test2. But speed button for Annuaire it dont show.
Do you have other idea.

Your BLF items file only specifies an entry for an app called Annuaire. Are you loading a custom application onto your phone called Annuaire?

Yes it is application for OpenLdap it work well, I call it Annuaire. My castomer want to have speed buttons contact defined in asterisk and one button to call application Annuaire.

Exemple speeds button in my D50:

UserTest 1 -> it call directly because it is contact in asterisk
UserTest 2 -> it call directly because it is contact in asterisk
Annuaire -> it call application Annuaire

My application Annuaire show me all contacts in database of OpenLdap.

Separately it work well, but when i want to define button Annuaire, it show me gest Annuaire and contacts UserTest1 and UserTest2 are not hear.

ah, okay. Right, if you’re using the BLF Items sheet, you can’t mix and match that with the older contacts definitions.

In the absence of BLF Items, the phone will draw out the contacts automatically.

But, if you’re defining BLF Items at all, you’ll have to define each and every item you want, including those other two contacts.

Cheers

So good, how I can realize all this, can you set an example, because I have used all varinty that I know and do not know.

Thank you.

Howdy,

The examples that I wrote are all here:
wiki.asterisk.org/wiki/display/DIGIUM/Smart+BLF

Cheers