AnsweredAssumed Answered

Asterisk IM configuration

Question asked by cecho on Oct 29, 2008

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:

-------------------------------------------------------------------------------- --------------

[queueLogin]
exten => s,1,AgentLogin(1979);
exten => s,n,JabberStatus(asterisk,asterisk@asterisk.host,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
serverhost=asterisk.host               ;;Route to server for example,
                                        ;;      talk.google.com
username=asterisk@asterisk.host/asterisk       ;;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@10.107.109.108           ;;Manual addition of buddy to list.
statusmessage="I am available"          ;;Have custom status message for
                                        ;;Asterisk.
timeout=100                             ;;Timeout on the message stack.ù

-------------------------------------------------------------------------------- --------------

Outcomes