← Volver al índice de módulos

xmpp

This module is a gateway between Kamailio and a XMPP/Jabber server. It enables the exchange of instant messages between SIP clients and XMPP(jabber) clients.
🛠️ Utilidades y Varios Kamailio 6.1 18 parámetros 3 funciones

Descripción general

This module is a gateway between Kamailio and a XMPP/Jabber server. It enables the exchange of instant messages between SIP clients and XMPP(jabber) clients. The module can be used in two different modes: * XMPP Component Mode. In this mode, Kamailio connects to an XMPP server using the standardized XMPP component interface, extending your XMPP services. The connection is done over TCP/IP with authorization. * XMPP Server. In this mode, the Kamailio XMPP module is a stand-alone XMPP server connector, with no requirement for another XMPP server in the system. This server uses XMPP S2S (Server to Server) connections to connect to other XMPP servers or receive connections from other servers. NOTE: this is limited implementation of a XMPP server, it does not support SRV or TLS so far. Also, in this mode it cannot get XMPP clients connected, only XMPP servers (in other words, you cannot use it to replace an XMPP full server implementation). This mode is in beta stage for the moment. In the component mode, you need a local XMPP server (recommended Jabberd2). The XMPP module will connect by using TCP/IP connection to the local jabber server. The documentation and the source for Jabberd server are located at the following link: http://jabberd.jabberstudio.org/2/#download After you have a running XMPP server, what you need to do is set the following parameters in the Kamailio configuration file: * gateway_domain, xmpp_domain (which can be the same as gateway_domain) and xmpp_host, whi

Documentación oficial: https://www.kamailio.org/docs/modules/stable/modules/xmpp.html
Código fuente: https://github.com/kamailio/kamailio/tree/master/src/modules/xmpp

Parámetros de configuración

ParámetroTipoDescripción
backend string 3.2. domain_separator (string) 3.3. gateway_domain (string) 3.4. xmpp_domain (string) 3.5. xmpp_host (string) 3.6. xmpp_port (integer) 3.7. xmpp_password (string) 3.8. outbound_proxy (string) 3.9. gwm
domain_separator string 3.3. gateway_domain (string) 3.4. xmpp_domain (string) 3.5. xmpp_host (string) 3.6. xmpp_port (integer) 3.7. xmpp_password (string) 3.8. outbound_proxy (string) 3.9. gwmap (string)
gateway_domain string 3.4. xmpp_domain (string) 3.5. xmpp_host (string) 3.6. xmpp_port (integer) 3.7. xmpp_password (string) 3.8. outbound_proxy (string) 3.9. gwmap (string)
xmpp_domain string 3.5. xmpp_host (string) 3.6. xmpp_port (integer) 3.7. xmpp_password (string) 3.8. outbound_proxy (string) 3.9. gwmap (string)
xmpp_host string 3.6. xmpp_port (integer) 3.7. xmpp_password (string) 3.8. outbound_proxy (string) 3.9. gwmap (string)
xmpp_port integer 3.7. xmpp_password (string) 3.8. outbound_proxy (string) 3.9. gwmap (string)
xmpp_password string 3.8. outbound_proxy (string) 3.9. gwmap (string)
outbound_proxy string 3.9. gwmap (string)
gwmap string 3.1. backend (string)
backend string The mode you are using the module; it can be either "component" or "server".
domain_separator string In the destination address we need an extra character as a domain separator, apart from @. The address of the XMPP(jabber) client looks like this: "sip:username<domain_separator>jabber_server@gateway_
gateway_domain string The domain of the SIP-to-XMPP gateway - it has to be in DNS or SIP UA has to use outbound proxy to SIP-to-XMPP gateway IP address. It has to be used as domain in the destination address of the message
xmpp_domain string The XMPP domain of the component or the server, depending on the mode. It can be the same as the gateway_domain. For a server DNS name, you have to add _xmpp-server._tcp SRV records in your DNS zone t
xmpp_host string The IP address or the hostname for the local XMPP/Jabber server to connect to when the backend is set to "component". For server mode, this is the IP address the XMPP module binds to listen for connec
xmpp_port integer In component mode, this is the port the XMPP server component interface listens to. In server mode, this is the port the module listens to.
xmpp_password string The password of the local XMPP server.
outbound_proxy string The SIP address used as next hop when sending the message. Very useful when using Kamailio with a domain name not in DNS, or when using a separate Kamailio instance for XMPP processing. If not set, th
gwmap string Set the mappings between SIP and XMPP domains. This parameter can be set many times, adding more SIP-XMPP domain mappings. Its value has to be a list of tokens like 'sipdomain=xmppdomain', separated b

Funciones exportadas

xmpp_send_message()

4.1. xmpp_send_message()

xmpp_send_message()

Converts SIP messages to XMPP(jabber) messages, in order to be relayed to a XMPP(jabber) client.

xmpp_send_message()

usage ... xmpp_send_message(); ...

Autores y contribuidores

Andreea SpireaDaniel-Constantin Mierla <miconda@gmail.com>

Copyright © 2006 Voice Sistem SRL

Módulos relacionados

auth_web3 auth_xkeys avp avpops benchmark blst call_control call_obj