projects
/
lcr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9a0197e
)
make LCR compile again with latest mISDNuser changes
author
schlaile
<root@asterisk.schlaile.de>
Tue, 12 Aug 2008 14:16:54 +0000
(16:16 +0200)
committer
root
<root@asterisk.schlaile.de>
Tue, 12 Aug 2008 14:16:54 +0000
(16:16 +0200)
bchannel.c
patch
|
blob
|
history
mISDN.cpp
patch
|
blob
|
history
diff --git
a/bchannel.c
b/bchannel.c
index
c5dcc4b
..
b154972
100644
(file)
--- a/
bchannel.c
+++ b/
bchannel.c
@@
-25,6
+25,10
@@
#include <sys/socket.h>
#include <mISDNif.h>
#include <sys/socket.h>
#include <mISDNif.h>
+#define AF_COMPATIBILITY_FUNC 1
+#define MISDN_OLD_AF_COMPATIBILITY 1
+#include <compat_af_isdn.h>
+
#include <asterisk/frame.h>
#include <asterisk/frame.h>
@@
-53,6
+57,8
@@
enum {
int bchannel_initialize(void)
{
int bchannel_initialize(void)
{
+ init_af_isdn();
+
return(0);
}
return(0);
}
diff --git
a/mISDN.cpp
b/mISDN.cpp
index
eeb00ee
..
40d9a9a
100644
(file)
--- a/
mISDN.cpp
+++ b/
mISDN.cpp
@@
-13,6
+13,8
@@
#include "myisdn.h"
extern "C" {
#include "myisdn.h"
extern "C" {
+#define MISDN_OLD_AF_COMPATIBILITY 1
+#include <compat_af_isdn.h>
}
#include <q931.h>
}
#include <q931.h>
@@
-46,6
+48,8
@@
int mISDN_initialize(void)
{
char filename[256];
{
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)
/* try to open raw socket to check kernel */
mISDNsocket = socket(PF_ISDN, SOCK_RAW, ISDN_P_BASE);
if (mISDNsocket < 0)