Skip to content

JABBER_RECEIVE() - [res_xmpp]


Reads XMPP messages.


Receives a text message on the given account from the buddy identified by jid and returns the contents.

The example below returns an XMPP message sent from (or nothing in case of a time out), to the asterisk XMPP account configured in xmpp.conf.

Example: Receive a message
same => n,Set(msg=${JABBER_RECEIVE(asterisk,})


  • account - The local named account to listen on (specified in xmpp.conf)

  • jid - Jabber ID of the buddy to receive message from. It can be a bare JID (username@domain) or a full JID (username@domain/resource).

  • timeout - In seconds, defaults to '20'.

See Also

Generated Version

This documentation was generated from Asterisk branch 21 using version GIT