src/modules/dmq/dmq.h
1977645c
 /**
  * dmq module - distributed message queue
  *
  * Copyright (C) 2011 Bucur Marius - Ovidiu
  *
  * This file is part of Kamailio, a free SIP server.
  *
  * Kamailio is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  *
  * Kamailio is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
d500589d
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
9e1ff448
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
1977645c
  */
 
 
 #ifndef _DMQ_H_
 #define _DMQ_H_
78eea80f
 
cf83221d
 #include "../../core/dprint.h"
 #include "../../core/error.h"
 #include "../../core/sr_module.h"
a3918ba7
 #include "../../modules/tm/tm_load.h"
cf83221d
 #include "../../core/parser/parse_uri.h"
a3918ba7
 #include "../../modules/sl/sl.h"
78eea80f
 #include "peer.h"
 #include "worker.h"
a4f6960b
 
2b7ae0f0
 #define DEFAULT_NUM_WORKERS 2
 #define MIN_PING_INTERVAL 5
78eea80f
 
d500589d
 extern int dmq_num_workers;
 extern int dmq_worker_usleep;
 extern dmq_worker_t *dmq_workers;
2b7ae0f0
 extern dmq_peer_t *dmq_notification_peer;
a3918ba7
 extern str dmq_server_address;
d500589d
 extern dmq_peer_list_t *dmq_peer_list;
a3918ba7
 extern str dmq_request_method;
3e535270
 extern str dmq_server_socket;
d500589d
 extern sip_uri_t dmq_server_uri;
c70705c4
 extern str dmq_notification_address;
d500589d
 extern int dmq_multi_notify;
 extern sip_uri_t dmq_notification_uri;
a3918ba7
 /* sl and tm */
 extern struct tm_binds tmb;
 extern sl_api_t slb;
78eea80f
 
f403eea5
 extern str dmq_200_rpl;
 extern str dmq_400_rpl;
 extern str dmq_500_rpl;
 extern str dmq_404_rpl;
 
7dfda822
 #endif