git-svn-id: http://svn.openzap.org/svn/openzap/trunk@41 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale
2007-05-20 01:50:01 +00:00
parent 6b55778560
commit 110d452c60
4 changed files with 36 additions and 5 deletions

View File

@@ -166,6 +166,9 @@ struct zap_channel {
zap_channel_feature_t features;
zap_codec_t effective_codec;
zap_codec_t native_codec;
uint32_t effective_interval;
uint32_t native_interval;
uint32_t packet_len;
teletone_dtmf_detect_state_t dtmf_detect;
zap_event_t event_header;
char last_error[256];

View File

@@ -109,7 +109,8 @@ typedef enum {
typedef enum {
ZAP_CHANNEL_FEATURE_DTMF = (1 << 0),
ZAP_CHANNEL_FEATURE_CODECS = (1 << 1)
ZAP_CHANNEL_FEATURE_CODECS = (1 << 1),
ZAP_CHANNEL_FEATURE_INTERVAL = (1 << 2)
} zap_channel_feature_t;
typedef enum {
@@ -118,7 +119,8 @@ typedef enum {
ZAP_CHANNEL_OPEN = (1 << 2),
ZAP_CHANNEL_DTMF_DETECT = (1 << 3),
ZAP_CHANNEL_SUPRESS_DTMF = (1 << 4),
ZAP_CHANNEL_TRANSCODE = (1 << 5)
ZAP_CHANNEL_TRANSCODE = (1 << 5),
ZAP_CHANNEL_BUFFER = (1 << 6)
} zap_channel_flag_t;
typedef struct zap_channel zap_channel_t;