[SOLVED] BLF config challenges

Good day,

I am struggling to get BLF working on Asterisk 13.13.1 The contacts.xml file loads properly. We are using D60 and D65 Digium phones. When you press the contacts key, you see the contacts that have been setup and the status on each line works properly. For example, if extension 8900 is ringing and you have pressed the contacts button on extension 8901, you see that 8900 is ringing. I am adding snippets of the conf files and hopefully that will give you enough to assist. If not, please let me know what else yo need. It SEEMs I am missing something pretty basic here. So my apologies in advance for overlooking something simple and also thanks in advance for the help. I did read through the wiki, but as this is my first attempt at this, I am just missing a simple thing along the way. Again, thanks for the help.

sip.conf
mus-sip
context=mus
type=friend
host=dynamic
disallow=all
allow=ulaw
dtmfmode=auto
;qualify=yes
callevents=yes
accept_outofcall_messages=yes
auth_messages_request=no
outofcall_message_context=dpma_message_context
allowsubscribe=yes
callcounter=yes
notifyringing=yes
notifyhold=yes
callevents=yes
limitonpeer=yes

MilConf1
secret=Rt8Uf3BnDp

MilConf2
secret=Bb85Tgf8Ja

MilConf3
secret=CmK7Hd2RqH

MilConf4
secret=LnM87H5Rdw

MilConf5
secret=C8Jg5R4Tss

DebraLevrets
;secret = Ui7GfDc6Wq
callerid = 8901
mailbox = 8901@vm-mus,8950@vm-musshared
subscribecontext=BLF
busylevel=1

SharonPillion
;secret = xaY55Rad
callerid = 8900
mailbox = 8900@vm-mus,8950@vm-musshared
subscribecontext=BLF
busylevel=1

extensions.conf
[BLF]
exten => 8900,hint,SIP/SharonPillion
exten => 8901,hint,SIP/DeboraLevrets
exten => 8927,hint,SIP/SusanMcWright
exten => 8980,hint,SIP/SterlingSkidgel

;[BLF_Monitor_Receptionists]
;exten => _**89XX,1,Pickup(${EXTEN:2})
;exten => _**89XX,2,Hangup

[musspecial]

exten => 0,1,Queue(receptionist)
exten => *,1,Directory(vm-mus,mus,fe)
exten => #,1,Goto(mainmenu,s,1)
;exten => _8XXXXXX.,1,Dial(H323/${EXTEN@AVAYA))

[musshared]
exten => 8950,1,VoiceMailMain(8950@vm-musshared)
exten => 8951,1,VoiceMailMain(8951@vm-musshared)
exten => 8952,1,VoiceMailMain(8952@vm-musshared)
exten => 8953,1,VoiceMailMain(8953@vm-musshared)
exten => 8954,1,VoiceMailMain(8954@vm-musshared)
exten => 8955,1,VoiceMailMain(8955@vm-musshared)

[mus]
include => musfunctions
include => musspecial
include => musshared
;include => mus-queues-loginout
; This throws an error during reboot, but may be a bad config line somewhere else. So leaving it for now commented out.
include => BLF
;include => BLF_Monitor_Receptionists
exten => _NXXNXXXXXX,1,Set(CALLERID(all)=“Milsoft”<3256951946>
same=> n,Dial(SIP/twilio0/+1${EXTEN})

;Conference Lines
exten => MilConf1, hint, SIP/MilConf1
exten => 8761,1,Dial(SIP/MilConf1,20)

exten => MilConf2, hint, SIP/MilConf2
exten => 8762,1,Dial(SIP/MilConf2,20)

exten => MilConf3, hint, SIP/MilConf3
exten => 8763,1,Dial(SIP/MilConf3,20)

exten => MilConf4, hint, SIP/MilConf4
exten => 8764,1,Dial(SIP/MilConf4,20)

exten => MilConf5, hint, SIP/MilConf5
exten => 8765,1,Dial(SIP/MilConf5,20)

exten => DebraLevrets,hint,SIP/DebraLevrets
exten => 8901,1,Dial(SIP/DebraLevrets,20)
same => n,VoiceMail(8901@vm-mus,u)
exten => 89019,1,VoiceMailMain(8901@vm-mus)

exten => SharonPillion,hint,SIP/SharonPillion
exten => 8900,1,Dial(SIP/SharonPillion,20)
same => n,VoiceMail(8900@vm-mus,u)
exten => 89009,1,VoiceMailMain(8900@vm-mus)

res_digium_phone.conf
[general]
server_uuid=Milasterisk4400
mdns_address=192.168.xxx.xxx
mdns_port=5060
mdns_transport=udp
service_name=Milsoft Digium Phones Config Server
service_discovery_enabled=yes
config_auth=mac
file_url_prefix=http://192.168.xxx.xxx/var/lib/asterisk/digium_phones

[network1]
type=network
alias=MilsoftAterisk
cidr=192.168.xxx.x/22
registration_address=192.168.xxx.xxx
registration_port=5060
transport=udp
public_firmware_url_prefix=http://dphone.dl.digium.com/firmware/asterisk/2_2_1_2
ntp_server=0.digium.pool.ntp.org
udp_ka_interval=60

[DebraLevrets]
type=phone
network=network1
contact=Milsoftcontacts.xml
mac=000FD30ACC31
firmware=firmware-D65_2_2
parking_exten=800
parking_transfer_type=blind
show_call_parking=yes
ringtone=fancytone
active_ringtone=GuitarStrum
alert=alert-fancytone
multicastpage=everyone
record_own_calls=yes
ehs=plantronics
can_forward_calls=yes
show_call_log=yes
display_mc_notification=no
active_locale=en_US
brightness=5
contrast=5
dim_backlight=yes
backlight_timeout=30
backlight_dim_level=2
ringer_volume=5
speaker_volume=5
handset_volume=5
headset_volume=5
reset_call_volume=no
call_waiting_tone=yes
headset_answer=no
lan_port_mode=auto
pc_port_mode=auto
enable_check_sync=yes
timezone=America/Chicago
lock_preferences=yes
line=DebraLevrets
full_name=Debra Levrets
blf_unused_keys=yes
blf_items=blfreceptionist.xml
blf_contact_group=Milsoft Receptionists
;contacts_display_rules=displayrules.xml
;web_ui_enabled=yes
wallpaper_file=PhoneBackground.png
small_clock=yes

Milsoftcontacts.xml

 <?xml version="1.0" encoding="UTF-8"?>
 <phonebooks>
     <contacts group_name="Milsoft Receptionists" editable="0" id="101">
         <contact
             server_uuid="Milasterisk4400"
             id="8901"
             prefix="Ms"
             first_name="Debra"
             second_name=""
             last_name="Levrets"
            contact_type="sip"
            organization="Milsoft"
            job_title="Receptionist"
            location="Abilene Texas"
        account_id="8901"
            subscribe_to="auto_hint_DebraLevrets"
         >
             <emails>
                 <email address="debra.levrets@milsoft.com" label="Work" primary="1" />
            </emails>
             <actions>
                <action id="primary" dial="8901" dial_prefix="" label="Extension" name="Office" />
                <action id="personisbusy" dial="personbusyapp" label="On the Phone" name="Busy Person App"/>
                   <headers>
                       <header key="X-Digium-Call-Feature" value="feature_send_to_vm" />
                       <header key="Diversion" value="&lt;sip:%_ACCOUNT_USERNAME_%@%_ACCOUNT_SERVER_%:%_ACCOUNT_PORT_%&gt;;reason=&quot;send_to_vm&quot;" />
                   </headers>
             </actions>
         </contact>
        <contact
           server_uuid="Milasterisk4400"
           id="8900"
           prefix="Ms"
           first_name="Sharon"
           second_name=""
           last_name="Pillion"
           contact_type="sip"
           organization="Milsoft"
           job_title="Receptionist"
           location="Abilene Texas"
           account_id="8900"
       subscribe_to="auto_hint_SharonPillion">  
           <emails>
              <email address="sharon.pillion@milsoft.com" label="Work" primary="1" />
           </emails>
          <actions>
              <action id="primary" dial="8900" dial_prefix="" label="Extension" name="Office" />
              <action id="personisbusy" dial="personbusyapp" label="On the Phone" name="Busy Person App"/>
                  <headers>
                      <header key="X-Digium-Call-Feature" value="feature_send_to_vm" />
                      <header key="Diversion" value="&lt;sip:%_ACCOUNT_USERNAME_%@%_ACCOUNT_SERVER_%:%_ACCOUNT_PORT_%&gt;;reason=&quot;send_to_vm&quot;" />
                   </headers>
            </actions>
        </contact>
     </contacts>
   <contacts group_name="EA Support" editable="0" id="102">
  </contacts>
   <contacts group_name="Family Members" editable="1" id="anythingyouwant">
</contacts>

blfreceptionist.xml

 <?xml version="1.0"?>
  <config>
    <smart_blf>
       <blf_items>
           <blf_item location="main" index="2" paging="1" contact_id="8980">
               <behaviors>
		<behavior phone_state="idle" target_status="idle" press_action="regular_dial" press_function="dial" />
		<behavior phone_state="incoming" target_status="ringing" press_action="answer" />
		<behavior phone_state="connected" target_status="on_the_phone" /> 
	<indicators>
                <indicator target_status="idle" ring="0" ringtone_id="Digium" led_color="amber" led_state="off" />
                 <indicator target_status="incoming" ring="0" ringtone_id="Techno" led_color="amber" led_state="slow" />
	    <indicator target_status="connected" ring="0" ringtone_id="Digium" led_color="amber" led_state="on" />
            </indicators>
        </blf_item>
    </blf_items>
  </smart_blf>
</config>

Here is the blfreceptionsist.xmI file. I will figure out why it did not show in the original post.

<?xml version="1.0"?> </smart_bl

It still doesn’t show because you haven’t marked it as unformatted text, so the stuff in<> is treated as markup.

Yep. Fixing it this morning. My apologies

Should be much better now. My apologies for not looking at formatting closer before posting.

Your BLF Items file references contact with an ID of 8980. Your contacts file has contacts w/ IDs of 8900 and 8901.

8980 is a valid contact ID. I have also tried 8900 and 8901, which is in the contacts xml file I included in the post. There is no difference in behavior. None of them work.

What else I have noticed is the following.

  1. On the D70, the side list of buttons has the contact group “receptionist” on it. It lists the 4 members of receptionist, from the Milsoftcontacts.xml file on top 4 buttons.

  2. On the D65, none of the receptionist group is visible on the remaining BLF keys.

  3. On all phones, when you press the contacts key, you see all four receptionists. When I place a call to say 8900, and have pressed the contacts key on the 8901 phone, it shows that 8900 is ringing, available, or on the phone. I would like to extend this out to the BLF keys. This tells me, and correct me if I am wrong, that the Milsoftcontacts.xml file is working as it is presently setup.

I have checked the httpd log files to make sure we were not getting any errors sending the xml file to the phone.

Thank you for responding. I am sure with help from the blog and as we keep putting things together, it will work.

Best regards

Howdy,

Let’s see what we can piece together.

Your general section of res_digium_phones.conf has file_url_prefix in it. That’s a network option. You should remove it from the general section and put it in the network. There’s some old legacy code in there that attempts to create networks based on the DPMA 1.0 config. Network options in the wrong place and result in strange things.

Let’s say I’ve got a contact, e.g.:

101.contacts.xml

<?xml version="1.0" ?>
<phonebooks>
<contacts group_name="Directory" editable="0" id="0">
    <contact id="102" first_name="William" last_name="Wallace" contact_type="sip" account_id="102" subscribe_to="auto_hint_102">
        <actions>
            <action id="primary" dial="102" name="Office" label="Office"/>
        </actions>
</contact>

Here, we’ll want to remember our group_name, because it’ll come in handy for later. We’ll also want to make sure we have a contact ID set, and that we remember it for later, along with an account_id and our subscribe_to URI. In this case, because I’m using DPMA, you want to use auto_hint_peer; DPMA will automatically create hints on your behalf, and these are special hints that’ll handle device state and user presence. If you don’t want user presence, you can use regular hints, e.g. “102,” but you’ll want to make sure to noload the res_pjsip_pidf_digium_body_supplement.so module in Asterisk, otherwise you’ll get a funny question mark icon on the line label for the entry when we add it in a bit.

To drop it on the second key on my D65, I’ll want a BLF items file, something like:

101.blf.items.xml

<config>
    <smart_blf>
        <blf_items>
            <blf_item location="main" index="1" contact_id="102" />
    </blf_items>
</smart_blf>
</config>

The important bit being that my contact_id 102 matches the id of the contact that I created in my contacts file and that I place it in the “main” location (D65 only has a main screen) and that the index begins at 1. It technically begins at zero, but the D65 assigns the line to the first slot (0), so you’ve got 1 to put it on the second key on the phone.

Now, back in my phone config, I need to first understand that the phone’s going to cURL in each of these files. The URL that the cURL’s going to be based on is dependent on the file_url_prefix and whatever we put in the contact and blf_items type=phone options. So, we’ll need our network and our phone.

[all-networks]
type=network
alias=All Networks
cidr=0.0.0.0/0
registration_address=10.1.2.3
registration_port=5060
file_url_prefix=http://10.1.2.3/digium_phones

[101]
type=phone
...
contact=101.contacts.xml
blf_items=101.blf.items.xml
blf_contact_group=Directory
...

Thus, the phone’s going to cURL in http://10.1.2.3/digium_phones/101.contacts.xml for its Contaacts file and http://10.1.2.3/digium_phones/101.blf.items.xml for its BLF Items file and the phone will actually perform SUBSCRIBEs to anything in the contacts file w/ a group_name of “Directory” up to its contacts_max_subscriptions setting (defaults to 40, iirc).

You could be running into trouble because you’ve got a spurious network defined due to that misplaced option. You can check for networks that you don’t think should be there by doing a “digium_phones show networks” from the Asterisk CLI. If you see something that you didn’t explicitly create, it was created implicitly because of an old option and you should check your config and make it go away.

Hi malcomd,

Thank you for your response and assistance in this matter. I read through your post and went back through my config files today. Here is were things stand. Whereas things are still not working, some real progress forward was made and it seems very close to functioning.

  1. The file Milsoftcontacts.xml has 4 entries. It is the 4 receptionists we have in our two offices at Milsoft. Presently, 3 phones are D65’s and 1 is a D70. The contact named Sterling Skidgel is the D70. On all 4 phones, Milsoftcontacts.xml seems to load correctly. When I press the contacts key on all 4 phones, they each respectively, display all 4 contacts and their status. For example, if I call 8900 (Sharon Pillion), when I press the contact key on Sterling Skidgels D70, I see that Sharon Pillion’s phone is ringing. This scenario holds true for all 4 phones. So far so good. The one thing I observe is this. The D70 side car shows all 4 receptionists and their extensions. When I call an extension for any of the receptionists, the light that corresponds to the receptionists has a green flashing light, and once it is answered, it turns solid green. When I press on one of the solid green lights, once the call is answered, the D70 starts to reboot. I believe the reason is simple, I have not programmed any actions for the key on the D70 sidecar. So the phone is now confused by my key press, and goes to reboot. None of the D65’s show any of the other extensions in the Milsoftcontacts.xml list on any of the BLF keys.

  2. I made the changes to the general and network sections of res_digium_phones.conf. You are correct, it was making finding files a bit wonky. Once I moved it, the firmware upgrades started working. So even though we are not quite there on the BLF functionality, it was affecting other file downloads to the phones. Thank you.

  3. I made sure that res_pjsip_pidf_digium_body_supplement.so is not loading.

  4. I issued a digium_phones show networks command at the Asterisk CLI. Results are below. There is only one network.

voip-abi*CLI> digium_phones show networks
— Networks —
network1
---- 1 Networks found ----
5. Below are the current configs as they sit right now.

SIP.CONF

[general]
bindaddr=192.168.xxx.xxx
bindport=5060
udpenable=yes
tcpenable=yes
preferred_codec_only=yes
disallow=all
allow=ulaw
sipdebug=yes
accept_outofcall_messages=yes
auth_messages_request=no
outofcall_message_context=dpma_message_context
callcounter=yes

;===================
;Twilio Trunk =
;===================
twilio-trunk
type=peer
context=from-twilio
dtmfmode=auto
canreinvite=no
localnet=192.168.xxx.xxx/22
externaddr=xxx.xxx.xxx.xxx
insecure=port,invite

twilio0
host=miltwilio.pstn.twilio.com
domain=miltwilio.pstn.twilio.com
remotesecret=*****
defaultuser=sierramike

twilio1
host=54.172.60.2
twilio2
host=54.172.60.0
twilio3
host=54.172.60.1
twilio4
host=54.172.60.3

mus-sip
context=mus
type=friend
host=dynamic
disallow=all
allow=ulaw
dtmfmode=auto
;qualify=yes
callevents=yes
accept_outofcall_messages=yes
auth_messages_request=no
outofcall_message_context=dpma_message_context
allowsubscribe=yes
callcounter=yes
notifyringing=yes
notifyhold=yes
callevents=yes
limitonpeer=yes

MilConf1
secret=*****

MilConf2
secret=*****

MilConf3
secret=*****

MilConf4
secret=*****

MilConf5
secret=*****

DebraLevrets
;secret =*****
callerid = 8901
mailbox = 8901@vm-mus,8950@vm-musshared
;subscribecontext=BLF
busylevel=1

SharonPillion
;secret = *****
callerid = 8900
mailbox = 8900@vm-mus,8950@vm-musshared
;subscribecontext=BLF
busylevel=1

SusanMcWright
;secret = *****
callerid = 8927
mailbox = 8927@vm-mus,8950@vm-musshared
;subscribecontext=BLF
busylevel=1

EXTENSIONS.CONF

[from-twilio]
;exten => s,1,Goto(mainmenu,s,1)
;exten => s,1,Set(CallerIDString=${CALLERID(all)})
exten => +13256033479,1,Goto(mainmenu,s,1)
exten => +13256033651,1,Dial(SIP/StanMcHann,20)
exten => +13254552086,1,Dial(SIP/JeffreyCarr,20)
;exten => 3253071140,1,Goto(mainmenu,s,1)

;[from-avaya]
;exten => 7750,1,Dial(SIP/7750,20)
;exten => s,1,Goto(mainmenu,s,1)
;exten => s,1,Set(CallerIDString=${CALLERID(all)})
;exten => 3254551179,1,Goto(mainmenu,s,1)
;exten => 3254558195,1,Goto(mainmenu,s,1)
;exten => 3254558196,1,Dial(SIP/StanMcHann,20)
;exten => 3254558192,1,Goto(mainmenu,s,1)
;exten => 3253071140,1,Goto(mainmenu,s,1)

;calendar_event_notify]
;exten => s,1,Answer
; same => n,Playback(you-have-a-meeting-at)
; same => n,SayUnixTime(${CALENDAR_EVENT(start)})
; same => n,Hangup

;[BLF]
;exten => 8900,hint,SIP/SharonPillion
;exten => 8901,hint,SIP/DeboraLevrets
;exten => 8927,hint,SIP/SusanMcWright
;exten => 8980,hint,SIP/SterlingSkidgel

;[BLF_Monitor_Receptionists]
;exten => _**89XX,1,Pickup(${EXTEN:2})
;exten => _**89XX,2,Hangup

[musspecial]

exten => 0,1,Queue(receptionist)
exten => *,1,Directory(vm-mus,mus,fe)
exten => #,1,Goto(mainmenu,s,1)
;exten => _8XXXXXX.,1,Dial(H323/${EXTEN@AVAYA))

[musshared]
exten => 8950,1,VoiceMailMain(8950@vm-musshared)
exten => 8951,1,VoiceMailMain(8951@vm-musshared)
exten => 8952,1,VoiceMailMain(8952@vm-musshared)
exten => 8953,1,VoiceMailMain(8953@vm-musshared)
exten => 8954,1,VoiceMailMain(8954@vm-musshared)
exten => 8955,1,VoiceMailMain(8955@vm-musshared)

[mus]
include => musfunctions
include => musspecial
include => musshared
;include => mus-queues-loginout
; This throws an error during reboot, but may be a bad config line somewhere else. So leaving it for now commented out.
include => BLF
;include => BLF_Monitor_Receptionists
exten => _NXXNXXXXXX,1,Set(CALLERID(all)=“Milsoft”<3256951946>
same=> n,Dial(SIP/twilio0/+1${EXTEN})

;Conference Lines
exten => MilConf1, hint, SIP/MilConf1
exten => 8761,1,Dial(SIP/MilConf1,20)

exten => MilConf2, hint, SIP/MilConf2
exten => 8762,1,Dial(SIP/MilConf2,20)

exten => MilConf3, hint, SIP/MilConf3
exten => 8763,1,Dial(SIP/MilConf3,20)

exten => MilConf4, hint, SIP/MilConf4
exten => 8764,1,Dial(SIP/MilConf4,20)

exten => MilConf5, hint, SIP/MilConf5
exten => 8765,1,Dial(SIP/MilConf5,20)

exten => DebraLevrets,hint,SIP/DebraLevrets
exten => 8901,1,Dial(SIP/DebraLevrets,20)
same => n,VoiceMail(8901@vm-mus,u)
exten => 89019,1,VoiceMailMain(8901@vm-mus)

exten => SharonPillion,hint,SIP/SharonPillion
exten => 8900,1,Dial(SIP/SharonPillion,20)
same => n,VoiceMail(8900@vm-mus,u)
exten => 89009,1,VoiceMailMain(8900@vm-mus)

exten => SusanMcWright,hint,SIP/SusanMcWright
exten => 8927,1,Dial(SIP/SusanMcWright,20)
same => n,VoiceMail(8927@vm-mus,u)
exten => 89279,1,VoiceMailMain(8927@vm-mus)

RES_DIGIUM_PHONES.CONF

[general]
server_uuid=Milasterisk4400
mdns_address=192.168.109.101
mdns_port=5060
mdns_transport=udp
service_name=Milsoft Digium Phones Config Server
service_discovery_enabled=yes
config_auth=mac
file_url_prefix=http://192.168.109.101/var/lib/asterisk/digium_phones

[network1]
type=network
alias=MilsoftAterisk
cidr=192.168.xxx.x/22
registration_address=192.168.xxx.xxx
registration_port=5060
transport=udp
public_firmware_url_prefix=http://dphone.dl.digium.com/firmware/asterisk/
ntp_server=0.digium.pool.ntp.org
udp_ka_interval=60

[DebraLevrets]
type=phone
network=network1
contact=Milsoftcontacts.xml
mac=****
parking_exten=800
parking_transfer_type=blind
show_call_parking=yes
ringtone=fancytone
active_ringtone=GuitarStrum
alert=alert-fancytone
multicastpage=everyone
record_own_calls=yes
ehs=plantronics
can_forward_calls=yes
show_call_log=yes
display_mc_notification=no
active_locale=en_US
brightness=5
contrast=5
dim_backlight=yes
backlight_timeout=30
backlight_dim_level=2
ringer_volume=5
speaker_volume=5
handset_volume=5
headset_volume=5
reset_call_volume=no
call_waiting_tone=yes
headset_answer=no
lan_port_mode=auto
pc_port_mode=auto
enable_check_sync=yes
timezone=America/Chicago
lock_preferences=no
line=DebraLevrets
full_name=Debra Levrets
blf_unused_keys=yes
blf_items=8901.blf.items.xml
;contacts_display_rules=
;web_ui_enabled=yes
;wallpaper_file=PhoneBackground.png
;small_clock=yes

 <?xml version="1.0"?>
  <config>
    <smart_blf>
       <blf_items>
           <blf_item location="main" index="1" contact_id="8900"/>
       </blf_items>
    </smart_blf>
 </config>

indent preformatted text by 4 spaces
?xml version="1.0" encoding="UTF-8"?>
<phonebooks>
   <contacts group_name="Milsoft Receptionists" editable="0" id="0">
    <contact
        server_uuid="Milasterisk4400"
        id="8901"
        prefix="Ms"
        first_name="Debra"
        second_name=""
        last_name="Levrets"
        contact_type="sip"
        organization="Milsoft"
        job_title="Receptionist"
        location="Abilene Texas"
        account_id="8901"
        subscribe_to="auto_hint_DebraLevrets"
        >
        <emails>
            <email address="*****" label="Work" primary="1" />
        </emails>
        <actions>
            <action id="primary" dial="8901" label="Extension" name="Office"/>
        </actions>
    </contact>
    <contact
        server_uuid="Milasterisk4400"
        id="8900"
        prefix="Ms"
        first_name="Sharon"
        second_name=""
        last_name="Pillion"
        contact_type="sip"
        organization="Milsoft"
        job_title="Receptionist"
        location="Abilene Texas"
        account_id="8900"
        subscribe_to="auto_hint_SharonPillion"
        >
        <emails>
            <email address="*****" label="Work" primary="1" />
        </emails>
        <actions>
            <action id="primary" dial="8900" label="Extension" name="Office" />
        </actions>
    </contact>
    <contact
        server_uuid="Milasterisk4400"
        id="8927"
        prefix="Ms"
        first_name="Susan"
        second_name=""
        last_name="McWright"
        contact_type="sip"
        organization="Milsoft"
        job_title="Receptionist"
        location="Abilene Texas"
        subscribe_to="auto_hint_SusanMcWright"
        >
        <emails>
            <email address="*****" label="Work" primary="1" />
        </emails>
        <actions>
            <action id="primary" dial="8927" label="Extension" name="Office" />
        </actions>
    </contact>
   <contact
        server_uuid="Milasterisk4400"
        id="8980"
        prefix="Ms"
        first_name="Sterling"
        second_name=""
        last_name="Skidgel"
        contact_type="sip"
        organization="Milsoft"
        job_title="Receptionist"
        location="Pensacola Florida"
        subscribe_to="auto_hint_SterlingSkidgel"
            >
        <emails>
            <email address="*****" label="Work" primary="1"/>
        </emails>
        <actions>
            <action id="primary" dial="8980" label="Office" name="Office"/>
        </actions>
    </contact>
   </contacts>
   <contacts group_name="EA Support" editable="0" id="102">
  </contacts>
  <contacts group_name="Family Members" editable="1" id="anythingyouwant">
  </contacts>
 </phonebooks>

That’s good. Extra networks can cause havoc.

So you don’t want to use the presence/status capabilities of the phones? If you do, you’ll need that module and you’ll need to reference subscribes like “auto_hint_101” rather than “101”. DPMA will make the auto_hint_xyz hints for you.

Cool. It’s easy to get things wrong. That’s why starting simple, with something that works, and building up to something that’s more complex, leads to greater happiness.

You had what looked like some passwords in there…I deleted them.

Send me a private message (don’t post it publicly), with a debug capture from your phone. You can get that using http://[ip of phone]/cgi-bin/ptsr

Also, I’ll plug Digium’s Support department (www.digium.com/support) as the best resource for getting assistance with Digium’s commercial products, as opposed to schlubs like me, on the community forums.

1 Like
<?xml version="1.0"?>
  <config>
    <smart_blf>
       <blf_items>
           <blf_item location="main" index="1" contact_id="8900"/>
       </blf_items>
    </smart_blf>
 </config>

If that’s your BLF Items file and you have a contact w/ id of 8900, and it’s not getting loaded onto the phone, I’d make sure the phone was actually getting that file. Do you see the phone making the http request for the file?

we are using chan_ip vs. PJSIP. We are using the auto_hint features in DPMA and we are receiving the status of the phone. When you press the contacts button, you see all 4 contacts in the Milsoftcontacts.xml file for Receptionists. The stat of each device is shown and it changes when one of the extensions is called. Do we need this for presence? Does it work with chan_sip? Thanks!

What is the best way to verify? I have checked the httpd log files for errors on downloading these files…Thanks again.

Also, if I load in your above config, where I’m using Apache (I’m not trying to use Asteirsk’s embedded HTTP server) I put 8901.blf.items.xml in /var/www/blfguy (my fun name for you) and I put Milsoftcontacts.xml there as well. Contents below:

8901.blf.items.xml

<config>
    <smart_blf>
        <blf_items>
            <blf_item location="main" index="1" contact_id="8900"/>
        </blf_items>
    </smart_blf>
</config>

Milsoftcontacts.xml

<?xml version="1.0" encoding="UTF-8"?>
    <phonebooks>
        <contacts group_name="Milsoft Receptionists" editable="0" id="0">
            <contact
                server_uuid="Milasterisk4400"
                id="8901"
                prefix="Ms"
                first_name="Debra"
                second_name=""
                last_name="Levrets"
                contact_type="sip"
                organization="Milsoft"
                job_title="Receptionist"
                location="Abilene Texas"
                account_id="8901"
                subscribe_to="auto_hint_DebraLevrets"
            >
            <emails>
                <email address="*****" label="Work" primary="1" />
            </emails>
            <actions>
                <action id="primary" dial="8901" label="Extension" name="Office"/>
            </actions>
        </contact>
        <contact
           server_uuid="Milasterisk4400"
            id="8900"
            prefix="Ms"
            first_name="Sharon"
            second_name=""
            last_name="Pillion"
            contact_type="sip"
            organization="Milsoft"
            job_title="Receptionist"
            location="Abilene Texas"
            account_id="8900"
            subscribe_to="auto_hint_SharonPillion"
            >
            <emails>
                <email address="*****" label="Work" primary="1" />
            </emails>
            <actions>
                <action id="primary" dial="8900" label="Extension" name="Office" />
            </actions>
        </contact>
        <contact
            server_uuid="Milasterisk4400"
            id="8927"
            prefix="Ms"
           first_name="Susan"
            second_name=""
            last_name="McWright"
            contact_type="sip"
            organization="Milsoft"
            job_title="Receptionist"
            location="Abilene Texas"
            subscribe_to="auto_hint_SusanMcWright"
            >
            <emails>
                <email address="*****" label="Work" primary="1" />
            </emails>
            <actions>
                <action id="primary" dial="8927" label="Extension" name="Office" />
            </actions>
        </contact>
        <contact
            server_uuid="Milasterisk4400"
            id="8980"
            prefix="Ms"
            first_name="Sterling"
            second_name=""
            last_name="Skidgel"
            contact_type="sip"
            organization="Milsoft"
            job_title="Receptionist"
            location="Pensacola Florida"
            subscribe_to="auto_hint_SterlingSkidgel"
            >
            <emails>
                <email address="*****" label="Work" primary="1"/>
            </emails>
            <actions>
                <action id="primary" dial="8980" label="Office" name="Office"/>
            </actions>
        </contact>
   </contacts>
  <contacts group_name="EA Support" editable="0" id="102">
  </contacts>
  <contacts group_name="Family Members" editable="1" id="anythingyouwant">
  </contacts>
 <phonebooks>

And where my res_digium_phone.conf reads like:

[general]
server_uuid=Milasterisk4400
mdns_address=10.1.2.3
mdns_port=5060
mdns_transport=udp
service_name=Milsoft Digium Phones Config Server
service_discovery_enabled=yes
config_auth=mac
;file_url_prefix=http://10.27.64.4/blfguy  COMMENT THIS OUT

[network1]
type=network
alias=MilsoftAterisk
cidr=0.0.0.0/0 ; I used zeroes because it's easier for me to test
registration_address=10.1.2.3
registration_port=5060
transport=udp
;public_firmware_url_prefix=http://dphone.dl.digium.com/firmware/asterisk/
file_url_prefix=http://10.1.2.3/blfguy    ; You need this, add it
ntp_server=0.digium.pool.ntp.org
udp_ka_interval=60

[DebraLevrets]
type=phone
network=network1
contact=Milsoftcontacts.xml
mac=0123 ;use your MAC
parking_exten=800
parking_transfer_type=blind
show_call_parking=yes
ringtone=fancytone
active_ringtone=GuitarStrum
alert=alert-fancytone
multicastpage=everyone
record_own_calls=yes
ehs=plantronics
can_forward_calls=yes
show_call_log=yes
display_mc_notification=no
active_locale=en_US
brightness=5
contrast=5
dim_backlight=yes
backlight_timeout=30
backlight_dim_level=2
ringer_volume=5
speaker_volume=5
handset_volume=5
headset_volume=5
reset_call_volume=no
call_waiting_tone=yes
headset_answer=no
lan_port_mode=auto
pc_port_mode=auto
enable_check_sync=yes
timezone=America/Chicago
lock_preferences=no
line=DebraLevrets
full_name=Debra Levrets
blf_unused_keys=yes
blf_items=8901.blf.items.xml
;contacts_display_rules=
;web_ui_enabled=yes
;wallpaper_file=PhoneBackground.png
;small_clock=yes

Then…not counting the sip.conf stuff because it’s not pertinent to making the key show a rapid dial favorite on the phone, I see Sharon Pilion on the second key on my D65.

Do you need what for presence? Presence and device state are different things. Device State is the blinky lights. Presence is the icon associated w/ the user’s status. User presence works with chan_sip. With chan_sip, you shouldn’t have to worry about res_pjsip_pidf_digium_body_supplement.so, but it’s a good idea to no-load it, just in case, if you’re going to use chan_sip instead of chan_pjsip.

The phone doesn’t offer a user a way to inspect the downloaded file. You’ll just have to go by whether or not you see what you’re supposed to, whether or not you saw the download, and if you run into trouble, that’s when you contact the Support (Support - Sangoma Technologies) department.