You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/modules_k/dmq/notification_peer.h

28 lines
1004 B

#include "../../parser/msg_parser.h"
#include "../../parser/parse_content.h"
#include "../../ut.h"
#include "dmq.h"
#include "dmqnode.h"
#include "peer.h"
#include "dmq_funcs.h"
int add_notification_peer();
int dmq_notification_callback(struct sip_msg* msg, peer_reponse_t* resp);
int extract_node_list(dmq_node_list_t* update_list, struct sip_msg* msg);
str* build_notification_body();
int build_node_str(dmq_node_t* node, char* buf, int buflen);
/* request a nodelist from a server
* this is acomplished by a KDMQ request
* KDMQ notification@server:port
* node - the node to send to
* forward - flag that tells if the node receiving the message is allowed to
* forward the request to its own list
*/
int request_nodelist(dmq_node_t* node, int forward);
dmq_node_t* add_server_and_notify(str* server_address);
/* helper functions */
extern int notification_resp_callback_f(struct sip_msg* msg, int code, dmq_node_t* node, void* param);
extern dmq_resp_cback_t notification_callback;