jonaskellens wrote:For some reason I don't know, it works when the xml blf-configuration file is placed in another directory :
does not work :
my.pub.lic.ip - 101001 [15/Oct/2014:09:20:38 +0200] "GET /mydir/000fd3068c59.cfg HTTP/1.1" 200 2408
my.pub.lic.ip - - [15/Oct/2014:09:20:42 +0200] "GET /mydir/myblfitems.xml HTTP/1.1" 401 493
works :
my.pub.lic.ip - 101001 [15/Oct/2014:09:25:21 +0200] "GET /mydir/000fd3068c59.cfg HTTP/1.1" 200 2402
my.pub.lic.ip - - [15/Oct/2014:09:25:26 +0200] "GET /mydir2/myblfitems.xml HTTP/1.1" 401 493
my.pub.lic.ip - 101001 [15/Oct/2014:09:25:27 +0200] "GET /mydir2/myblfitems.xml HTTP/1.1" 200 880
How funny is that ?
I do not find this to be the case. When I pull a config file from /auth and I reference my blf items file and other files (contacts, appellations, ringtones, firmware, etc.) in /auth2, the request isn't made with the user, e.g.:
- Code: Select all
10.24.72.142 - user [15/Oct/2014:09:19:01 -0500] "GET /auth/0019159bd025.cfg HTTP/1.1" 200 8941 "-" "Digium-D70/1_4_2_0_63880"
10.24.72.142 - - [15/Oct/2014:09:19:09 -0500] "GET /auth2/101-contacts.xml HTTP/1.1" 401 2573 "-" "Digium-D70/1_4_2_0_63880"
10.24.72.142 - - [15/Oct/2014:09:19:19 -0500] "GET /auth2/ringding.sln HTTP/1.1" 401 2573 "-" "Digium-D70/1_4_2_0_63880"
10.24.72.142 - - [15/Oct/2014:09:19:26 -0500] "GET /auth2/astricond70.png HTTP/1.1" 401 2573 "-" "Digium-D70/1_4_2_0_63880"
10.24.72.142 - - [15/Oct/2014:09:19:31 -0500] "GET /auth2/malcolm.zip HTTP/1.1" 401 2572 "-" "Digium-D70/1_4_2_0_63880"
10.24.72.142 - - [15/Oct/2014:09:19:34 -0500] "GET /auth2/101-blf_items.xml HTTP/1.1" 401 2573 "-" "Digium-D70/1_4_2_0_63880"
jonaskellens wrote:Now the next problem : I see no BLF-buttons on my Digium D70.
This is my very simple blf xml-configuration file content :
<?xml version="1.0" ?>
<phonebooks>
<contacts group_name="Directory" editable="0">
<contact id="10" contact_type="sip" account_id="10" subscribe_to="auto_hint_10">
<actions>
<action id="10" dial="10" dial_prefix="" label="Office" name="Office"/>
<action id="pickupcall" dial="10" dial_prefix="**" label="Pickup" name="Pickup"/>
</actions>
</contact>
</contacts>
</phonebooks>
<config>
<smart_blf>
<blf_items>
<blf_item location="side" index="1" paging="1" contact_id="10">
<behaviors>
<behavior press_action="10" press_function="dial" />
<behavior target_status="ringing" press_action="pickupcall" press_function="dial" />
</behaviors>
</blf_item>
</blf_items>
</smart_blf>
</config>
Is there something wrong with it ?
You can't put those in the same file. BLF Items are a separate thing from Contacts. You need one file with contacts, e.g. mycontacts.xml and that needs:
- Code: Select all
<?xml version="1.0" ?>
<phonebooks>
<contacts group_name="Directory" editable="0">
<contact id="10" contact_type="sip" account_id="10" subscribe_to="auto_hint_10">
<actions>
<action id="10" dial="10" dial_prefix="" label="Office" name="Office"/>
<action id="pickupcall" dial="10" dial_prefix="**" label="Pickup" name="Pickup"/>
</actions>
</contact>
</contacts>
</phonebooks>
You need another file with your BLF Items, e.g. myblfitems.xml and that needs:
- Code: Select all
<config>
<smart_blf>
<blf_items>
<blf_item location="side" index="1" paging="1" contact_id="10">
<behaviors>
<behavior press_action="10" press_function="dial" />
<behavior target_status="ringing" press_action="pickupcall" press_function="dial" />
</behaviors>
</blf_item>
</blf_items>
</smart_blf>
</config>
And you'll reference each of those in the main .cfg file for the phone, e.g.:
- Code: Select all
...
<contacts url="http://server.example.com/mycontacts.xml" id="0" />
<smart_blf>
<blf_items url="http://server.example.com/myblfitems.xml" />
</smart_blf>
...
Also, since you're doing XML config, don't subscribe to auto_hint_<peer> as that's for DPMA style operation, not XML operation. You should just subscribe to whatever hints you create in the dialplan. Technically you could create a hint called auto_hint_<peer> but the status app on the phone won't operate with presence when the phone's not talking to DPMA (or Switchvox).