Need help for BLF status

Need help, I have 2 remote PBX interconnected IAX2 protocol
Asterisk Servers version 11.3.0 installed on the operating system on Debian 7.0.
As the graphic interface is used FreePBX 2.11.
I’m trying to setup DSS option using the instruction
wiki.asterisk.org/wiki/display/ … MPP+PubSub

I have successfully compiled the modules res_jabber.so and res_xmpp.so

As a jabber server I’m using - ejabberd.

Server 1 conf:

[general]
debug=no
autoregister=yes
collection_nodes=yes
pubsub_autocreate=yes

[ats-sar]
type=client
serverhost=ejabberd.mydomain.local
pubsub_node=pubsub.ejabberd.mydomain.local
username=ats-sar@ejabberd.mydomain.local/astvoip1
secret=123
distribute_events=yes
status=available
usetls=no
usesasl=yes
buddy=ats-msk@ejabberd.mydomain.local/astvoip2[/code]


Server 2 conf:

[code][general]
debug=no
autoregister=yes
collection_nodes=yes
pubsub_autocreate=yes

[ats-msk]
type=client
serverhost=ejabberd.mydomain.local
pubsub_node=pubsub.ejabberd.mydomain.local
username=ats-msk@ejabberd.mydomain.local/astvoip2
secret=123
distribute_events=yes
status=available
usetls=no
usesasl=yes
buddy=ats-sar@ejabberd.mydomain.local/astvoip1[/code]

I also checked the connections:

Server 1:
[code]asterisk-users*CLI> jabber show connections 
Jabber Users and their status:
       [ats-sar] ats-sar@ejabberd.sintek.net/astvoip1     - Connected
----
   Number of users: 1

asterisk-users*CLI> jabber show buddies 
Jabber buddy lists
Client: ats-sar@ejabberd.mydomain.local/astvoip1
        Buddy:  ats-sar@ejabberd.mydomain.local
                Resource: astvoip1
                        node: http://www.asterisk.org/xmpp/client/caps
                        version: asterisk-xmpp
                        Jingle capable: yes
                Status: 1
                Priority: 0
        Buddy:  ats-msk@ejabberd.mydomain.local/astvoip2
                Resource: None

Server 2:

ats-msk-sintek*CLI> jabber show connections 
Jabber Users and their status:
       [ats-msk] ats-msk@ejabberd.mydomain.local/astvoip2     - Connected
----
   Number of users: 1
ats-msk-sintek*CLI> jabber show buddies 
Jabber buddy lists
Client: ats-msk@ejabberd.mydomain.local/astvoip2
        Buddy:  ats-msk@ejabberd.mydomain.local
                Resource: astvoip2
                        node: http://www.asterisk.org/xmpp/client/caps
                        version: asterisk-xmpp
                        Jingle capable: yes
                Status: 1
                Priority: 0
        Buddy:  ats-sar@ejabberd.mydomain.local/astvoip1
                Resource: None

After that I could enjoy the messages from jabber server:

Server 1: (6XX numbering)

[code]JABBER: asterisk INCOMING: INUSEdevice_state

JABBER: asterisk INCOMING: INUSEdevice_state

JABBER: asterisk INCOMING: RINGINGdevice_state

JABBER: asterisk INCOMING: RINGINGdevice_state[/code]

Server 2 (3XX numbering):

JABBER: asterisk INCOMING: <message from='pubsub.ejabberd.mydomain.local' to='ats-msk@ejabberd.mydomain.local' type='headline'><event xmlns='http://jabber.org/protocol/pubsub#event'><items node='device_state'><item id='SIP/600'><state xmlns='http://asterisk.org' eid='96:3a:3f:6c:81:3e' cachable='1'>INUSE</state></item></items></event><headers xmlns='http://jabber.org/protocol/shim'><header name='Collection'>device_state</header><header name='SubID'>557FED7A652</header><header name='SubID'>55711A417A1E</header><header name='SubID'>557126D243D</header></headers></message>

JABBER: asterisk INCOMING: <message from='pubsub.ejabberd.mydomain.local' to='ats-msk@ejabberd.mydomain.local' type='headline'><event xmlns='http://jabber.org/protocol/pubsub#event'><items node='device_state'><item id='SIP/600'><state xmlns='http://asterisk.org' eid='96:3a:3f:6c:81:3e' cachable='1'>INUSE</state></item></items></event><headers xmlns='http://jabber.org/protocol/shim'><header name='Collection'>device_state</header><header name='SubID'>557FED7A652</header><header name='SubID'>55711A417A1E</header><header name='SubID'>557126D243D</header></headers></message>

JABBER: asterisk INCOMING: <message from='pubsub.ejabberd.mydomain.local' to='ats-msk@ejabberd.mydomain.local' type='headline'><event xmlns='http://jabber.org/protocol/pubsub#event'><items node='device_state'><item id='SIP/608'><state xmlns='http://asterisk.org' eid='96:3a:3f:6c:81:3e' cachable='1'>RINGING</state></item></items></event><headers xmlns='http://jabber.org/protocol/shim'><header name='Collection'>device_state</header><header name='SubID'>557FED7A652</header><header name='SubID'>55711A417A1E</header><header name='SubID'>557126D243D</header></headers></message>

JABBER: asterisk INCOMING: <message from='pubsub.ejabberd.mydomain.local' to='ats-msk@ejabberd.mydomain.local' type='headline'><event xmlns='http://jabber.org/protocol/pubsub#event'><items node='device_state'><item id='SIP/608'><state xmlns='http://asterisk.org' eid='96:3a:3f:6c:81:3e' cachable='1'>RINGING</state></item></items></event><headers xmlns='http://jabber.org/protocol/shim'><header name='Collection'>device_state</header><header name='SubID'>557FED7A652</header><header name='SubID'>55711A417A1E</header><header name='SubID'>557126D243D</header></headers></message>

JABBER: asterisk INCOMING: <message from='pubsub.ejabberd.mydomain.local' to='ats-msk@ejabberd.mydomain.local' type='headline'><event xmlns='http://jabber.org/protocol/pubsub#event'><items node='device_state'><item id='SIP/600'><state xmlns='http://asterisk.org' eid='96:3a:3f:6c:81:3e' cachable='1'>NOT_INUSE</state></item></items></event><headers xmlns='http://jabber.org/protocol/shim'><header name='Collection'>device_state</header><header name='SubID'>557FED7A652</header><header name='SubID'>55711A417A1E</header><header name='SubID'>557126D243D</header></headers></message>[/code]

ie according to debug I see the exchange of messages.

I then ordered hints to the file
extensions_custom.conf

[code][ext-local-custom]
exten => 607,hint,SIP/607
exten => 608,hint,SIP/608
exten => 605,hint,SIP/605


[devstate_test]

exten => 605,hint,Custom:mystate
exten => 608,hint,Custom:mystate

exten => set_inuse,1,Set(DEVICE_STATE(Custom:mystate)=INUSE)
exten => set_not_inuse,1,Set(DEVICE_STATE(Custom:mystate)=NOT_INUSE)
exten => set_onhold,1,Set(DEVICE_STATE(Custom:mystate)=ONHOLD)
exten => set_ringing,1,Set(DEVICE_STATE(Custom:mystate)=RINGING)

exten => check,1,NoOp(Custom:mystate is ${DEVICE_STATE(Custom:mystate)})

I checked the “Custom:mystate” - works

I unplugged the context - [devstate_test]
I try to look the status of the subscribers of context [ext-local-custom]

[code]ats-msk*CLI> core show hint 608
608@ext-local-custom : SIP/608 State:Unavailable Watchers 0
1 hint matching extension 608

asterisk-users*CLI> core show hint 332
332@ext-local-custom : SIP/332 State:Unavailable Watchers 0
1 hint matching extension 332[/code]

I could not understand where all the problem? Why State is Unavailable?

Question number 2:

I never got to get to light the BLF, on phones that Digium D70
How to register in the address book external accounts that earned BLF?
Module DPMA 1.5.1
Firmware of devices: 1_3_0_2

UP