autoconf for openzap

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@397 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Michael Jerris
2008-02-17 21:52:17 +00:00
parent 7235194cc4
commit 96a357af00
7 changed files with 525 additions and 20 deletions

View File

@@ -156,39 +156,38 @@ enum wanpipe_tdm_api_events {
#define WP_TDMAPI_EVENT_TONE_RING 0x03
#define WP_TDMAPI_EVENT_TONE_CONGESTION 0x04
typedef struct {
u_int8_t type;
u_int8_t mode;
u_int32_t time_stamp;
u_int16_t channel;
u_int32_t chan_map;
uint8_t type;
uint8_t mode;
uint32_t time_stamp;
uint16_t channel;
uint32_t chan_map;
union {
struct {
u_int8_t alarm;
uint8_t alarm;
} te1_alarm;
struct {
u_int8_t rbs_bits;
uint8_t rbs_bits;
} te1_rbs;
struct {
u_int8_t state;
u_int8_t sig;
uint8_t state;
uint8_t sig;
} rm_hook;
struct {
u_int8_t state;
uint8_t state;
} rm_ring;
struct {
u_int8_t type;
uint8_t type;
} rm_tone;
struct {
u_int8_t digit; /* DTMF: digit */
u_int8_t port; /* DTMF: SOUT/ROUT */
u_int8_t type; /* DTMF: PRESET/STOP */
uint8_t digit; /* DTMF: digit */
uint8_t port; /* DTMF: SOUT/ROUT */
uint8_t type; /* DTMF: PRESET/STOP */
} dtmf;
struct {
u_int16_t polarity;
u_int16_t ohttimer;
uint16_t polarity;
uint16_t ohttimer;
} rm_common;
} wp_tdm_api_event_u;
#define wp_tdm_api_event_type type

View File

@@ -37,6 +37,12 @@
#include <sys/ioctl.h>
#include <poll.h>
#ifdef __sun
#include <unistd.h>
#include <sys/ioccom.h>
#include <stropts.h>
#endif
/* Hardware interface structures and defines */
/* Based on documentation of the structures required for the hardware interface */
/* from http://wiki.freeswitch.org/wiki/Zapata_zaptel_interface */