I installed and configured Tigase server for distributing device state between multiple Asterisk servers. The server works fine. It's configuration file is as follows:
--cluster-mode = true
config-type = --gen-config-def
--debug = server,xmpp,net
--user-db = mysql
--admins = admin@localhost
--user-db-uri = jdbc:mysql://localhost/tigasedb?user=root&password=no
--virt-hosts = localhost
--comp-name-3 = message-archive
--comp-class-3 = tigase.archive.MessageArchiveComponent
--comp-class-2 = tigase.socks5.Socks5ProxyComponent
--comp-name-2 = proxy
--comp-class-1 = tigase.muc.MUCComponent
--comp-name-1 = muc
--sm-plugins = +message-archive-xep-0136
#--ssl-container-class=tigase.extras.io.PEMSSLContextContainer
#--ssl-container-class=tigase.io.SSLContextContainer
--comp-name-1=pubsub
--comp-class-1=tigase.pubsub.PubSubComponent
The i installed two asterisk servers on two different systems. I also compiled res_xmpp on both and configured it using the following configuration file:
[general]
debug=yes
autoregister=yes
collection_nodes=yes
pubsub_autocreate=yes
[tigase]
type=client
serverhost=192.168.20.105
username=server1@localhost/voip1
pubsub_node=pubsub.192.168.20.105
secret=123456
priority=25
port=5222
usetls=yes
usesasl=yes
status=available
statusmessage="I am available"
timeout=5
buddy=server2@localhost/voip2
distribute_events=yes
the username for one of my servers is server1@localhost/voip1 and for the other is server2@localhost/voip2. Now the xmpp module works correctly. But pubsub events do not distribute correctly. As you can see i used an IP address to distinguish my Tigase server. If i use the same IP address in the pubsub_node option of res_xmpp module the server will return "Feature not Implemented" error with an error code of 501; because of this i used pubsub.192.168.20.105 and set this in the /etc/hosts of both servers not there is not an error message but i won't get the events either!!! How can i fix this?