[asterisk-users] Distributed Device Status with XMPP PubSub

Andrew McRory andrew.mcrory at sayso.net
Thu Jul 19 14:09:23 CDT 2012


Hi all,

I'm having trouble with the subject. I've setup the Tigase server, 
registered clients and I'm seeing PubSub messages on both test servers. 
Phones connected to the server with the resource I'd like to watch, 
DAHDI/1, are seeing the proper states but phones on the remote systems 
are seeing the device as State:Unavailable until a call is made. Then it 
switches to State:InUse as expected.

I have been struggling to get this stuff to work for a few days. The 
only way I was able to get hints to show on the remote server was to add 
the same hint as is configured on the resource server:

     [ext-local-custom]
     exten => DAHDI1,hint,DAHDI/1

This may be part of the problem, as the documentation is not clear. All 
I know is I've not been successful in getting hints to propagate without 
adding hints locally.

I do see messages coming from the XMPP server:

JABBER: from-internal-custom INCOMING: <message 
from="pubsub.asterisk.my.tld" to="server1 at asterisk.my.tld" 
id="652"><event xmlns="http://jabber.org/protocol/pubsub#event"><items 
node="device_state"><item id="DAHDI/1"><state 
xmlns="http://asterisk.org" 
eid="00:30:48:83:e0:7e">INUSE</state></item></items></event></message>

JABBER: from-internal-custom INCOMING: <message 
from="pubsub.asterisk.my.tld" to="server1 at asterisk.my.tld" 
id="654"><event xmlns="http://jabber.org/protocol/pubsub#event"><items 
node="device_state"><item id="SIP/200"><state 
xmlns="http://asterisk.org" 
eid="00:30:48:83:e0:7e">INUSE</state></item></items></event></message>

JABBER: from-internal-custom INCOMING: <message 
from="pubsub.asterisk.my.tld" to="server1 at asterisk.my.tld" 
id="656"><event xmlns="http://jabber.org/protocol/pubsub#event"><items 
node="device_state"><item id="DAHDI/1"><state 
xmlns="http://asterisk.org" 
eid="00:30:48:83:e0:7e">UNKNOWN</state></item></items></event></message>

JABBER: from-internal-custom INCOMING: <message 
from="pubsub.asterisk.my.tld" to="server1 at asterisk.my.tld" 
id="658"><event xmlns="http://jabber.org/protocol/pubsub#event"><items 
node="device_state"><item id="SIP/200"><state 
xmlns="http://asterisk.org" 
eid="00:30:48:83:e0:7e">NOT_INUSE</state></item></items></event></message>

JABBER: from-internal-custom INCOMING: <message 
from="pubsub.asterisk.my.tld" to="server1 at asterisk.my.tld" 
id="660"><event xmlns="http://jabber.org/protocol/pubsub#event"><items 
node="device_state"><item id="SIP/200"><state 
xmlns="http://asterisk.org" 
eid="00:30:48:83:e0:7e">NOT_INUSE</state></item></items></event></message>

Should the hints be showing up on all server WITHOUT adding a hint to 
the dialplan locally? Or is there a way to set the default hint status 
on remote servers to State:Idle?

I need to fix this as having some phones set to State:Unavailable will 
be confusing to the users.

What am I missing?

Thanks,

Andrew McRory
Sayso Communications, Inc.
2850 Industrial Plaza
Tallahassee, Florida 32301
Office) 850-224-5737
Mobile) 850-778-3206



More information about the asterisk-users mailing list