Table of Contents
List of Examples
Table of Contents
The DMQ module implements a distributed message passing system on top of Kamailio. The DMQ nodes within the system are grouped in a logical entity called DMQ bus and are able to communicate with each others by sending/receiving messages (either by broadcast or sending a DMQ message to a specific node). The system transparently deals with node discovery, node consistency within the DMQ bus, retransmissions, etc.
The local server address.
The modules needs it to know on which interface the DMQ engine should send and receive messages.
Default value is “NULL”.
Example 1.1. Set dmq_server_address
parameter
... modparam("dmq", "dmq_server_address", "mysql://openser:openserrw@localhost/openser") ...
Table of Contents
The module provides the following functions that can be used in other Kamailio modules.
This function binds the dmq modules and fills the structure with the exported functions -> register_dmq_peer - registers an entity as a DMQ peer which permits receiving/sending messages between nodes which support the same peer, -> bcast_message - broadcast a DMQ message to all peers available in the DMQ bus, -> send_message - sends a DMQ message to a specific peer in the local DMQ bus.
Example 2.1. dmq_api_t
structure
... typedef struct dmq_api { register_dmq_peer_t register_dmq_peer; bcast_message_t bcast_message; send_message_t send_message; } dmq_api_t; ...