/*****************************************************************************\
** **
-** LCR **
+** Linux Call Router **
** **
**---------------------------------------------------------------------------**
** Copyright: Andreas Eversberg **
#define DEFAULT_ENDPOINT_APP EndpointAppPBX
-#define VERSION_STRING "0.1 (August 2007)"
+#define VERSION_STRING "0.2 (August 2007)"
extern int memuse;
extern int mmemuse;
extern int fduse;
extern int fhuse;
+extern int global_debug;
+
#define PDEBUG(mask, fmt, arg...) _printdebug(__FUNCTION__, __LINE__, mask, fmt, ## arg)
#define PERROR(fmt, arg...) _printerror(__FUNCTION__, __LINE__, fmt, ## arg)
#define PDEBUG_RUNTIME(mask, fmt, arg...) _printdebug(NULL, 0, mask, fmt, ## arg)
//#define DEBUG_KNOCK 0x0140
#define DEBUG_VBOX 0x0180
#define DEBUG_EPOINT 0x0200
-#define DEBUG_CALL 0x0400
+#define DEBUG_JOIN 0x0400
#define DEBUG_VERSATEL 0x0800
#define DEBUG_CRYPT 0x1000
#define DEBUG_ROUTE 0x2000
#ifdef __cplusplus
extern "C" {
#endif
-#include <isdn_net.h>
-#include <../i4lnet/net_l3.h>
+#ifndef SOCKET_MISDN
+#include <mISDNuser/isdn_net.h>
+#include <mISDNuser/net_l3.h>
+#endif
#ifdef __cplusplus
}
#endif
#include "mISDN.h"
#include "dss1.h"
#include "vbox.h"
-#include "call.h"
-#include "callpbx.h"
-#include "callasterisk.h"
+#include "join.h"
+#include "joinpbx.h"
+#include "joinremote.h"
#include "cause.h"
#include "alawulaw.h"
#include "tones.h"
#define DIRECTION_OUT 1
#define DIRECTION_IN 2
+#if 0
+struct lcr_fdset {
+ struct mISDNport *mISDNport;
+ int b_index;
+};
+#endif