[asterisk-users] handling jabber status

Philippe Sultan philippe.sultan at gmail.com
Wed Jun 4 06:12:18 CDT 2008


Hi Benoit,

> Anyone already did that (changing jabber status/ status message of many
> accounts)
> or know if it's even remotly possible ??

We discussed that during the last XSF devcon in Brussels. Actually
Asterisk (or any other XMPP client) cannot change the Jabber status on
behalf of another Jabber user, even if you connect it as a component
to your XMPP server. This behaviour is forbidden by the XMPP specs.

To be able to do this, you can use OpenFire along with its Asterisk
plugin, or patch your own XMPP server. I had written a patch for
Jabberd2 some time ago, but I'm not aware of anything that would be
applicable to Ejabberd (written in Erlang).

I'm in the process of extending Asterisk's "Hints" dialplan to XMPP
notifications for authorized users. Those notifications would be
carried over XMPP as message stanza of type 'headline'. That will be a
first step toward implementing PEP (Personal Eventing via Pubsub).
Although I understand that this won't answer your specific need, I
thought you might be interested in knowing this.

I can build a private branch to make this code available if you're
interested in testing it.

Philippe



More information about the asterisk-users mailing list