%docentities; ]> &develguide; The module provides the following functions that can be used in other &kamailio; modules.
<function moreinfo="none">dmq_load_api(dmq_api_t* api)</function> This function binds the DMQ module and fills the structure with the exported functions below. <function>dmq_api_t</function> 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; ...
<function moreinfo="none">register_dmq_peer(dmq_peer_t* peer)</function> Registers an entity as a DMQ peer which permits receiving/sending messages between nodes which support the same peer. <function>register_dmq_peer</function> usage ... Example to follow. ...
<function moreinfo="none">bcast_message(dmq_peer_t* peer, str* body, dmq_node_t* except, dmq_resp_cback_t* resp_cback, int max_forwards, str* content_type)</function> Broadcast a DMQ message to all nodes in the DMQ bus excluding self, inactive nodes and "except" if specified. <function>bcast_message</function> usage ... Example to follow. ...
<function moreinfo="none">send_message(dmq_peer_t* peer, str* body, dmq_node_t* node, dmq_resp_cback_t* resp_cback, int max_forwards, str* content_type)</function> Send a DMQ message to a single node. <function>send_message</function> usage ... Example to follow. ...