Feature request - Query XMPP Server from Asterisk

An application within Asterisk is needed to query an XMPP server (ie - Jive Messenger) for the status of a user. This could then be returned in a variable and used to make routing decisions within the dialing plan.

So something like:

exten => s,1,QueryXMPP(xmpp_status=my_user@jabber.org)
exten => s,2,GotoIf($[${xmpp_status} = “Available”]?is_avail|s|1:3)

Also, would be great to have an /etc/asterisk/xmpp.conf file to connect to XMPP at startup in order to have the appropriate connections open prior to calling the application in the dialplan.

This of course could be extended to include SIMPLE as well.

astjab.org is the answer.

jivesoftware.org/community/t … 0&tstart=0