#include <sys/socket.h>
#include <pthread.h>
#include <semaphore.h>
#include <mISDNif.h>
#include <mISDNuser/mISDNif.h>
#include <mlayer3.h>
#include <mISDNuser/mlayer3.h>
struct mqueue {
struct mbuffer *prev;