Asterisk IM configuration

Hi, we have installed the plugin on openfire, but we cannot reach a communication with Asterisk at runtime.

What we would like to know (on spark side) when the operator is on phone and (on asterisk side [Jabber Status]) to know when the operator is on chat.

We tried to do that configuring a context on Asterisk as follows:

exten => s,1,AgentLogin(1979);
exten => s,n,JabberStatus(asterisk,,STATUS);
exten => s,n,NoOp(---- | Jabber Status is ${STATUS} | ----);

called by the operator.

On Openfire side, we configured Asterisk IM pointing asterisk host on manager proxy port, with manager full privileges account settings.

The purpose should be to log in the operator and update his status dynamically: we would like clients log on Asterisk queue, and, only when the operator is not chatting nor calling, he receives the voice call or the chat invite.

Follows also the jabber.conf:

[asterisk] ;;label
type=client ;;Client or Component connection ;;Route to server for example,
;; ;;Username with optional roster.
secret=1234 ;;Password
port=5222 ;;Port to use defaults to 5222
usetls=yes ;;Use tls or not
usesasl=yes ;;Use sasl or not
buddy=asterisk@ ;;Manual addition of buddy to list.
statusmessage=“I am available” ;;Have custom status message for
timeout=100 ;;Timeout on the message stack.ù