** **
\*****************************************************************************/
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdarg.h>
+#include <unistd.h>
+#include <string.h>
+#include <signal.h>
+#include <time.h>
+#include <fcntl.h>
+#include <errno.h>
+#include <pthread.h>
+#include <dirent.h>
+#include <math.h>
+#include <sys/time.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <sys/stat.h>
+#include <sys/ioctl.h>
+#include <sys/file.h>
+#include <sys/mman.h>
+#include <sys/resource.h>
+
#define NAME "LCR"
#define DEFAULT_ENDPOINT_APP EndpointAppPBX
-#define VERSION_STRING "0.2 (August 2007)"
+#define VERSION_STRING "0.5 (Spring 2007)"
extern int memuse;
extern int mmemuse;
extern int fduse;
extern int fhuse;
+//extern pthread_mutex_t mutex_lcr; // lcr process mutex
+
+#ifdef SOCKET_MISDN
+extern FILE *debug_fp;
+#else
extern int global_debug;
+#endif
#define PDEBUG(mask, fmt, arg...) _printdebug(__FUNCTION__, __LINE__, mask, fmt, ## arg)
#define PERROR(fmt, arg...) _printerror(__FUNCTION__, __LINE__, fmt, ## arg)
*/
#define ISDN_LOAD 1024 // samples
#define ISDN_MAXLOAD 2048 // samples
-#define ISDN_TRANSMIT 256 // samples
/* give sendmail program. if not inside $PATH, give absolute path here (e.g. "/usr/sbin/sendmail")
*/
#define BUDETECT ;
#endif
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-#include <time.h>
-#include <sys/time.h>
-//#include <asm/bitops.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef SOCKET_MISDN
-#include <isdn_net.h>
-#include <../i4lnet/net_l3.h>
+#include <mISDNuser/isdn_net.h>
+#include <mISDNuser/net_l3.h>
+#else
+#include <mbuffer.h>
#endif
#ifdef __cplusplus
}
#include "endpoint.h"
#include "endpointapp.h"
#include "apppbx.h"
+#include "callerid.h"
#include "route.h"
#include "port.h"
#include "mISDN.h"
#include "alawulaw.h"
#include "tones.h"
#include "crypt.h"
-#include "admin_server.h"
+#include "socket_server.h"
#include "trace.h"
extern double now_d;