summaryrefslogtreecommitdiffstats
path: root/mISDN.cpp
diff options
context:
space:
mode:
authorschlaile2008-08-12 16:16:54 +0200
committerroot2008-08-12 16:16:54 +0200
commit3a5b34a850db3e4447287f46a40b74e0427eae54 (patch)
tree74a8b5af12677f8e6dbf02b2ca62901b26e54afa /mISDN.cpp
parentfixed audio preload of tones. this reduces the propability of audio gaps resu... (diff)
downloadlcr-3a5b34a850db3e4447287f46a40b74e0427eae54.tar.gz
lcr-3a5b34a850db3e4447287f46a40b74e0427eae54.tar.xz
lcr-3a5b34a850db3e4447287f46a40b74e0427eae54.zip
make LCR compile again with latest mISDNuser changes
Diffstat (limited to 'mISDN.cpp')
-rw-r--r--mISDN.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/mISDN.cpp b/mISDN.cpp
index eeb00ee..40d9a9a 100644
--- a/mISDN.cpp
+++ b/mISDN.cpp
@@ -13,6 +13,8 @@
#include "myisdn.h"
extern "C" {
+#define MISDN_OLD_AF_COMPATIBILITY 1
+#include <compat_af_isdn.h>
}
#include <q931.h>
@@ -46,6 +48,8 @@ int mISDN_initialize(void)
{
char filename[256];
+ init_af_isdn();
+
/* try to open raw socket to check kernel */
mISDNsocket = socket(PF_ISDN, SOCK_RAW, ISDN_P_BASE);
if (mISDNsocket < 0)