Summary: | ASTERISK-16719: XMPP PubSub Distributed Device State don't work? | ||
Reporter: | Andrea Sannucci (asannucci) | Labels: | |
Date Opened: | 2010-09-23 10:26:38 | Date Closed: | 2010-10-04 11:03:14 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Resources/res_jabber |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | I tried to configure distributed events with XMMP on Asterisk 1.8.beta5, but it does not work. When I change de state of mystate device from cli on the server A: CLI> console dial set_inuse@internas On the server B mystate device still "idle" ****** ADDITIONAL INFORMATION ****** Server A Tigase version 5.0.0-b2135 init.properties: config-type=--gen-config-def --admins=admin@voztovoice.dyndns.org --virt-hosts = voztovoice.dyndns.org --debug=server --user-db=mysql --user-db-uri=jdbc:mysql://localhost/tigase?user=tigase&password=sesamo --comp-name-1=pubsub --comp-class-1=tigase.pubsub.PubSubComponent jabber.conf ServerA [general] debug=yes ;autoprune=yes autoregister=yes ;collection_nodes=yes ;pubsub_autocreate=yes ;auth_policy=accept [asterisk] type=client serverhost=voztovoice.dyndns.org pubsub_node=pubsub.voztovoice.dyndns.org username=asteriska@voztovoice.dyndns.org/astvoip1 secret=secret priority=1 port=5222 usetls=no usesasl=yes buddy=asteriskb@voztovoice.dyndns.org/astvoip2 distribute_events=yes status=available statusmessage="Asterisk Server A" timeout=100 jabber.conf ServerB [general] debug=yes ;autoprune=yes autoregister=yes ;collection_nodes=yes ;pubsub_autocreate=yes ;auth_policy=accept [asterisk] type=client serverhost=voztovoice.dyndns.org pubsub_node=pubsub.voztovoice.dyndns.org username=asteriskb@voztovoice.dyndns.org/astvoip2 secret=secret priority=1 port=5222 usetls=no usesasl=yes buddy=asteriska@voztovoice.dyndns.org/astvoip1 distribute_events=yes status=available statusmessage="Asterisk Server B" timeout=100 CLI Asterisk ServerA: *CLI> jabber show connected Jabber Users and their status: User: asteriska@voztovoice.dyndns.org/astvoip1 - Connected ---- Number of users: 1 jabber show buddies Jabber buddy lists Client: asteriska@voztovoice.dyndns.org/astvoip1 Buddy: asteriskb@voztovoice.dyndns.org Resource: astvoip2 node: http://www.asterisk.org/xmpp/client/caps version: asterisk-xmpp Jingle capable: yes Status: 1 Priority: 1 Buddy: asteriskb@voztovoice.dyndns.org/astvoip2 Resource: None CLI ServerB CLI> jabber show connected Jabber Users and their status: User: asteriskb@voztovoice.dyndns.org/astvoip2 - Connected ---- Number of users: 1 CLI> jabber show buddies Jabber buddy lists Client: asteriskb@voztovoice.dyndns.org/astvoip2 Buddy: asteriska@voztovoice.dyndns.org Resource: astvoip1 node: http://www.asterisk.org/xmpp/client/caps version: asterisk-xmpp Jingle capable: yes Status: 1 Priority: 1 Buddy: asteriska@voztovoice.dyndns.org/astvoip1 Resource: None CLI> jabber list nodes asterisk Listing pubsub nodes. JABBER: asterisk OUTGOING: <iq to='pubsub.voztovoice.dyndns.org' from='asteriskb@voztovoice.dyndns.org/astvoip2' type='get' id='aaaaf'><query xmlns='http://jabber.org/protocol/disco#items'/></iq> JABBER: asterisk INCOMING: <iq id="aaaaf" from="pubsub.voztovoice.dyndns.org" to="asteriskb@voztovoice.dyndns.org/astvoip2" type="result"><query xmlns="http://jabber.org/protocol/disco#items"/></iq> extensions.conf (ServerA and ServerB) [internas] exten => 1234,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 => check,1,NoOp(Custom:mystate is ${DEVICE_STATE(Custom:mystate)}) | ||
Comments: | By: Leif Madsen (lmadsen) 2010-09-23 10:54:30 I haven't tested this in quite some time, but I know it worked for me when I was writing the documentation for it, and the amount of changes in the code would be nil or minimal. You followed the documentation from the doc/ directory right? By: Andrea Sannucci (asannucci) 2010-09-23 11:22:15 yes, I followed the documentation in the /doc directory. all work fine but I think Asterisk not create a node on Tigase pubsub But i'd like know if this feature work. Regards By: Leif Madsen (lmadsen) 2010-10-04 11:03:05 Yes the feature should work because I tested it and wrote the documentation, which means I did make it work once. It is certainly possible the documentation may have missed a step somewhere, but until I have time to follow my own documentation again and see if there is in fact a step missing, there isn't much we can do. I will be working on this again when I write documentation for it in the new Asterisk book and for my presentation at AstriCon. I'm going to close this issue for now because I don't believe there is enough information here to keep this open as a bug, especially since I know it did work previously. If I find it doesn't work during documentation then I will reopen this bug, or open a new one. |