*/
#define DEBUG_LOG 0x7fff
-/*
- * transmit interval for tones and announcements (or samples of all kind)
- *
- */
-#define ISDN_TRANSMIT 128
-
/*
* preload transmit buffer to avoid gaps at the beginning due to jitter
- * keep this 0 for minimum delay
+ * this is also the maximum load that will be kept in tx-buffer
+ */
+#define ISDN_PRELOAD 128 // 1024 samples
+
+/*
+ * interval for refreshing transmit buffer
*/
-#define ISDN_PRELOAD 0
+#define ISDN_TRANSMIT 32 // 256 samples
/* give sendmail program. if not inside $PATH, give absolute path here (e.g. "/usr/sbin/sendmail")
*/
extern "C" {
#endif
#include <isdn_net.h>
-#include <net_l3.h>
+#include <../i4lnet/net_l3.h>
#ifdef __cplusplus
}
#endif
#include "tones.h"
#include "crypt.h"
#include "admin_server.h"
+#include "trace.h"
extern double now_d;
extern time_t now;
extern struct timeval now_tv;
extern struct timezone now_tz;
+#define DIRECTION_NONE 0
+#define DIRECTION_OUT 1
+#define DIRECTION_IN 2