projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added GSM network support.
[lcr.git]
/
interface.h
diff --git
a/interface.h
b/interface.h
index
dd986ca
..
e459b5b
100644
(file)
--- a/
interface.h
+++ b/
interface.h
@@
-8,10
+8,6
@@
** interface header file **
** **
\*****************************************************************************/
** interface header file **
** **
\*****************************************************************************/
-
-#define FLAG_PORT_USE 1
-#define FLAG_PORT_PTP (1<<1)
-
enum { /* interface type */
IF_TYPE_DIRECT,
IF_TYPE_EXTENSION,
enum { /* interface type */
IF_TYPE_DIRECT,
IF_TYPE_EXTENSION,
@@
-48,9
+44,14
@@
struct interface_port {
struct interface *interface; /* link to interface */
struct mISDNport *mISDNport; /* link to port */
int portnum; /* port number */
struct interface *interface; /* link to interface */
struct mISDNport *mISDNport; /* link to port */
int portnum; /* port number */
+ char portname[64]; /* alternately: port name */
int ptp; /* force load stack in PTP mode */
int ptmp; /* force load stack in PTP mode */
int nt; /* load stack in NT-mode */
int ptp; /* force load stack in PTP mode */
int ptmp; /* force load stack in PTP mode */
int nt; /* load stack in NT-mode */
+ int tespecial; /* special TE-mode behavior */
+ int l1hold; /* hold layer 1 (1=on, 0=off) */
+ int l2hold; /* hold layer 2 (1=force, -1=disable, 0=default) */
+ int gsm; /* interface is an GSM interface */
int channel_force; /* forces channel by protocol */
int nodtmf; /* disables DTMF */
struct select_channel *out_channel; /* list of channels to select */
int channel_force; /* forces channel by protocol */
int nodtmf; /* disables DTMF */
struct select_channel *out_channel; /* list of channels to select */
@@
-63,6
+64,7
@@
struct interface_port {
int tout_disconnect;
// int tout_hold;
// int tout_park;
int tout_disconnect;
// int tout_hold;
// int tout_park;
+ int dialmax; /* maximum number of digits to dial */
};
struct interface_msn {
};
struct interface_msn {
@@
-99,11
+101,11
@@
struct interface {
};
struct interface_param {
};
struct interface_param {
- c
har
*name;
+ c
onst char
*name;
/* return value (pointer of function)(args ...) */
int (*func)(struct interface *, char *, int, char *, char*);
/* return value (pointer of function)(args ...) */
int (*func)(struct interface *, char *, int, char *, char*);
- c
har
*usage;
- c
har
*help;
+ c
onst char
*usage;
+ c
onst char
*help;
};
};