System information

Option Description
status Defines our default connection status when signed into our account. Available options are: chat,
available, away, xaway, and dnd.
statusmessage Sets a custom status message to use when connected with Asterisk, such as "Connected Via
Asterisk". Use double quotes around the message.
buddy Used to manually add buddies to the list upon connection to the server. You can specify multiple buddies
on multiple buddy lines (e.g., buddy=jim@shifteight.org).
timeout Specifies the timeout (in seconds) that messages are stored on the message stack. Defaults to 5 seconds.
This option only applies to incoming messages, which are intended to be processed by the
JABBER_RECEIVE() dialplan function.
priority Defines the priority of this resource in relation to other resources. The lower the number, the higher the
priority.
After configuring our jabber.conf file, we can load (or reload) the res_jabber.so module.
We can do this from the console with jabber reload:
*CLI> jabber reload
Jabber Reloaded.
and check the connection with the jabber show connections command:
*CLI> jabber show connections
Jabber Users and their status:
User: asterisk@shifteight.org - Connected
----
Number of users: 1
If you’re having problems getting connected, you can try unloading the module and
then loading it back into memory. If you’re still having problems, you can run the jabber
purge nodes command to remove any existing or bad connections from memory. Be-
yond that, check your configuration and verify that you don’t have any configuration
problems or typos. Once you’ve gotten connected, you can move on to the next sec-
tions, where the fun starts.
Sending messages with JabberSend()
The JabberSend() dialplan application is used for sending messages to buddies from
the Asterisk dialplan. You can use this application in any place that you would normally
utilize the dialplan, which makes it quite flexible. We’re going to use it as a screen pop
application for sending a message to a client prior to placing a call to the user’s phone.
Depending on the client used, you may be able to have the message pop up on the user’s
screen from the task bar.
Using XMPP (Jabber) with Asterisk | 421