modules/dmq/dmq.h
1977645c
 /**
  * $Id$
  *
  * 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.
  *
  * 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
 
 #include "../../dprint.h"
 #include "../../error.h"
 #include "../../sr_module.h"
a3918ba7
 #include "../../modules/tm/tm_load.h"
c70705c4
 #include "../../parser/parse_uri.h"
a3918ba7
 #include "../../modules/sl/sl.h"
78eea80f
 #include "peer.h"
 #include "worker.h"
a4f6960b
 
 #define DEFAULT_NUM_WORKERS	2
d2910304
 #define MIN_PING_INTERVAL	5
78eea80f
 
 extern int num_workers;
 extern dmq_worker_t* workers;
f403eea5
 extern dmq_peer_t* dmq_notification_peer;
a3918ba7
 extern str dmq_server_address;
8620313f
 extern dmq_peer_list_t* peer_list;
a3918ba7
 extern str dmq_request_method;
3e535270
 extern str dmq_server_socket;
c70705c4
 extern struct sip_uri dmq_server_uri;
 extern str dmq_notification_address;
 extern struct sip_uri 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