Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Typedef.h
Package: audio_codes_dsp_vp2_40.rar [view]
Upload User: cheng071
Upload Date: 2015-09-26
Package Size: 12280k
Code Size: 113k
Category:
Audio program
Development Platform:
C/C++
- /*-----------------------------------------------------------
- *
- * Copyright (C) 1999 AudioCodes Ltd.
- *
- * All rights reserved. Reproduction in whole
- * or in part is prohibited without the written
- * permission of the copyright owner.
- *
- *------------------------------------------------------------
- *------------------------------------------------------------
- *
- * FILE: TypeDef.h
- *
- * DESCRIPTION: General Types/Const Definitions
- *
- * NOTES: None
- *
- *----------------------------------------------------------*/
- #ifndef TYPEDEF_H
- #define TYPEDEF_H
- #include "UserDef.h" /* VoiceEngines User Settings */
- #include "AC48xDrv.h" /* DSP IF User Settings */
- #include "AC48xDef.h" /* Include AC48x bit-field definitons */
- #include "VoiceMediator.h"
- #if FAX_TERMINATION_SUPPORTED
- #include "FaxTermDef.h" /* Includes from the Fax Termination stack*/
- #endif
- /**********************************************************************
- Include to PstnTypeDef.h : later in 4.2 will be taken out in a smart way...
- ************************************************************************/
- #include "PstnTypeDef.h"
- #include "SS7TypeDef.h"
- /**********************************************************************
- Include to TpAppVarsTypeDef.h : later in 4.2 will be approached again ...
- TpAppVarsTypeDef.h includes the struct TAppVars that Boardparams is using.
- the purpose is that one could use #include to it without needing to get with
- it all the other 2000 lines that are in Typedef.h
- In 4.2 a "work" will be done in order to define how to approach the "many types of different systems (i.e. - ATM/SS7/Megaco/Smp etc.)
- so that a "methology" :-) will be better
- ************************************************************************/
- #include "TpAppVarsTypeDef.h"
- /**********************************************************************
- Macro Definitions :
- ************************************************************************/
- /* Convert from a Channel ID to the DSP Device Number assigned for this channel : */
- #define CID_TO_DEVICE(ch) (((ch>=0) && (ch<acNumberOfDSPChannels)) ? ChInfo[ch].DeviceIndex : 0)
- /* Convert from a Channel ID to the DSP channel number assigned for this channel : */
- #define CID_TO_CHANNEL(ch) (((ch>=0) && (ch<acNumberOfDSPChannels)) ? ch-DeviceInfo[ChInfo[ch].DeviceIndex].FirstCID : 0)
- /* Convert from a DSP Device Number to the first Channel ID associated with this device */
- #define DEVICE_TO_CID(dev) (((dev>=0) && (dev<MAX_DSP_DEVICES_CAPACITY)) ? DeviceInfo[dev].FirstCID : 0)
- /* Return the number of channels supported by this DSP Device */
- #define CHANNELS_IN_DEVICE(dev) (((dev>=0) && (dev<MAX_DSP_DEVICES_CAPACITY)) ? DeviceInfo[dev].NumberOfChannels : DeviceInfo[0].NumberOfChannels)
- /* Return the number of channels supported by the first n devices */
- #define CHANNELS_IN_DEVICES_0_TO_N(n) (DEVICE_TO_CID(n)+CHANNELS_IN_DEVICE(n))
- /**********************************************************************
- Constants Definitions :
- ************************************************************************/
- #ifndef NULL
- #define NULL 0
- #endif
- #ifndef OK
- #define OK 0
- #endif /* OK */
- #if 0 /*ndef BOOL */
- #define BOOL int
- #endif /* BOOL */
- #ifndef TRUE
- #define TRUE 1
- #endif /* TRUE */
- #ifndef FALSE
- #define FALSE 0
- #endif /* FALSE */
- /* Debug mode selection : */
- #if !ZERO_COPY_MODE
- #define USE_DSP_DEBUG_MODE 0
- #else
- #define USE_DSP_DEBUG_MODE 0
- #endif
- #define ENABLE_WATCHDOG 1
- #define DISABLE_WEB_SERVER 2
- #define DISABLE_SNMP 4
- #define DISABLE_WEB_CONFIG 8
- #define DISABLE_RS232 16
- #define DISABLE_TELNET 32
- #define DTMF_PERIOD 20
- #define MAX_DTMF_EDGE_LOCATION 19
- #define MOD_DTMF_SEQ_NUM 256
- #define MAX_DTMF_HANGOVER 3
- #define DTMF_GENERATOR_HANGOVER 1000 /*milisec*/
- #define LONG_DTMF_PERIOD 2000 /*milisec*/
- #define MODEM_DETECTION_PERIOD 12000 /*milisec*/
- #define MAX_CALL_PROGRESS_FREQUENCIES 15
- #define MAX_CALL_PROGRESS_SIGNALS 16
- #define MAX_RING_TYPES 16
- #define MAX_COEF 36
- #define CALL_PROGRESS_CMD_LENGTH 234
- #define MAX_USER_DIALING_COMMANDS 5
- #define HOOK_DEBOUNCE_PERIOD 300 /* Hook debouncer constant (minimum) in msec (40)*/
- /* Size of the event buffer in the Tx Channel Info : */
- #define EVENT_BUF_SIZE 10
- #define DIGIT_BUF_SIZE 20
- #define CAS_BUF_SIZE 25
- #define USER_DIALING_BUF_SIZE 16
- #if RAS_IF_SUPPORTED
- #define DELAY_JITTER_BUF_MAX_SIZE 1200 /*milisec */
- #else
- #define DELAY_JITTER_BUF_MAX_SIZE 300 /*milisec */
- #endif
- #define T38_JITTER_BUFFER_SIZE 200 /* milisec */
- #define DELAY_JITTER_BUF_MAX_PACKETS (DELAY_JITTER_BUF_MAX_SIZE/MIN_DSP_FRAME_TIME) /*pcm packets*/
- #define MAX_SUCCESSIVE_REORDERED_PACKETS_DURATION DELAY_JITTER_BUF_MAX_SIZE
- #define NUM_IP_PACKETS_TO_BUFFER_PER_CH (DELAY_JITTER_BUF_MAX_SIZE/MIN_IP_PACKET_TIME)
- #define INITIAL_JITTER_BUF_DELAY (DELAY_JITTER_BUF_MAX_SIZE/2) /*milisec*/
- #define BFI_ERROR_WEIGHT_VEC_SIZE 20
- #define INTERVAL_FOR_RX_REORDER_CHECK_LOG_2 10 /*packets - check will be performed every 1024 incoming packets*/
- #define REORDER_PACKETS_THRESHOLD 128 /*packets*/
- #define EM_DEBOUNCE_PERIOD 25 /*milisec*/
- #define CYPHER_MAX_KEY_LENGTH 24 /*Maximum key length in bytes*/
- #define CYPHER_MAX_EXPANDED_KEY_SIZE_SHORTS 64
- #define CYPHER_BLOCK_SIZE 8 /* basic block size is 64 bits*/
- #define RTP_SID_PACKET_PAYLOAD_SIZE 1 /* to be used when sending/processing RTP SID packets */
- #define FAX_CED_FREQ 2100 /*Hz*/
- #define MAX_FAX_SEQ_NUM 16
- #define FAX_MODULATION_ON_PAYLOAD_SIZE 6
- #define FAX_MODULATION_OFF_PAYLOAD_SIZE 3
- #define FAX_V21_DATA_PAYLOAD_SIZE 4
- #define FAX_T4_DURATION (pCh->VoicePacketLenMiliSec)
- #define FAX_T30_DURATION (pCh->VoicePacketLenMiliSec)
- #define MAX_FAX_TIME_STAMP 32768
- #define FAX_HS_MOD_ON_CORRECTION_PERIOD 30
- #define FAX_CMD_PACKET_SIZE 12
- #define FAX_RELAY_ERROR_REPORT_BUFFER_SIZE 4
- #ifndef MAX_FAX_REDUNDANCY_DEPTH
- #define MAX_FAX_REDUNDANCY_DEPTH 4
- #endif
- #define T38_ENC_BUFFER_SIZE (450-18-sizeof(struct TPCIPacketHeader))
- /*-=- HDLC*/
- #define PCI_HDLC_HEADER_SIZE 2 /*bytes*/
- #define CALLER_ID_BUFFER_SIZE 100 /* Size of the Caller ID message buffer */
- #define MAX_CALLER_ID_MESSAGE_LENGTH 60 /* Size of the Caller ID message text */
- #define MODEM_CED_FREQ 2100 /*Hz*/
- #define MAX_MODEM_SEQ_NUM 16
- #define MODEM_MODULATION_ON_PAYLOAD_SIZE 6
- #define MODEM_MODULATION_OFF_PAYLOAD_SIZE 3
- #define MODEM_V21_DATA_PAYLOAD_SIZE 4
- #define MODEM_DATA_FRAME_DURATION 40
- #define MAX_MODEM_TIME_STAMP 32768
- #define MODEM_HS_MOD_ON_CORRECTION_PERIOD 30 /*milisec*/
- #define MODEM_DATA_MODULATION_TYPE 4
- /* Yuri S. 11/12/01 - RFC1890 - dynamic RTP Pyload types */
- /*-------------------------------------------------------*/
- #define MAX_NUM_DYNAMIC_RTP_PT 32
- #define FIRST_DYNAMIC_RTP_PT 96
- #define LAST_DYNAMIC_RTP_PT 127
- /* previous event time(ms) offset in IBS packet*/
- #define PREV_EV_TIME_OFFSET 2
- /*number of the error message that we want to count */
- #define MAX_ERROR_MSG_TYPE_INDEX 30
- #define DEFAULT_ERROR_MSG_INTERVAL 1000 /* 1 SEC*/
- #define MAX_TIME_STAMP_VALUE 0xffffffff
- /***********************************************************************
- Error Codes Constants Definitions:
- ************************************************************************/
- /*error codes - AC4804IF*/
- #define AC4804_BOOT_DL_ERROR 0x1001 /*fatal error*/
- #define AC4804_PROGRAM_DL_ERROR 0x1002 /*fatal error*/
- #define AC4804_RX_CHECKSUM_ERROR 0x1003
- #define AC4804_RX_SEQUENCE_ERROR 0x1004
- #define AC4804_TX_ERROR 0x1005 /*fatal error*/
- #define AC4804_RX_PACKET_NOT_READY 0x1006
- #define AC4804_INVALID_PACKET_LEN_ERROR 0x1007 /*fatal error*/
- #define AC4804_RX_INVALID_STATUS_ERROR 0x1008
- #define AC4804_INVALID_PROFILE_CONFIGURATION 0x1009 /*fatal error*/
- #define AC4804_INVALID_PATTERN_DETECTOR_THRESHOLD 0x100a /*recoverable error*/
- /*-=- error codes - RAS */
- #define CANT_CHANGE_ACTIVE_L2TP_TUNNEL_PARAMETERS 0x1100 /*recoverable error*/
- #define NO_RESOURCE_FOR_NEW_TUNNEL_DATABASE 0x1101 /*recoverable error*/
- #define INVALID_L2TP_TUNNEL_ID_ERROR 0x1102 /*recoverable error*/
- #define INVALID_L2TP_SESSION_ID_ERROR 0x1103 /*recoverable error*/
- /*error codes - VoIPDecoder*/
- #define INVALID_CID_ERROR 0x2002 /*recoverable error*/
- #define CHANNEL_NOT_ACTIVE_ERROR 0x2003
- #define RTP_PAYLOAD_LENGTH_ERROR 0x200c /*recoverable error*/
- #define LOST_RTP_PACKETS_ERROR 0x2100
- #define UNKNOWN_RTP_PAYLOAD_TYPE_ERROR 0x2101 /*recoverable error*/
- #define LOST_DTMF_PACKETS_ERROR 0x2102
- #define INVALID_FAX_SEQUENCE_ERROR 0x2103 /*recoverable error*/
- #define UNRECOGNIZED_FAX_PACKET_ERROR 0x2104 /*recoverable error*/
- #define LOST_FAX_PACKETS_ERROR 0x2105
- #define INVALID_G723_CODE_ERROR 0x2106 /*recoverable error*/
- #define LOST_MODEM_RELAY_PACKET_ERROR 0x2107 /*recoverable error*/
- #define UNRECOGNIZED_MODEM_RELAY_PACKET_ERROR 0x2108 /*recoverable error*/
- #define TOO_MANY_REORDERED_PACKETS_ERROR 0x2109 /*recoverable error*/
- #define DTMF_FORMAT_CONFIGURATION_ERROR 0x210a /*recoverable error*/
- #define DTMF_DURATION_ROLLOVER_ERROR 0x210b /*recoverable error*/
- #define RTP_SSRC_ERROR 0x210c /*recoverable error*/
- #define INVALID_CELL_CODER_CODE_ERROR 0x210d /*recoverable error*/
- #define INVALID_TFOV_CODER_ERROR 0x210e /*recoverable error*/
- /* error codes - VoATM */
- #define INVALID_ATM_HEADER_ERROR 0x2201
- #define INVALID_CPS_LENGTH_ERROR 0x2202
- #define INVALID_UUI_ERROR 0x2203
- #define INVALID_MESSAGE_TYPE_ERROR 0x2204
- #define INVALID_PROFILE_CODER_ERROR 0x2205
- #define INVALID_CRC_10_PACKET_ERROR 0x2206
- #define INVALID_TYPE_1_SERVICE_ERROR 0x2207
- #define LOST_AAL2_PACKETS_ERROR 0x2208
- #define PRIMARY_PAYLOAD_LENGTH_ERROR 0x2209
- #define SID_PAYLOAD_LENGTH_ERROR 0x220a
- #define DSP_ERROR_PACKET_ERROR 0x220b
- #define VPI_VCI_OF_UNOPENNED_VCC_ERROR 0x220c
- #define ATM_PHY_FAILED 0x220d
- #define ATM_SLAVE_MODE_FAX_MODEM_ERROR 0x220e
- #define NO_AAL2_SSSAR_BUFFERS 0x220f
- #define INVALID_3G_PDU_TYPE_ERROR 0x2210
- #define SET_TPNCP_TRANSPORT_LAYER 0x2211
- #define QUERY_SAAL_STATISTICS 0x2212
- /*error codes - VoIPEncoder*/
- #define SPURIOUS_IDLE_ACK_ERROR 0x3001 /*fatal error*/
- #define DOUBLE_DTMF_EDGE_ERROR 0x3002 /*recoverable error*/
- #define DIGIT_BUFFER_OVERRUN_ERROR 0x3003 /*recoverable error*/
- #define AC4804_INVALID_PACKET_ERROR 0x3004 /*fatal error*/
- #define AC4804_INVALID_RX_BD_INDEX 0x3005 /*fatal error*/
- #define AC4804_INPUT_BUFFER_OVERRUN_ERROR 0x3007
- #define AC4804_INPUT_BUFFER_UNDERRUN_ERROR 0x3008
- #define AC4804_OUTPUT_BUFFER_OVERRUN_ERROR 0x3009
- #define SPURIOUS_DIAL_ENDED_EVENT_ERROR 0x300a
- #define SPURIOUS_CALLER_ID_ENDED_EVENT_ERROR 0x300b
- #define BAD_CALLER_ID_MESSAGE_ERROR 0x300c
- /*error codes - JitterBuffers*/
- #define LEFT_OVER_IN_CAS_BUFFER_ERROR 0x4001
- #define JITTER_BUF_INTERNAL_ERROR 0x4002 /*recoverable error*/
- #define JITTER_BUF_UNDER_RUN_ERROR 0x4003
- #define END_OF_JITTER_BUF 0x4004
- #define DSP_HDLC_NOT_READY 0x4005
- #define INVALID_JBS_MODE_VALUE 0x4006 /*recoverable error*/
- #define JITTER_BUFFER_STATUS_MISMATCH 0x4007 /*fatal error: indicates a customized chip missmatch */
- /*error codes - EvntHndl*/
- #define STILL_DIALING_ERROR 0x5001 /*recoverable error*/
- #define TOO_MANY_DIGITS_ERROR 0x5002
- #define SPURIOUS_EVENT_ERROR 0x5003
- #define EVENT_BUFFER_OVERRUN_ERROR 0x5004 /*recoverable error*/
- #define TOO_MANY_CAS_CHANGES_ERROR 0x5005
- #define INVALID_CALL_PROGRESS_TONE_ERROR 0x5006 /*recoverable error*/
- #define DIALING_WHILE_IDLE_ERROR 0x5007 /*recoverable error*/
- #define IDLE_WHILE_DIALING_ERROR 0x5008 /*recoverable error*/
- #define DIGIT_ON_TIME_ERROR 0x5009 /*recoverable error*/
- #define USER_DIAL_BUFFER_OVERRUN_ERROR 0x500a /*recoverable error*/
- #define UNEXPECTED_SIGNAL_INDEX_ERROR 0x500B /*recoverable error*/
- #define TELEPHONY_SIGNAL_WHILE_DTMF_OR_IBS 0x500C /*recoverable error*/
- /*error codes - Init*/
- #define SETUP_PARAMETER_INVALID_ERROR 0x6001 /*fatal error*/
- #define MEMORY_ALLOCATION_ERROR 0x6002 /*fatal error*/
- #define INVALID_FAX_MODEM_PARAMETERS_SETUP_SEQUENCE 0x6003 /*recoverable error*/
- /*error codes - RTCP*/
- #define INVALID_RTCP_SDES_PACKET_ERROR 0x7001
- #define INVALID_RTCP_PACKET_TYPE_ERROR 0x7002
- #define INVALID_RTCP_PACKET_ERROR 0x7003
- #define INVALID_RTCP_EXT_LEN_ERROR 0x7004
- #define INVALID_SET_RTCP_EXT_LEN_ERROR 0x7005
- /*error codes - VP General */
- #define VP_GET_TIME_STEMP_FAILED 0x8001 /*recoverable error*/
- /*error codes - Bit*/
- #define DSP_BIT_FAILED 0x10001 /*recoverable error*/
- #define BOARD_TEMP_BIT_FAILED 0x10002 /*recoverable error*/
- /*error codes - Main*/
- #define TIMER_INITIATION_ERROR 0x20001 /*fatal error*/
- #define SOCKET_CREATION_ERROR 0x20002 /*fatal error*/
- #define ARP_ERROR 0x20003 /*recoverable error*/
- #define DESTINATION_IP_ADDRESS_UNREACHABLE_ERROR 0x20004 /*recoverable error*/
- #define NI_TX_OVERFLOW_ERROR 0x20005
- #define PCI_PACKET_TOO_BIG_ERROR 0x20006 /*recoverable error*/
- #define RTP_PACKET_TOO_LARGE_ERROR 0x20007 /*recoverable error*/
- #define RTCP_PACKET_TOO_LARGE_ERROR 0x20008 /*recoverable error*/
- #define I_CACHE_LOCK_FAILED_ERROR 0x20009 /*recoverable error*/
- #define D_CACHE_LOCK_FAILED_ERROR 0x2000a /*recoverable error*/
- #define TEST_IP_CONNECTION_FAILED 0x2000b /*recoverable error*/
- #define ILLEGAL_TDM_BUS_TYPE_ERROR 0x2000c /*recoverable error*/
- #define PSOS_EVENT_MESSAGING_ERROR 0x2000d /*recoverable error*/
- #define TIMER_CONFIGURATION_ERROR 0x2000e /*recoverable error*/
- #define TP200_HW_CONFIGURATION_ERROR 0x2000f /*fatal error*/
- #define SC_BUS_ERROR 0x20010 /*fatal error*/
- #define MVIP_BUS_ERROR 0x20011 /*fatal error*/
- #define INVALID_TDM_BUS_SPEED_ERROR 0x20012 /*fatal error*/
- #define RX_OVERFLOW_ERROR 0x20013 /*info message*/
- #define RESTARTING_DSP_DUE_TO_CRASH 0x20014 /*recoverable error*/
- #define MGCP_CALL_AGENT_UNREACHABLE_ERROR 0x20015 /*recoverable error*/
- #define INVALID_MGCP_CALL_AGENT_ERROR 0x20016 /*fatal error*/
- #define MGCP_PACKET_TOO_LARGE_ERROR 0x20017 /*recoverable error*/
- #define LATE_IDLE_ACK_ERROR 0x20018 /*fatal error*/
- #define WATCHDOG_ERROR 0x20019 /*fatal error*/
- #define INVALID_NAT_CONFIGURATION_ERROR 0x2002a /*recoverable error*/
- #define TPNCP_PACKET_TOO_LARGE_ERROR 0x20020 /*recoverable error*/
- #define TPNCP_IP_UNREACHABLE_ERROR 0x20021 /*recoverable error*/
- #define CHANNEL_CLOSED_INTERNALLY_ERROR 0x2002b /*recoverable error*/
- #define TP400_HW_CONFIGURATION_ERROR 0x2002c /*fatal error*/
- #define PSOS_TASK_ERROR 0x2002d /*fatal error*/
- #define INVALID_PCM_TIMESLOT_ERROR 0x2002e /*fatal error*/
- #define AGG_IP_UNREACHABLE_ERROR 0x2002f /*recoverable error*/
- /* Guys - 0x20030 - it's free... */
- #define L2TP_PACKET_TOO_LARGE_ERROR 0x20031 /*recoverable error*/
- #define L2TP_PACKET_UNKNOWN_TYPE_ERROR 0x20032 /*recoverable error*/
- #define TPNCP_ATM_USER_TYPE_ERROR 0x20033 /*fatal error */
- #define HB_IP_UNREACHABLE_ERROR 0x20034 /*recoverable error*/
- #define TPNCP_VERSION_ERROR 0x20035 /*recoverabel error*/
- /*error codes - PCIIF*/
- #define PACKET_BD_RING_OVERRUN_ERROR 0x21001 /*recoverable error*/
- #define PACKET_BUFFER_OVERRUN_ERROR 0x21002 /*recoverable error*/
- #define STATUS_BD_RING_OVERRUN_ERROR 0x21003 /*recoverable error*/
- #define STATUS_BUFFER_OVERRUN_ERROR 0x21004 /*recoverable error*/
- #define VOICE_PROMPT_TOO_BIG_ERROR 0x21005 /*recoverable error*/
- #define OPEN_CHANNEL_CMD_FAILURE 0x21006 /*recoverable error*/
- #define CLOSE_CHANNEL_CMD_FAILURE 0x21007 /*recoverable error*/
- #define ACTIVATE_RTP_CMD_FAILURE 0x21008 /*recoverable error*/
- #define DIAL_CMD_FAILURE 0x21009 /*recoverable error*/
- #define ADD_VOICE_PROMPT_CMD_FAILURE 0x2100a /*recoverable error*/
- #define PLAY_VOICE_PROMPT_CMD_FAILURE 0x2100b /*recoverable error*/
- #define CHANGE_CHANNEL_CMD_FAILURE 0x2100c /*recoverable error*/
- #define UNKOWNEN_PCI_CMD_ERROR 0x2100d /*recoverable error*/
- #define RTCP_SET_EXT_FAILURE 0x2100e /*recoverable error*/
- #define ARP_WAITING_LIST_FULL_ERROR 0x2100f /*recoverable error*/
- #define ISDN_PLACE_CALL_CMD_ERROR 0x21010 /*recoverable error*/
- #define ISDN_ANSWER_CALL_CMD_ERROR 0x21011 /*recoverable error*/
- #define ISDN_RELEASE_CALL_CMD_ERROR 0x21012 /*recoverable error*/
- #define ISDN_INIT_CMD_ERROR 0x21013 /*recoverable error*/
- #define ISDN_SEND_ALERT_CMD_ERROR 0x21014 /*recoverable error*/
- #define ISDN_SEND_CALL_PROCEEDING_CMD_ERROR 0x21015 /*recoverable error*/
- #define ISDN_SEND_LINE_INFO_CMD_ERROR 0x21016 /*recoverable error*/
- #define PSTN_SEND_ALARM_CMD_ERROR 0x21017 /*recoverable error*/
- #define SEND_CAS_CMD_FAILURE 0x21018 /*recoverable error*/
- #define PSTN_ACTIVATE_LOOP_CMD_ERROR 0x21019 /*recoverable error*/
- #define SUM_ADDITIONAL_TS_CMD_FAILED 0x2101a /*recoverable error*/
- #define STOP_SUM_ADDITIONAL_TS_CMD_FAILED 0x2101b /*recoverable error*/
- #define CHANNEL_ADDITIONAL_TS_OCCUPIED 0x2101c /*recoverable error*/
- #define ISDN_DISCONNECT_CALL_CMD_ERROR 0x21020 /*recoverable error*/
- #define ISDN_RESTART_RQUEST_CMD_ERROR 0x21021 /*recoverable error*/
- #define TRUNK_CONFIGURATION_ERROR 0x21022 /*recoverable error*/
- #define FATAL_ERROR_SIMULATION 0x21023 /*Fatal Error*/
- #define CONFIGURATION_TABLE_DOWNLOAD_ERROR 0x21024 /*fatal error*/
- #define CONFIGURATION_TABLE_MALLOC_ERROR 0x21025 /*fatal error*/
- #define PLAY_CALL_PROGRESS_TONE_CMD_FAILURE 0x21026 /*recoverable error*/
- #define INVALID_PCI_CMD_SEQUENCE_ERROR 0x21027 /*recoverable error*/
- #define TEST_IP_CONECTION_CMD_FAILURE 0x21028 /*recoverable error*/
- #define GET_BOARD_STATUS_CMD_FAILURE 0x21029 /*recoverable error*/
- #define SET_TPNCP_SERVER_CMD_FAILURE 0x2102a /*recoverable error*/
- #define RESET_BOARD_CMD_FAILURE 0x2102b /*recoverable error*/
- #define STOP_DIAL_CMD_FAILURE 0x2102c /*recoverable error*/
- #define STOP_CALL_PROGRESS_TONE_CMD_FAILURE 0x2102d /*recoverable error*/
- #define STOP_SENDING_CAS_CMD_FAILURE 0x2102e /*recoverable error*/
- #define STOP_VOICE_PROMPT_CMD_FAILURE 0x2102f /*recoverable error*/
- #define TPNCP_MALLOC_ERROR 0x21030 /*fatal error*/
- /* the rest of the errors begin with 0x41000*/
- /*error codes - TDMSwitching*/
- #define MAKE_LOCAL_TO_H110_CONNECTION_ERROR 0x21031 /*recoverable error*/
- #define MAKE_H110_TO_LOCAL_CONNECTION_ERROR 0x21032 /*recoverable error*/
- #define MAKE_LOCAL_TO_LOCAL_CONNECTION_ERROR 0x21033 /*recoverable error*/
- #define BREAK_H110_TO_LOCAL_CONNECTION_ERROR 0x21034 /*recoverable error*/
- #define BREAK_LOCAL_TO_LOCAL_CONNECTION_ERROR 0x21035 /*recoverable error*/
- #define BREAK_LOCAL_TO_H110_CONNECTION_ERROR 0x21036 /*recoverable error*/
- #define BREAK_INPUT_BUS_ERROR 0x21037 /*recoverable error*/
- #define BREAK_OUTPUT_ERROR 0x21038 /*recoverable error*/
- #define MAKE_TDM_CON_CMD_FAILURE 0x21039 /*recoverable error*/
- #define BREAK_TDM_CON_CMD_FAILURE 0x21040 /*recoverable error*/
- #define TDM_QUERY_CON_CMD_FAILURE 0x21041 /*recoverable error*/
- #define TDM_QUERY_CONNECTION_ERROR 0x21042 /*recoverable error*/
- #define END_OF_TAG_LIST_ERROR 0x21043 /*recoverable error*/
- #define MAKE_CONNECTION_ERROR 0x21044 /*recoverable error*/
- #define BREAK_H110_TO_H110_CONNECTION_ERROR 0x21045 /*recoverable error*/
- #define TDM_SWITCHING_CID_CONVERT_ERROR 0x21046 /*recoverable error*/
- #define TDM_INJECT_PATTERN_CMD_FAILURE 0x21047 /*recoverable error*/
- #define TDM_SAMPLE_INPUT_CMD_FAILURE 0x21048 /*recoverable error*/
- #define SET_HOOK_CMD_FAILURE 0x21050 /*recoverable error*/
- #define PCI_SET_BOOTP_AND_RESET_BOARD_CMD_FAILURE 0x21051 /*recoverable error*/
- #define GENERATE_CALLER_ID_CMD_FAILURE 0x21052 /*recoverable error*/
- #define CLOSE_TPNCP_SERVER_CMD_FAILURE 0x21053 /*recoverable error*/
- #define PCI_LOAD_NEW_BOOT_CMD_FAILURE 0x21054 /*recoverable error*/
- #define STOP_CALLER_ID_CMD_FAILURE 0x21055 /*recoverable error*/
- /*error codes - PSTNPCIIF*/
- #define CAS_PLACE_CALL_CMD_ERROR 0x22000 /*recoverable error*/
- #define CAS_ANSWER_CALL_CMD_ERROR 0x22001 /*recoverable error*/
- #define CAS_RELEASE_CALL_CMD_ERROR 0x22002 /*recoverable error*/
- #define CAS_DISCONNECT_CALL_CMD_ERROR 0x22003 /*recoverable error*/
- #define CAS_INIT_CMD_ERROR 0x22004 /*recoverable error*/
- #define CAS_RESTART_RQUEST_CMD_ERROR 0x22005 /*recoverable error*/
- #define CAS_BLOCK_CHANNEL_RQUEST_CMD_ERROR 0x22006 /*recoverable error*/
- #define CAS_COUNTER_ERROR 0x22007 /*recoverable error*/
- #define CREATE_AUDIT_PACKETS_QUEUE_ERROR 0x22008 /*recoverable error*/
- #define CREATE_AUDIT_PACKETS_TASK_ERROR 0x22009 /*recoverable error*/
- #define START_AUDIT_PACKETS_TASK_ERROR 0x22010 /*recoverable error*/
- #define RECEIVE_AUDIT_PACKETS_ERROR 0x22011 /*recoverable error*/
- #define PSTN_QUERY_CALL_STATE_CMD_ERROR 0x22012 /*recoverable error*/
- #define PSTN_DBG_INFO 0x22013 /* info message */
- #define PSTN_SET_TRACE_LEVEL_ERROR 0x22014 /*recoverable error*/
- #define PSTN_MODIFY_E1T1_SPAN_ERROR 0x22015 /*recoverable error*/
- #define PSTN_CHANGE_CLOCK_SOURCE_ERROR 0x22016 /*recoverable error*/
- #define PSTN_QUERY_D_CH_STATE_CMD_ERROR 0x22017 /*recoverable error*/
- /*error codes PSTN library CAS and initialization */
- #define PSTN_DIFFERENT_PROTOCOLS_ERROR 0x23001 /* g recoverable error*/
- #define PSTN_DELETE_TASKS_ERROR 0x23002 /* g recoverable error*/
- #define PSTN_CREATE_TASKS_ERROR 0x23003 /* g recoverable error*/
- #define CAS_DIAL_METHOD_NOT_SUPPORTED_ERROR 0x23004 /* g recoverable error*/
- #define ISDN_STARTED_FAIL 0x23005 /* g recoverable error*/
- #define CAS_SIGNALING_TASK_ERROR 0x23006 /* g recoverable error*/
- #define PH_BG_Task_ERROR 0x23007 /* g recoverable error*/
- #define WRONG_D_CHANNEL_CONFIGURATION 0x23008 /* g recoverable error*/
- #define ILLEGAL_D_CHANNEL_CONFIG_FOR_PROTOCOL 0x23009 /* g recoverable error*/
- #define SEND_CAS_AUDIT_PACKET_ERROR 0x23010 /*recoverable error*/
- #define INCOMPATIBLE_CAS_TABLE_ERROR 0x23011 /*recoverable error*/
- #define LOOP_DETECTION_TASK_ERROR 0x23012 /* g recoverable error*/
- #define PSTN_WRONG_COMMAND_ERROR 0x23013 /*recoverable error*/
- #define PSTN_TRUNK_CONFIGURATION_ERROR 0x23013 /*recoverable error*/
- /*error codes PSTN library ISDN call control */
- #define ISDN_PLACE_IMP_CONNID_ERROR 0x23101 /* recoverable error*/
- #define ISDN_PLACE_IMP_TRUNK_ERROR 0x23102 /* recoverable error*/
- #define ISDN_PLACE_IMP_BCHANNEL_ERROR 0x23103 /* recoverable error*/
- #define ISDN_PLACE_IMP_STATE_ERROR 0x23104 /* recoverable error*/
- #define ISDN_ANSWER_IMP_STATE_ERROR 0x23105 /* recoverable error*/
- #define ISDN_RELEASE_IMP_STATE_ERROR 0x23106 /* recoverable error*/
- #define ISDN_ALERT_IMP_STATE_ERROR 0x23107 /* recoverable error*/
- #define ISDN_PROCEEDING_IMP_STATE_ERROR 0x23108 /* recoverable error*/
- #define ISDN_DISCONNECT_IMP_STATE_ERROR 0x23109 /* recoverable error*/
- #define ISDN_RCV_DISCONNECT_IMP_STATE_ERROR 0x23110 /* recoverable error*/
- #define ISDN_RCV_RELEASED_IMP_STATE_ERROR 0x23111 /* recoverable error*/
- #define ISDN_RCV_CONNECTACK_IMP_STATE_ERROR 0x23112 /* recoverable error*/
- #define ISDN_RCV_SETUP_IMP_STATE_ERROR 0x23113 /* recoverable error*/
- #define ISDN_RCV_ALERT_IMP_STATE_ERROR 0x23114 /* recoverable error*/
- #define ISDN_RCV_PROCEEDING_IMP_STATE_ERROR 0x23115 /* recoverable error*/
- #define ISDN_RCV_PROGRESS_IMP_STATE_ERROR 0x23116 /* recoverable error*/
- #define ISDN_RCV_PROCEEDING_PROGRESS_TYPE_ERROR 0x23117 /* recoverable error*/
- #define ISDN_OVLP_DIGIT_IN_IMP_STATE_ERROR 0x23118 /* recoverable error*/
- #define ISDN_PROGRESS_IMP_STATE_ERROR 0x23119 /* recoverable error*/
- #define ISDN_OVERLAP_IMP_STATE_ERROR 0x23120 /* recoverable error*/
- #define SEND_ISDN_AUDIT_PACKET_ERROR 0x23121 /*recoverable error*/
- #define ISDN_WRONG_NFAS_CONFIGURATION_ERROR 0x23122 /*recoverable error*/
- #define ISDN_VARNIANT_NOT_IN_RAMHEX_ERROR 0x23123 /*recoverable error*/
- #define ISDN_TERMINATION_SIDE_BOARDPARAMS_ERROR 0x23124 /*recoverable error*/
- #define ISDN_RAW_DATA_Q931_IN_ERROR 0x23125 /* recoverable error*/
- #define ISDN_FACILITY_IN_ERROR 0x23126 /* recoverable error*/
- #define ISDN_ERROR_IND 0x23127 /* recoverable error*/
- /*error codes PSTN library CAS call control */
- #define CAS_ADD_EVENT_OVERRUN_ERROR 0x23150 /* g recoverable error*/
- #define CAS_TIMER_LINKED_LIST_ERROR 0x23151 /* g recoverable error*/
- #define CAS_SIGNALING_EXPECTED_NUM_OF_DIGIT_ERROR 0x23152 /* g recoverable error*/
- #define CAS_SIGNALING_DIGIT_ERROR 0x23153 /* g recoverable error*/
- #define CAS_DIGIT_TOO_LONG_ERROR 0x23154 /* g recoverable error*/
- #define CAS_DIGIT_TOO_SHORT_ERROR 0x23155 /* g recoverable error*/
- #define CAS_DIAL_DTMF_ADDRESS_ERROR 0x23156 /* g recoverable error*/
- #define CAS_DIAL_MF_ADDRESS_ERROR 0x23157 /* g recoverable error*/
- #define CAS_RECEIVE_MF_FWD_ERROR 0x23158 /* g recoverable error*/
- #define CAS_RECEIVE_MF_BWD_ERROR 0x23159 /* g recoverable error*/
- #define CAS_SEND_MF_FWD_ADDRESS_ERROR 0x23160 /* g recoverable error*/
- #define CAS_SEND_SPECIFIC_MF_ADDRESS_ERROR 0x23161 /* g recoverable error*/
- #define CAS_SEND_MF_ADDRESS_GO_BACK_INDEX_ERROR 0x23162 /* g recoverable error*/
- #define CAS_SEND_MF_FWD_ANI_ERROR 0x23163 /* g recoverable error*/
- #define CAS_DIAL_MF_ERROR 0x23164 /* g recoverable error*/
- #define CAS_SEND_MF_SOURCE_CATEGORY_ERROR 0x23165 /* g recoverable error*/
- #define CAS_START_PLAY_PROGRESS_TONE_ERROR 0x23166 /* g recoverable error*/
- #define CAS_STOP_PLAY_PROGRESS_TONE_ERROR 0x23167 /* g recoverable error*/
- #define CAS_WRONG_PROCESS_PROGRESS_TONE 0x23168 /* g recoverable error*/
- #define CAS_SEND_CHANGE_CAS_DURING_DEST_ADDRESS 0x23169 /* g recoverable error*/
- #define CAS_DISCONNECT_CALL_ERROR 0x23170 /* g recoverable error*/
- #define CAS_ACCEPT_CALL_ERROR 0x23171 /* g recoverable error*/
- #define CAS_RELEASE_CALL_ERROR 0x23172 /* g recoverable error*/
- #define CAS_ANSWER_CALL_ERROR 0x23173 /* g recoverable error*/
- #define CAS_SEND_MF_TRANSFER_CAPABILITY_ERROR 0x23174 /* g recoverable error*/
- #define CAS_CHANGE_COLLECT_TPYE_ERROR 0x23175 /* g recoverable error*/
- #define CAS_USING_CID_ERROR 0x23176 /* g recoverable error*/
- #define CAS_INVALID_CHANNEL 0x23177
- #define CAS_RESTART_CHANNEL_ERROR 0x23178
- #define CAS_SEND_SS5_SIGNAL_ERROR 0x23179
- /*error codes PSTN library LoopBack control */
- #define PSTN_LOOPBACK_RELAYED_ERROR 0x23201 /* recoverable error*/
- #define PSTN_TRAP_FATAL_ERROR 0x23141 /* g recoverable error*/
- #define PSTN_ACCEPT_CALL_ERROR 0x23142 /* g recoverable error*/
- /*error codes PSTN library V5 call control */
- #define V5_PLACE_CALL_ERROR 0x23251 /* recoverable error */
- #define V5_ESTABLISH_ACK_ERROR 0x23252 /* recoverable error */
- #define V5_ALLOC_CO_ERROR 0x23253 /* recoverable error */
- #define V5_DE_ALLOC_CO_ERROR 0x23254 /* recoverable error */
- #define V5_SEND_SIGNAL_ERROR 0x23255 /* recoverable error */
- #define V5_SEND_RESOURCE_UNAVAILABLE_SIGNAL_ERROR 0x23256 /* recoverable error */
- #define V5_AN_FAULT_ERROR 0x23257 /* recoverable error */
- #define V5_GET_ALARM_STATUS_ERROR 0x23258 /* recoverable error */
- #define V5_GET_PORT_STATUS_ERROR 0x23259 /* recoverable error */
- #define V5_PORT_CONTROL_REQUEST_ERROR 0x23260 /* recoverable error */
- /*error codes - MGCPHal*/
- #define INVALID_MGCP_COMMAND_ERROR 0x24000 /*recoverable error*/
- #define MGCP_SOCKET_ERROR 0x24001
- /*error codes - MEGACOHal*/
- #define MEGACO_SOCKET_ERROR 0x24100
- #define INVALID_MEGACO_COMMAND_ERROR 0x24101
- /*error codes for fax relay*/
- #define EIGHT_SEC_TIMEOUT_BEFORE_DCN_ERROR 0x25001
- #define ILLEGAL_COMMAND_ERROR 0x25002
- #define RECEIVER_OUTPUT_OVERFLOW_ERROR 0x25004
- #define TRANSMITTER_DATA_ENDED_ERROR 0x25008
- #define TRANSMITTER_INPUT_OVERFLOW_ERROR 0x25010
- #define JITTER_TOO_BIG_ERROR 0x25020
- #define ILLEGAL_ERROR_CODE_ERROR 0x25040
- /* error codes for TFTP and configuration file loading */
- #define CONFIG_FILE_HANDLER_ERROR_FLOOR 0x26000
- #define TFTP_FAIL_TO_INITIALIZE_ERROR 0x26000 /*fatal error*/
- #define TFTP_FAIL_TO_OPEN_ERROR 0x26001 /*fatal error*/
- #define TFTP_FAIL_TO_READ_ERROR 0x26002 /*fatal error*/
- #define TFTP_FAIL_TO_CLOSE_ERROR 0x26003 /*fatal error*/
- #define TFTP_FAIL_TO_LOAD_CPT_FILE_ERROR 0x26004 /*fatal error*/
- #define TFTP_FAIL_TO_LOAD_CAS_FILE_ERROR 0x26005 /*fatal error*/
- #define TFTP_FAIL_TO_LOAD_VP_FILE_ERROR 0x26006 /*fatal error*/
- #define TFTP_FAIL_TO_LOAD_FXO_COEF_FILE_ERROR 0x26007 /*fatal error*/
- #define TFTP_FAIL_TO_LOAD_FXS_COEF_FILE_ERROR 0x26008 /*fatal error*/
- #define TFTP_FAIL_TO_LOAD_BOOT_FILE_ERROR 0x26009 /*Recoverable error*/
- #define TFTP_INVALID_PARAMETER_ERROR 0x26100 /*Recoverable error*/
- #define TFTP_INVALID_VALUE_ERROR 0x26200 /*Recoverable error*/
- /* error codes for FLASH Errors */
- #define FLASH_FAIL_TO_ERASE_ERROR 0x27000 /*fatal error*/
- #define FLASH_FAIL_TO_READ_ERROR 0x27001 /*fatal error*/
- #define FLASH_FAIL_TO_WRITE_ERROR 0x27002 /*fatal error*/
- #define FLASH_FAIL_TO_READ_CPT_FILE_ERROR 0x27003 /*fatal error*/
- #define FLASH_FAIL_TO_READ_VP_FILE_ERROR 0x27004 /*fatal error*/
- #define FLASH_FAIL_TO_READ_CAS_FILE_ERROR 0x27005 /*fatal error*/
- #define FLASH_TRYING_TO_WRITE_1MB_FLASH_ERROR 0x27006 /*fatal error*/
- #define FLASH_VERSION_MISMATCH_ERROR 0x27007 /*recoverable error*/
- #define FLASH_CMP_FILE_ERROR 0x27008 /*recoverable error*/
- /* error codes for EEPROM Errors */
- #define EEPROM_NO_BOOT_PARAMETERS_ERROR 0x28000 /*fatal error*/
- #define EEPROM_NO_SYSVARS_PARAMETERS_ERROR 0x28001 /*recoverable error*/
- #define EEPROM_NO_BSPVARS_PARAMETERS_ERROR 0x28002 /*recoverable error*/
- #define EEPROM_NO_APPVARS_PARAMETERS_ERROR 0x28003 /*recoverable error*/
- #define CONFIG_FILE_HANDLER_ERROR_ROOF 0x28FFF
- /* error codes for T8100 Errors */
- #define WRITE_TO_T8100_REGISTER_CMD_ERROR 0x29000 /* recoverable error*/
- #define READ_FROM_T8100_REGISTER_CMD_ERROR 0x29001 /* recoverable error*/
- /* ATM error codes */
- #define ATM_OPEN_VCC_CMD_FAILURE 0x33000 /*recoverable error*/
- #define ATM_MODIFY_VCC_CMD_FAILURE 0x33001 /*recoverable error*/
- #define ATM_CLOSE_VCC_CMD_FAILURE 0x33002 /*recoverable error*/
- #define ATM_TX_OVERRUN 0x33003 /* An over-run condtion occured in transmit */
- #define ATM_TX_OUT_OF_BUFFERS 0x33004
- #define ATM_INIT_FAILED 0x33005
- #define ACTIVATE_ATM_CMD_FAILURE 0x33006 /*recoverable error*/
- #define ATM_SEND_OAM_LP_FAILED 0x33007 /*recoverable error*/
- #define ATM_PHY_POLLING_FAILED 0x33008 /*recoverable error*/
- #define ATM_TX_AAL5_OVERRUN 0x33009 /*recoverable error*/
- #define ATM_CLOSE_VCC_FAILED 0x3300A /*recoverable error*/
- #define ATM_QUERY_VCC_STAT_FAILED 0x3300B /*recoverable error*/
- /* FileToIP/MCC error codes */
- #define FILE_PLAY_TO_IP_CMD_FAILURE 0x34000 /*recoverable error*/
- #define FILE_RECORD_FROM_IP_CMD_FAILURE 0x34001 /*recoverable error*/
- #define FILE_STOP_PLAY_TO_IP_CMD_FAILURE 0x34002 /*recoverable error*/
- #define FILE_STOP_RECORD_FROM_IP_CMD_FAILURE 0x34003 /*recoverable error*/
- #define FILE_PLAY_TO_IP_UNDERUN_ERROR 0x34004 /*recoverable error*/
- /* Conference error codes */
- #define OPEN_CONFERENCE_CMD_FAILURE 0x35000 /*recoverable error*/
- #define CLOSE_CONFERENCE_CMD_FAILURE 0x35001 /*recoverable error*/
- #define CHANGE_CONFERENCE_PARAMS_CMD_FAILURE 0x35002 /*recoverable error*/
- #define ADD_CONFERENCE_PARTICIPANT_CMD_FAILURE 0x35003 /*recoverable error*/
- #define DELETE_CONFERENCE_PARTICIPANT_CMD_FAILURE 0x35004 /*recoverable error*/
- #define DELETE_ALL_CONFERENCE_PARTICIPANTS_CMD_FAILURE 0x35005 /*recoverable error*/
- #define MUTE_CONFERENCE_PARTICIPANT_CMD_FAILURE 0x35006 /*recoverable error*/
- #define CHANGE_CONFERENCE_PARTICIPANT_PARAMS_CMD_FAILURE 0x35007 /*recoverable error*/
- #define MAX_MASTER_USERS_OVERFLOW_ERROR 0x35008 /*recoverable error*/
- #define COACH_CONFERENCE_PARTICIPANT_CMD_FAILURE 0x35009 /*recoverable error*/
- #define QUERY_CONFERENCE_INFO_CMD_FAILURE 0x3500A /*recoverable error*/
- #define QUERY_CONFERENCE_PARTICIPANT_INFO_CMD_FAILURE 0x3500B /*recoverable error*/
- #define QUERY_CONFERENCE_GENERAL_REPORT_CMD_FAILURE 0x3500C /*recoverable error*/
- /*error codes for fax relay*/
- #define EIGHT_SEC_TIMEOUT_BEFORE_DCN 0x0001
- #define ILLEGAL_COMMAND 0x0002
- #define RECEIVER_OUTPUT_OVERFLOW 0x0004
- #define TRANSMITTER_DATA_ENDED 0x0008
- #define TRANSMITTER_INPUT_OVERFLOW 0x0010
- #define JITTER_TOO_BIG 0x0020
- #define ILLEGAL_ERROR_MASK 0xFFC0
- #if FAX_TERMINATION_SUPPORTED
- /* IP_MEDIA Fax Termination */
- /* Error Base code for Fax Termination */
- #define T30_FAX_TERM_ERR_BASE 0x35100
- /* T30_FAX_TERM_ERR_ definitions */
- /***********************************************************
- General Errors - from P30_DEF.h
- ***********************************************************/
- #define T30_FAX_TERM_ERR_RESOURCE T30_FAX_TERM_ERR_BASE + 0 /* recoverable error*/
- #define T30_FAX_TERM_CONNECT_FAILED T30_FAX_TERM_ERR_BASE + 1 /* recoverable error*/
- #define T30_FAX_TERM_ALREADY_ACTIVE T30_FAX_TERM_ERR_BASE + 2 /* recoverable error*/
- #define T30_FAX_TERM_NOT_ACTIVE T30_FAX_TERM_ERR_BASE + 3 /* recoverable error*/
- #define T30_FAX_TERM_NEGOTIATION_FAILED T30_FAX_TERM_ERR_BASE + 4 /* recoverable error*/
- #define T30_FAX_TERM_NO_MORE_LICENSES T30_FAX_TERM_ERR_BASE + 5 /* recoverable error*/
- #define T30_FAX_TERM_NO_LICENSE T30_FAX_TERM_ERR_BASE + 6 /* recoverable error*/
- #define T30_FAX_TERM_LICENSE_ALREADY_ALLOC T30_FAX_TERM_ERR_BASE + 7 /* recoverable error*/
- #define T30_FAX_TERM_ERR_QUEUE_EMPTY T30_FAX_TERM_ERR_BASE + 8 /* recoverable error*/
- #define T30_FAX_TERM_ERR_FILE_EXISTS T30_FAX_TERM_ERR_BASE + 9 /* recoverable error*/
- #define T30_FAX_TERM_ERR_FILE_NOT_FOUND T30_FAX_TERM_ERR_BASE + 10 /* recoverable error*/
- #define T30_FAX_TERM_ERR_BAD_FILE_FORMAT T30_FAX_TERM_ERR_BASE + 11 /* recoverable error*/
- #define T30_FAX_TERM_ERR_INVALID_DOC T30_FAX_TERM_ERR_BASE + 12 /* recoverable error*/
- #define T30_FAX_TERM_ERR_QUEUE_TOO_LATE T30_FAX_TERM_ERR_BASE + 13 /* recoverable error*/
- #define T30_FAX_TERM_ERR_SESSION_FAILED T30_FAX_TERM_ERR_BASE + 14 /* recoverable error*/
- #define T30_FAX_TERM_ERR_UNSUPPORTED T30_FAX_TERM_ERR_BASE + 15 /* recoverable error*/
- #define T30_FAX_TERM_ERR_OPEN_QUEUE_FAILED T30_FAX_TERM_ERR_BASE + 16 /* recoverable error*/
- #define T30_FAX_TERM_ERR_BAD_PAGE_SIZE T30_FAX_TERM_ERR_BASE + 17 /* recoverable error*/
- #define T30_FAX_TERM_ERR_FILE_IO_FAILURE T30_FAX_TERM_ERR_BASE + 18 /* recoverable error*/
- #define T30_FAX_TERM_ERR_CONVERSION_REQUIRED T30_FAX_TERM_ERR_BASE + 19 /* recoverable error*/
- #define T30_FAX_TERM_ERR_CHECK_BAD_LINES T30_FAX_TERM_ERR_BASE + 20 /* recoverable error*/
- #define T30_FAX_TERM_ERR_CHECK_DIFF_ATTRIB T30_FAX_TERM_ERR_BASE + 21 /* recoverable error*/
- #define T30_FAX_TERM_ERR_NO_MORE_DOCUMENTS T30_FAX_TERM_ERR_BASE + 22 /* recoverable error*/
- #define T30_FAX_TERM_ERR_INCORRECT_LIBRARY_VER T30_FAX_TERM_ERR_BASE + 23 /* recoverable error*/
- #define T30_FAX_TERM_ERR_RATE_TOO_LOW T30_FAX_TERM_ERR_BASE + 24 /* recoverable error*/
- #define T30_FAX_TERM_ERR_QUEUE_OVERFLOW T30_FAX_TERM_ERR_BASE + 25 /* recoverable error*/
- #define T30_FAX_TERM_ERR_ALREADY_ATTACHED T30_FAX_TERM_ERR_BASE + 26 /* recoverable error*/
- #define T30_FAX_TERM_ERR_IMAGE_RECEIVE_FAIL T30_FAX_TERM_ERR_BASE + 27 /* recoverable error*/
- #define T30_FAX_TERM_ERR_OUT_OF_MEMORY T30_FAX_TERM_ERR_BASE + 28 /* recoverable error*/
- #define T30_FAX_TERM_ERR_INVALID_SESSION T30_FAX_TERM_ERR_BASE + 29 /* recoverable error*/
- #define T30_FAX_TERM_ERR_BAD_ARGUMENT T30_FAX_TERM_ERR_BASE + 30 /* recoverable error*/
- #define T30_FAX_TERM_ERR_NO_FAX_RESOURCES T30_FAX_TERM_ERR_BASE + 31 /* recoverable error*/
- #define T30_FAX_TERM_ERR_INVALID_QUEUE T30_FAX_TERM_ERR_BASE + 32 /* recoverable error*/
- #define T30_FAX_TERM_ERR_DOCUMENT_NOT_FOUND T30_FAX_TERM_ERR_BASE + 33 /* recoverable error*/
- #define T30_FAX_TERM_ERR_QUEUE_CORRUPTED T30_FAX_TERM_ERR_BASE + 34 /* recoverable error*/
- #define T30_FAX_TERM_ERR_INVALID_Q_TYPE T30_FAX_TERM_ERR_BASE + 35 /* recoverable error*/
- #define T30_FAX_TERM_ERR_FUNCTION_NOT_IMPLEMENTED T30_FAX_TERM_ERR_BASE + 36 /* recoverable error*/
- #define T30_FAX_TERM_ERR_INVALID_EVENT T30_FAX_TERM_ERR_BASE + 37 /* recoverable error*/
- #define T30_FAX_TERM_ERR_INVALID_CH_ID T30_FAX_TERM_ERR_BASE + 38 /* recoverable error*/
- #define T30_FAX_TERM_INFO_TRACE T30_FAX_TERM_ERR_BASE + 39 /* Info */
- /****************************************************************
- Security or resource related errors
- may need modification for some implemenations
- ****************************************************************/
- #define T30_FAX_TERM_ERR_CPCD_BUSY T30_FAX_TERM_ERR_BASE + 100 /* recoverable error*/
- #define T30_FAX_TERM_ERR_FAILURE T30_FAX_TERM_ERR_BASE + 101 /* recoverable error*/
- #define T30_FAX_TERM_ERR_NO_RESOURCE_ASSIGNED T30_FAX_TERM_ERR_BASE + 102 /* recoverable error*/
- #define T30_FAX_TERM_ERR_NO_CPCD_PORT T30_FAX_TERM_ERR_BASE + 103 /* recoverable error*/
- #define T30_FAX_TERM_ERR_NO_PASSWORD T30_FAX_TERM_ERR_BASE + 104 /* recoverable error*/
- #define T30_FAX_TERM_ERR_MONITOR_MISSING T30_FAX_TERM_ERR_BASE + 105 /* recoverable error*/
- #define T30_FAX_TERM_ERR_MSEC_WAS_ALLOCATED T30_FAX_TERM_ERR_BASE + 106 /* recoverable error*/
- /****************************************************************
- FAX TERMINATION Error Codes - command failure
- ****************************************************************/
- #define T30_FAX_TERMINATION_SEND_FAX_CMD_FAILURE T30_FAX_TERM_ERR_BASE + 150 /* recoverable error*/
- #define T30_FAX_TERMINATION_RECEIVE_FAX_CMD_FAILURE T30_FAX_TERM_ERR_BASE + 151 /* recoverable error*/
- #define T30_FAX_TERMINATION_ANSWER_FAX_POLL_CMD_FAILURE T30_FAX_TERM_ERR_BASE + 152 /* recoverable error*/
- #define T30_FAX_TERMINATION_CANCEL_FAX_CMD_FAILURE T30_FAX_TERM_ERR_BASE + 153 /* recoverable error*/
- #define T30_FAX_TERMINATION_GET_SESSION_STATUS_CMD_FAILURE T30_FAX_TERM_ERR_BASE + 154 /* recoverable error*/
- #define T30_FAX_TERMINATION_GET_DOC_STATUS_CMD_FAILURE T30_FAX_TERM_ERR_BASE + 155 /* recoverable error*/
- #define T30_FAX_TERMINATION_OPEN_FAX_SESSION_CMD_FAILURE T30_FAX_TERM_ERR_BASE + 156 /* recoverable error*/
- #define T30_FAX_TERMINATION_CLOSE_FAX_SESSION_CMD_FAILURE T30_FAX_TERM_ERR_BASE + 157 /* recoverable error*/
- #define T30_FAX_TERMINATION_SET_PARAMS_CMD_FAILURE T30_FAX_TERM_ERR_BASE + 158 /* recoverable error*/
- #define T30_FAX_TERMINATION_GET_PARAMS_CMD_FAILURE T30_FAX_TERM_ERR_BASE + 159 /* recoverable error*/
- #define T30_FAX_TERMINATION_ADD_DOC_CMD_FAILURE T30_FAX_TERM_ERR_BASE + 160 /* recoverable error*/
- #define T30_FAX_TERMINATION_RESET_QUEUE_CMD_FAILURE T30_FAX_TERM_ERR_BASE + 161 /* recoverable error*/
- #define T30_FAX_TERMINATION_INFO T30_FAX_TERM_ERR_BASE + 162 /* Info message */
- #define T30_FAX_TERMINATION_SET_RDR_DATA_CMD_FAILURE T30_FAX_TERM_ERR_BASE + 163 /* recoverable error*/
- /****************************************************************
- Conversion Errors
- ****************************************************************/
- #define T30_FAX_TERM_ERR_INVALID_HANDLE T30_FAX_TERM_ERR_BASE + 200 /* recoverable error*/
- #define T30_FAX_TERM_ERR_FONT_ERROR T30_FAX_TERM_ERR_BASE + 201 /* recoverable error*/
- #define T30_FAX_TERM_ERR_FONT_BMP_TOO_LARGE T30_FAX_TERM_ERR_BASE + 202 /* recoverable error*/
- #define T30_FAX_TERM_ERR_FONT_TOO_LARGE T30_FAX_TERM_ERR_BASE + 203 /* recoverable error*/
- #define T30_FAX_TERM_ERR_FONT_NOT_FOUND T30_FAX_TERM_ERR_BASE + 204 /* recoverable error*/
- #define T30_FAX_TERM_ERR_INVALID_PAGE_LENGTH T30_FAX_TERM_ERR_BASE + 205 /* recoverable error*/
- #define T30_FAX_TERM_ERR_INVALID_PAGE_TYPE T30_FAX_TERM_ERR_BASE + 206 /* recoverable error*/
- #define T30_FAX_TERM_ERR_INVALID_RESOLUTION T30_FAX_TERM_ERR_BASE + 207 /* recoverable error*/
- #define T30_FAX_TERM_ERR_INVALID_ENCODING T30_FAX_TERM_ERR_BASE + 208 /* recoverable error*/
- #define T30_FAX_TERM_ERR_CONVERT T30_FAX_TERM_ERR_BASE + 209 /* recoverable error*/
- #define T30_FAX_TERM_ERR_MACRO_BAD_COMMAND T30_FAX_TERM_ERR_BASE + 210 /* recoverable error*/
- #define T30_FAX_TERM_ERR_MACRO_BAD_SYNTAX T30_FAX_TERM_ERR_BASE + 211 /* recoverable error*/
- #endif /* FAX_TERMINATION_SUPPORTED */
- /*error codes for analog IF */
- #define ANALOG_IF_HOOK_CMD_FAILURE 0x36000 /*recoverable error*/
- #define ANALOG_IF_FLASH_CMD_FAILURE 0x36001 /*recoverable error*/
- #define SEND_QUERY_STATUS_CMD_FAILURE 0x36002 /*recoverable error*/
- #define SEND_LOOP_CMD_FAILURE 0x36003 /*recoverable error*/
- #define SEND_REGISTER_CMD_FAILURE 0x36004 /*recoverable error*/
- #define SEND_MSG_WAIT_CMD_FAILURE 0x36005 /*recoverable error*/
- #define METERING_TONE_CMD_FAILURE 0x36006 /*recoverable error*/
- #define REVERSAL_POLARITY_CMD_FAILURE 0x36007 /*recoverable error*/
- #define FORCE_DISCCONECT_CMD_FAILURE 0x36008 /*recoverable error*/
- #define GENERATE_FLASH_CMD_FAILURE 0x36009 /*recoverable error*/
- #define ANIC_INIT_FAILED 0x3600a /*fatel error*/
- #define GEN_DIST_RING_CMD_FAILURE 0x3600b /*recoverable error*/
- #define DUSLIC_INIT_FAILED 0x3600c /*fatel error*/
- #define RING_WHILE_OFF_HOOK 0x3600d /*recoverable error*/
- #define DUSLIC_CHECKSUM_READ_ERROR 0x3600e /*recoverable error*/
- #define GEN_DIST_RING_CALLER_ID_CMD_FAILURE 0x3600f /*recoverable error*/
- #define ACTIVE_HIGH_LOW_INFO 0x36010 /*infomsg*/
- #define SPI_CONNECTION_ERROR 0x36011 /*fatel error*/
- /* Voice Packetizer Recorder error codes */
- #define RECORDER_SEND_TO_IO_FAILED 0x37000 /*recoverable error*/
- #define RECORDER_GET_NEW_FRAME_PTR_FAILED 0x37001 /*recoverable error*/
- #define RECORDER_DSP_RX_HANDLER_ERROR 0x37003 /*recoverable error*/
- #define RECORDER_DSP_TX_HANDLER_ERROR 0x37004 /*recoverable error*/
- #define RECORDER_RTP_HANDLER_ERROR 0x37005 /*recoverable error*/
- #define RECORDER_EVENT_HANDLER_ERROR 0x37006 /*recoverable error*/
- #define RECORDER_MALLOC_ERROR 0x37007 /*recoverable error*/
- #define RECORDER_BUFFER_OVERRUN_ERROR 0x37008 /*recoverable error*/
- #define RECORDER_INIT_PARAMS_FAILED 0x37009 /*recoverable error*/
- #define RECORDER_CONTROL_HANDLER_FAILED 0x3700a /*recoverable error*/
- #define RECORDER_PAYLOAD_LENGTH_TOO_BIG 0x3700b /*recoverable error*/
- #define RECORDER_INVALID_BUFFER_SIZE 0x3700c /*recoverable error*/
- /* SCTP */
- #define SCTP_BUFFER_ALLREADY_FREED 0x38000 /*recoverable error*/
- #define SCTP_BUFFER_FULL 0x38001 /*recoverable error*/
- #define SCTP_INVALID_BUFFER_ID 0x38002 /* info error */
- #define SCTP_OPEN_PORT_FAILED 0X38003 /*recoverable error*/
- #define SCTP_SETPROT_FAILED 0x38004 /*recoverable error*/
- #define SCTP_INIT_FAILED 0x38005 /*recoverable error*/
- #define SCTP_SEND_FAILED 0x38006 /*recoverable error*/
- #define SCTP_ABORT_FAILED 0x38007 /*recoverable error*/
- #define SCTP_BIND_FAILED 0x38008 /*recoverable error*/
- #define SCTP_INVALID_EVENT 0x38009 /*recoverable error*/
- /* LAN Query */
- #define PCI_LAN_QUERY_CMD_FAILURE 0x39000
- /*Error Message Counter*/
- #define TOO_MANY_CHANNALS_WITH_ERROR 0x3A000 /*recoverable error*/
- #define ERROR_MESSAGE_TOO_LONG 0x3A001 /*recoverable error*/
- #define ERROR_MESSAGE_STRING 0x3A002 /*recoverable error*/
- /* Mediation error codes */
- #define MEDIEATION_INVALID_END_POINT 0x40000 /* info error */
- #define MEDIEATION_INVALID_USER_END_POINT 0x40001 /*recoverable error*/
- /* http */
- #define HTTP_FAIL_TO_LOAD_CPT_FILE_ERROR 0x40000 /*fatal error*/
- #define HTTP_FAIL_TO_LOAD_CAS_FILE_ERROR 0x40001 /*fatal error*/
- #define HTTP_FAIL_TO_LOAD_VP_FILE_ERROR 0x40002 /*fatal error*/
- #define HTTP_FAIL_TO_LOAD_FXO_COEF_FILE_ERROR 0x40003 /*fatal error*/
- #define HTTP_FAIL_TO_LOAD_FXS_COEF_FILE_ERROR 0x40004 /*fatal error*/
- #define HTTP_FAIL_TO_LOAD_BOOT_FILE_ERROR 0x40005 /*Recoverable error*/
- #define HTTP_FAIL_TO_READ_CPT_FILE_ERROR 0x40006
- #define HTTP_FAIL_TO_READ_CAS_FILE_ERROR 0x40007 /*fatal error*/
- #define HTTP_FAIL_TO_READ_VP_FILE_ERROR 0x40008 /*fatal error*/
- #define HTTP_FAIL_TO_READ_FXO_COEF_FILE_ERROR 0x40009 /*fatal error*/
- #define HTTP_FAIL_TO_READ_FXS_COEF_FILE_ERROR 0x4000A /*fatal error*/
- #define HTTP_FAIL_TO_READ_BOOT_FILE_ERROR 0x4000B /*Recoverable error*/
- #define HTTP_FAIL_TO_READ_INI_FILE_ERROR 0x4000C /*Recoverable error*/
- /*error codes - PCIIF -- Continue ...*/
- #define DELETE_VOICEPROMPT_CMD_FAIL 0x41000 /*recoverable error*/
- #define CHANGE_PLAYBACK_PARAMS_CMD_FAILURE 0x41001 /*recoverable error*/
- /***********************************************************************
- Error-handler type declerations :
- ************************************************************************/
- #ifndef T_ERROR_MSG_TYPE
- #define T_ERROR_MSG_TYPE
- enum TErrorMsgType
- {
- FatalErrorMsg,
- RecoverableErrorMsg,
- InfoMsg,
- DbgMsg
- };
- #endif
- #ifndef T_ERROR_MSG_SOURCE
- #define T_ERROR_MSG_SOURCE
- enum acTErrorMsgSourceModule
- {
- acUnknownOrigin=0,
- acDSPOrigin=1,
- acDSPFirmwareOrigin=2,
- acInvalidUserInputOrigin=3,
- acASN1EncDecOrigin=4,
- acVoicePacketizerOrigin=5,
- acNetworkIFOrigin=6,
- acRTOSOrigin=7,
- acTDMBusIFOrigin=8,
- acPCIIFOrigin=9,
- acRTPDecOrigin=10,
- acMissingHWOrigin=11,
- acOmnitelStack=12,
- acPSTNCAS=13,
- acPSTNAPLI=14,
- acFaxRelayOrigin=15,
- acISDNAPI=16,
- acVoiceAtomizerOrigin=17,
- acPlayFileToIPOrigin=18,
- acVpRecorderOrigin=19,
- acFaxTerminationOrigin=21,
- acV5API=22,
- acSCTPOrigin=23,
- acSAALCP=24,
- acSAALAplic=25,
- acMediationOrigin=26
- };
- #endif
- /***********************************************************************
- General Declerations:
- ************************************************************************/
- struct TExtendedVoiceParams
- {
- char SITDetectionEnable;
- };
- typedef enum
- {
- STATUS_OK = 0,
- STATUS_ERROR = (-1)
- } RETURN_STATUS;
- typedef enum
- {
- CAS_DETECTION_ENABLE = 0,
- CAS_DETECTION_DISABLE = 1
- } CAS_DETECTION;
- typedef enum
- {
- CAS_GENERATION_SOURCE_USER = 0,
- CAS_GENERATION_SOURCE_NETWORK = 1
- } CASGenerationSource;
- typedef enum
- {
- FAX_RELAY_T38_SUPPORTED=0,
- RECEIVED_FAX_PAGES_NUMBER=1,
- FAX_RELAY_CALLING_SIDE=2,
- FAX_RELAY_ANSWERING_SIDE=3
- }FaxRelayInfoQueryIndex;
- typedef enum
- {
- NOT_REQUIRED = 0,
- REQUIRED = 1
- } CMD_CH_SEND;
- /* value for BoardInitializationMethod */
- enum {
- INITIALIZE_NOT_BY_PCI,
- INITIALIZE_BY_PCI
- };
- /* value for setting the TPNCP transport layer */
- enum acTpncpTransportLayer
- {
- TCP_TRANSPORT,
- UDP_TRANSPORT,
- ATM_TRANSPORT
- };
- /********************************************************
- Fax Relay Definitions :
- *********************************************************/
- struct TFaxRelayErrorReport
- {
- unsigned short FlowError;
- unsigned short FlowState;
- unsigned short BadCmd1;
- unsigned short BadCmd2;
- };
- /********************************************************
- Call Progress and User Defined Tones Definitions :
- *********************************************************/
- typedef struct
- {
- unsigned int TotalEnergyThreshold;
- unsigned int LowEnergyThreshold;
- unsigned int HighEnergyThreshold;
- unsigned int Twist;
- } acTThresholds;
- typedef struct
- {
- unsigned int NumberOfFrequencies;
- unsigned int NumberOfSignals;
- } acTFreqAndSigQuantity;
- typedef struct
- {
- unsigned int FrequencyLsb;
- unsigned int FrequencyMsb;
- } acTExtendedSignalingFrequency;
- enum acTCallProgressToneType
- {
- acCallProgressDialTone = 1,
- acCallProgressRingingTone = 2,
- acCallProgressBusyTone = 3,
- acCallProgressCongestionTone = 4,
- acCallProgressSpecialInfoTone = 5,
- acCallProgressWarningTone = 6,
- acCallProgressReorderTone = 7,
- acCallProgressConfirmationTone = 8,
- acCallProgressWaitingTone = 9, /* don't cancel the voice stream */
- acUserDefinedCo1Tone = 10,
- acUserDefinedCo2Tone = 11,
- acUserDefinedOldMilliwattTone = 12,
- acUserDefinedNewMilliwattTone = 13,
- acUserDefinedMessageWaitingIndicator = 14,
- acUserDefinedStutterDialTone = 15,
- acUserDefinedStutterOffHookWarningTone = 16,
- acCallProgressWaitingTone1 = 17, /* don't cancel the voice stream */
- acCallProgressComfortTone = 18,
- acCallProgressNAKTone = 19, /* "negative indication tone" */
- acCallProgressVacantNumberTone = 20,
- acCallProgressSpecialConditionTone = 21,
- acCallProgressDialTone2 = 22, /* "second dial tone" (Recall dial tone */
- acCallProgressOnHoldTone = 23,
- acCallProgressCallTransferDialTone = 24,
- acCallProgressCallForwardTone = 25,
- acCallProgressCreditCardServiceTone = 26,
- acCallProgressSpecialRecallDialTone = 27,
- acCallProgressAlertingTone = 28,
- acCallProgressNetworkCongestionTone = 29,
- acCallProgressWaitingTone2 = 30, /* don't cancel the voice stream */
- acCallProgressWaitingTone3 = 31, /* don't cancel the voice stream */
- acCallProgressWaitingTone4 = 32 /* don't cancel the voice stream */
- };
- typedef struct
- {
- enum acTCallProgressToneType ToneType;
- unsigned int LowFrequencyIndex;
- unsigned int HighFrequencyIndex;
- unsigned int FirstTOnLsb;
- unsigned int FirstTOnMsb;
- unsigned int FirstTOffLsb;
- unsigned int FirstTOffMsb;
- unsigned int SecondTOnLsb;
- unsigned int SecondTOnMsb;
- unsigned int SecondTOffLsb;
- unsigned int SecondTOffMsb;
- } acTCallProgressSignalAttributes;
- typedef struct
- {
- unsigned int LowFrequencyIndex;
- unsigned int HighFrequencyIndex;
- } acTUserDefinedTonesAttributes;
- typedef struct
- {
- unsigned int LowFrequencyLevel;
- unsigned int HighFrequencyLevel;
- } acTExtendedSignalingSignalLevels;
- typedef struct
- {
- acTThresholds Thresholds;
- acTFreqAndSigQuantity FreqAndSigQuantity;
- acTExtendedSignalingFrequency ExtendedSignalingFrequency[MAX_CALL_PROGRESS_FREQUENCIES];
- acTUserDefinedTonesAttributes UserDefinedTonesAttributes[MAX_CALL_PROGRESS_SIGNALS];
- acTExtendedSignalingSignalLevels ExtendedSignalingSignalLevels[MAX_CALL_PROGRESS_SIGNALS];
- } acTUserDefinedTonesDB;
- typedef struct
- {
- acTThresholds Thresholds;
- acTFreqAndSigQuantity FreqAndSigQuantity;
- acTExtendedSignalingFrequency ExtendedSignalingFrequency[MAX_CALL_PROGRESS_FREQUENCIES];
- acTCallProgressSignalAttributes CallProgressSignalAttributes[MAX_CALL_PROGRESS_SIGNALS];
- acTExtendedSignalingSignalLevels ExtendedSignalingSignalLevels[MAX_CALL_PROGRESS_FREQUENCIES];
- } acTCallProgressDB;
- /***********************************************************************
- Common Types Declerations:
- ************************************************************************/
- enum SignalIndex
- {
- FREQ_1100_CNG = 0, /*CNG*/
- /*SIGNAL_V21 = 3, /*V21 (1650) -Not Supported by the DSP*/
- FREQ_2100 = 7, /*FAX/V21/V22/V23/V32 */
- FREQ_2002_1375 = 10, /*V8bis(V90/V34) */
- FREQ_1200 = 11, /*Caller Id */
- FREQ_2100_AM = 12, /*V34 FAX/V34/V90 */
- FREQ_2100_PHASE_REVERSALS =13, /*V34 FAX/V32/V34/V90 */
- DCN = 14, /*V21 Disconnect Fax Frame */
- PREAMBLE = 15, /*Fax */
- V8_V34 = 18 /*V8 - Fax V.34 Answering side*/
- };
- enum CurrentState
- {
- STATE_VOICE = 0,
- STATE_FAX = 1,
- STATE_MODEM = 2,
- STATE_MODEM_ROCK_WELL = 3,
- /*STATE_CALLER_ID = 4 -Not Supported by the DSP*/
- STATE_FAX_OR_MODEM = 4
- };
- /* Mediation end points enumarator */
- typedef enum
- {
- TDM_END_POINT=0,
- IP_END_POINT=1,
- ATM_END_POINT=2
- } TEndPoint;
- /* The basic frame time (for PCM/ADPCM only) to which TxM relates */
- enum TSampleBasedCodersRTPPacketInterval
- {
- PACKET_INTERVAL_DEFAULT=0,
- PACKET_INTERVAL_5_MSEC=1,
- PACKET_INTERVAL_10_MSEC=2,
- PACKET_INTERVAL_20_MSEC=3
- };
- /* Network codes */
- typedef enum
- {
- VoIP_BOARD = 0,
- RAS_BOARD = 1
- } acBoardFuncType;
- /* HR! Changed Network types to Channel types */
- typedef enum
- {
- VoIP_CHANNEL=0,
- VoATM_CHANNEL=1,
- RAS_CHANNEL=2,
- VoIPOverATM_CHANNEL=3,
- SS7_CHANNEL=4
- } acTNetwork;
- typedef enum
- {
- FILE2NI_NONE = 0x0,
- FILE2NI_PLAY = 0x1,
- FILE2NI_RECORD = 0x2
- } acTFile2NI;
- enum TUserDialing /* bit wise */
- {
- USER_DIALING_NONE = 0x0,
- USER_DIALING_DIAL = 0x1,
- USER_DIALING_CALL_PROGRESS = 0x2,
- USER_DIALING_RX_VOICE_PROMPT = 0x4,
- USER_DIALING_TX_VOICE_PROMPT = 0x8,
- USER_DIALING_CALLER_ID = 0x10
- };
- typedef enum acTTelephonySignalCode /*AC37691 -the signal code should match RFC2833 specifications*/
- {
- DTMF_EVENT_0 = 0,
- DTMF_EVENT_1 = 1,
- DTMF_EVENT_2 = 2,
- DTMF_EVENT_3 = 3,
- DTMF_EVENT_4 = 4 ,
- DTMF_EVENT_5 = 5,
- DTMF_EVENT_6 = 6,
- DTMF_EVENT_7 = 7,
- DTMF_EVENT_8 = 8,
- DTMF_EVENT_9 = 9,
- DTMF_EVENT_10 = 10,
- DTMF_EVENT_11 = 11,
- DTMF_EVENT_A = 12,
- DTMF_EVENT_B = 13,
- DTMF_EVENT_C = 14,
- DTMF_EVENT_D = 15,
- ANALOG_HOOKFLASH = 16,
- ANALOG_NONE = 17 /* code 17 is not part of RFC2833 */
- } acTTelephonySignalCode;
- enum TFaxRate
- {
- Rate2400bps=0,
- Rate4800bps=1,
- Rate7200bps=2,
- Rate9600bps=3,
- Rate12000bps=4,
- Rate14400bps=5
- };
- enum TFaxProtocol
- {
- CompFRF11=0, /*Fully backward compatible FRF.11 mode*/
- NonCompFRF11=1,/*Non backward compatible FRF.11 mode*/
- T38TCP=2, /*T.38 TCP mode*/
- T38UDP=3 /*T.38 UDP mode*/
- };
- enum TFaxMode
- {
- NotFax=0,
- CallingFax=1,
- AnsweringFax=2,
- FaxBypass=3,
- ModemBypass=4,
- ModemRelay=5,
- UnknownFaxSide=6 /*Incase of Answering Fax with no CED,we can't be sure about the Calling or The Answering Side*/
- };
- enum TTCFMode
- {
- TransferredTCF=0,
- LocalTCF=1
- };
- enum TIFPTransport
- {
- IFP_UDP=0,
- IFP_TCP=1
- };
- enum TFaxDetectionEventOrigin
- {
- NO_FAX_DETECTED = -1,
- FAX_DETECTION_ORIGIN_CNG = 0,
- FAX_DETECTION_ORIGIN_V21_PREAMBLE = 1,
- FAX_DETECTION_ORIGIN_V8_V34 = 2,
- FAX_DETECTION_ORIGIN_FROM_NETWORK = 3
- };
- enum veNAnswerToneDetectionOrigin
- {
- NO_ANSWER_TONE_DETECTED = -1,
- ANSWER_TONE_ORIGIN_CED = 0 , /*2100 HZ*/
- ANSWER_TONE_ORIGIN_ANS_AM = 1
- };
- /*SID*/
- typedef enum
- {
- SID_NUM_NO_COEFF = 0,
- SID_NUM_4_COEFF = 4,
- SID_NUM_6_COEFF = 6,
- SID_NUM_8_COEFF = 8,
- SID_NUM_10_COEFF = 10
- } TSIDNumberCoefficients;
- /* IP-MEDIA Fax Termination*/
- enum TFaxEngineMode
- {
- Disabled,
- Sending,
- Receiving,
- Polling
- };
- enum TToneDirection
- {
- GENERATE_TO_LOCAL_SIDE=0,
- GENERATE_TO_NETWORK_SIDE=1
- };
- enum TIBSDirection
- {
- DETECT_FROM_LOCAL_SIDE=0,
- DETECT_FROM_NETWORK_SIDE=1,
- BOTH_SIDE_DETECTION
- };
- enum TCallerIDMessageTypes
- {
- CALLER_ID_SDMF_CND = 0x04,
- CALLER_ID_SDMF_VMWI = 0x06,
- CALLER_ID_MDMF_CALL_SETUP = 0x80,
- CALLER_ID_MDMF_VMWI = 0x82,
- CALLER_ID_MDMF_PRE_COMM_DATA = 0x40
- };
- enum TCallerIDDataTypes
- {
- CALLID_NO_TYPE,
- CALLID_MSG_TYPE,
- CALLID_MSG_LENGTH,
- CALLID_CHECKSUM_VALID,
- CALLID_CHECKSUM_INVALID,
- CALLID_PARAMETER_TYPE,
- CALLID_PARAMETER_LENGTH,
- CALLID_TIME_STRING,
- CALLID_DATE_STRING,
- CALLID_NUMBER_STRING,
- CALLID_VMWI,
- CALLID_NAME_STRING,
- CALLID_NUMBER_ABSENCE,
- CALLID_NAME_ABSENCE,
- CALLID_INVALID_TYPE,
- CALLID_RECEIVE_END,
- CALLID_CALLED_ID,
- CALLID_COMPLMNTRY_CALLING,
- CALLID_CALL_TYPE,
- CALLID_FIRST_CALLED,
- CALLID_NETWORK_STATUS,
- CALLID_FORWARD_CALL,
- CALLID_CALLING_USER,
- CALLID_REDIRECTING_NUM,
- CALLID_EXTENSION_NET,
- CALLID_COUNTRY_CODE,
- CALLID_NETWORK_CODE,
- CALLID_VERSION,
- CALLID_ORIGIN_NUM_EXPAN,
- CALLID_HEAD_FOOT
- };
- enum TCallerIDIndicatorStatus
- {
- CALLER_ID_MDMF_VMWI_OFF = 0x00,
- CALLER_ID_SDMF_VMWI_OFF = 'o',
- CALLER_ID_MDMF_VMWI_ON = 0xFF,
- CALLER_ID_SDMF_VMWI_ON = 'B'
- };
- enum TCallerIDAvailReason
- {
- CALLID_AVAILABLE,
- CALLID_PRIVATE = 'P',
- CALLID_OUT_OF_RANGE = 'O'
- };
- enum TCallerIDAvailReasonNTT
- {
- CALLID_UserDenial = 'P',
- CALLID_UnableProvide = 'O',
- CALLID_PublicPhone = 'C',
- CALLID_ServiceConflict = 'S'
- };
- /* Used to control geenration of Caller ID */
- enum TCallerIDProgressState
- {
- CALLER_ID_INACTIVE,
- CALLER_ID_STARTED,
- CALLER_ID_PROGRESS = 4,
- CALLER_ID_RELAY_RX,
- CALLER_ID_ENDED
- };
- enum TCallerIDParameterTypes
- {
- CALLER_ID_DATE_AND_TIME = 0x01,
- CALLER_ID_DIR_NUM = 0x02,
- CALLER_ID_CALLED_LINE_IDENTITY = 0X03,
- CALLER_ID_REASON_FOR_DN = 0x04,
- CALLER_ID_NAME = 0x07,
- CALLER_ID_REASON_FOR_NM = 0x08,
- CALLER_ID_VMWI_STATUS = 0x0B,
- CALLER_ID_COMPLEMENTARY_CALLING_LINE_IDENTITY = 0x10,
- CALLER_ID_CALL_TYPE = 0x11,
- CALLER_ID_FIRST_CALLED_LINE_IDENTITY = 0x12,
- CALLER_ID_NETWORK_SYSTEM_MESAAGE_SATUS = 0x13,
- CALLER_ID_TYPE_OF_FORWARDED_CALL = 0x15,
- CALLER_ID_TYPE_OF_CALLING_USER = 0x16,
- CALLER_ID_ORIGINATING_NUMBER_EXPANTION = 0x21,
- CALLER_ID_REDIRECTING_NUMBER = 0x1A,
- CALLER_ID_CHARGE = 0x20,
- CALLER_ID_EXTENTION_FOR_NETWORK_OPERATOR_USE = 0xE0
- };
- enum TCallerIDCallTypeParam
- {
- VoiceCall = 0,
- CLIRingBack = 1,
- CallingName = 2,
- CallingNameDelivery = 3,
- MessageWaiting = 0x81
- };
- enum TCallerIDTypeOfForwardCall
- {
- Unavailble = 0,
- Busy = 1,
- NoReply = 2,
- Unconditional = 3,
- DeflectedAfetrAlerting = 4,
- DeflectedImmediate = 5,
- InabilityReachMobile = 6
- };
- enum TCallerIDCallingUserParam
- {
- Unkown = 0,
- VPN = 3,
- Mobile = 4,
- MobileAndVPN = 5,
- OrdinarySubscriber = 0x0A,
- PrioritySubscriber = 0x0B,
- DataCall = 0x0C,
- TestCall = 0x0D,
- Payphone = 0x0F
- };
- struct Extention_Net
- {
- char FirstDigitCountryCode ;
- char SecondDigitCountryCode ;
- char ThirdDigitCountryCode ;
- char NetworkCode[4];
- char Version[3];
- };
- enum TEventType
- {
- EV_NONE=0,
- EV_ERROR=1,
- EV_DIGIT=2,
- EV_TONE=3,
- EV_END_DIAL=4,
- EV_END_TONE=5,
- EV_END_VOICE_PROMPT=6,
- EV_DEBUG=7,
- EV_RTCP=8,
- EV_RTCP_CLOSE = 42,
- EV_DETECT_FAX=10,
- EV_END_FAX=11,
- EV_DETECT_MODEM=12,
- EV_END_MODEM=13,
- EV_ON_HOOK=14,
- EV_OFF_HOOK=15,
- EV_DETECT_FAX_PAGE=16,
- EV_CAS_CHANGED=17,
- EV_DETECT_CALL_PROGRESS_TONE=18,
- EV_END_CALL_PROGRESS_TONE=19,
- EV_BOARD_STARTED=20,
- EV_RTCP_EXT_RECEIVED=21,
- EV_DESTINATION_IP_FOUND=22,
- EV_DSP_SOFTWARE_REPLACEMENT_DONE=23,
- EV_DSP_RESTARTED=24,
- EV_DETECT_ANSWER_TONE=25,
- EV_DETECT_MODEM_RETRAIN=26,
- EV_END_MODEM_RETRAIN=27,
- EV_END_SENDING_CAS=28,
- EV_END_PLAYING_CALL_PROGRESS_TONE=29,
- EV_END_BIT=32,
- EV_KEEP_ALIVE=33,
- EV_DETECT_CALLER_ID=34,
- EV_FLASH_HOOK=35,
- EV_FAX_MODULATION_TYPE_CHANGE=36,
- EV_PING_DESTINATION_IP_FOUND=37,
- EV_LONG_DIGIT=41,
- EV_BROKEN_CONNECTION = 38,
- EV_CONNECTION_REESTABLISHED=39,
- EV_CALLER_ID_END=40,
- EV_GET_RESPONSE=43,
- EV_COMMAND_ACK=45,
- EV_SIT_DETECTED=46,
- EV_TELEPHONY_SIGNAL=47,
- EV_TELEPHONY_SIGNAL_END=48,
- /* IPMedia */
- EV_START_OF_SPEECH=50,
- EV_END_OF_SPEECH=51,
- EV_STOP_PLAY_ON_BARGE_IN=52,
- EV_SIGNAL_BELOW_THRESHOLD = 53,
- EV_SIGNAL_ABOVE_THRESHOLD = 54,
- EV_PATTERN_DETECTED = 55,
- EV_PATTERN_STOPPED = 56,
- EV_TFO_SYNC_PATERN_DETECTED = 57,
- EV_PLAYBACK_ENDED = 58,
- /* PSTN */
- EV_PSTN_INTERNAL_ERROR=64,
- EV_PSTN_CALL_CONNECTED=65,
- EV_PSTN_INCOMING_CALL_DETECTED=66,
- EV_PSTN_CALL_DISCONNECTED=67,
- EV_PSTN_CALL_RELEASED=68,
- EV_PSTN_REMOTE_ALERTING=69,
- EV_PSTN_STARTED=70,
- EV_ISDN_PROGRESS_INDICATION=72, /* ISDN only */
- EV_PSTN_PROCEEDING_INDICATION=73,
- EV_PSTN_ALARM=74,
- EV_RESERVED=75,
- EV_PSTN_LINE_INFO=76,
- EV_PSTN_LOOP_INFO=77,
- EV_PSTN_RESTART_CONFIRM=78,
- EV_ISDN_SERVICE_CHANGE=79, /* ISDN only */
- EV_PSTN_ERROR=80,
- EV_PSTN_WAITING_FOR_BG=81,
- EV_ISDN_DCHANNEL_STATUS=82,
- EV_ISDN_OVLP_DIGIT_IN=83,
- EV_ISDN_SETUP_ACK_IN=84,
- EV_PSTN_CALL_INFORMATION=85,
- EV_PSTN_DBG_INFO=86,
- EV_PSTN_CLOCK_SOURCE_CHANGED=87,
- EV_ISDN_RAW_DATA_Q931_IN=88,
- EV_ISDN_Q931_Relay_Mode=89,
- EV_PSTN_RESERVED_2=90,
- EV_PSTN_CONN_ID_USAGE_PERORT=91,
- EV_ISDN_FACILITY_IN=92,
- EV_ISDN_GENERIC_MSG=95,
- EV_ISDN_TRUNK_DISABLE=96,
- EV_PSTN_LAST_RECEIVED_CAS = 97,
- EV_PSTN_METERING =98,
- EV_TDM_QUERY_INFORMATION=100, /* switching module */
- EV_V5_INCOMING_CALL_DETECTED=110, /* V5 only - Start */
- EV_V5_ALLOC_INDICATION=111,
- EV_V5_DE_ALLOC_INDICATION=112,
- EV_V5_SIGNAL_REQUEST=113,
- EV_V5_CALL_RELEASED=114,
- EV_V5_ALARM=115,
- EV_V5_USER_PORT_STATUS=116,
- EV_V5_BCHANNEL_STATUS=117, /* V5 only - End */
- EV_CARRIER_SENSE_LOST=120,
- EV_CARRIER_SEND_GAINED=121,
- EV_CAS_SEIZURE_DETECTED=128,
- EV_CAS_CHANNEL_BLOCKED=129,
- EV_PSTN_TRACE_BUFFER=130,
- EV_PSTN_CALL_STATE_RESPONSE=131,
- EV_CAS_SEIZURE_ACK=132,
- EV_CAS_AKNOWLEDGE_WK=133,
- EV_CAS_START_WK=134,
- EV_CAS_CONTINUE_WK=135,
- EV_CAS_FLASH_HOOK=136,
- EV_NETWORK_CAS_CHANEGE=150,
- EV_NETWORK_VOICE_PACKET_CID_NOT_ACTIVE=151,
- EV_NETWORK_OAM=152,
- EV_ATM_OC3_ALARM_STATUS=153,
- EV_ATM_VCC_STATISTICS=154,
- EV_ATM_3G_RATE_CONTROL=155,
- EV_CHANNEL_INFO=160,
- EV_L2TP_CLOSE_SESSION=170,
- EV_L2TP_OPEN_SESSION=171,
- EV_L2TP_OUTGOING_CALL_REQUEST=172,
- EV_L2TP_TUNNEL_STAT=173,
- EV_L2TP_SESSION_STAT=174,
- EV_L2TP_QUERY_TUNNEL_PARAMETERS=175,
- EV_MODEM_CONNECT=180,
- EV_MODEM_DISCONNECT=181,
- EV_MODEM_DEBUG=182,
- EV_MODEM_STATUS=183,
- /* IP-MEDIA Fax Termination */
- /* EVENTS for the IP-Media Fax Termination */
- EV_FAX_TERMINATION_EVENT = 190,
- EV_FAX_TERMINATION_STATUS = 191,
- EV_FAX_TERMINATION_LOG_PRINT = 199,
- EV_RETURN_VALUE_OF_T8100_REGISTER=200,
- EV_RETURN_VALUE_OF_TDM_SAMPLE=201,
- EV_REMOTE_BOARD_REMOVAL_PENDING = 210,
- EV_TER_PSTN_REDUNDANT_RESET_ACK = 211,
- EV_H100_CLK_ERROR = 214,
- EV_H100_CLK_STATUS = 215,
- EV_QUERY_CONFERENCE_INFO = 219,
- EV_QUERY_CONFERENCE_PARTICIPANT_INFO = 220,
- EV_QUERY_CONFERENCE_GENERAL_REPORT = 221,
- /* from 223 will be reserved to analog */
- EV_ANALOG1_RES = 223,
- EV_ANALOG2_RES = 224,
- EV_ANALOG3_RES = 225,
- EV_ANALOG_IF_GROUND_KEY_POLARITY_DETECTION=226,
- EV_ANALOG_IF_GROUND_KEY_DETECTION=227,
- EV_ANALOG_IF_EM_STATUS=228,
- EV_ANALOG_IF_FXO_STATUS=229,
- EV_ANALOG_IF_FXS_STATUS=230,
- EV_ANALOG_IF_FORCED_DISCONNECT_DETECTED=231,
- EV_ANALOG_IF_PCM_SYNC_FAIL=232,
- EV_ANALOG_IF_DETECT_METERING_TONE=233,
- EV_ANALOG_IF_END_METERING_TONE=234,
- EV_ANALOG_IF_OUT_OF_SERVICE=235,
- EV_ANALOG_IF_CONNECTED=236,
- EV_ANALOG_IF_REVERSAL_POLARITY_DETECTED=237,
- EV_ANALOG_IF_WINK=238,
- EV_ANALOG_IF_SEIZURE_DETECTED=239,
- EV_ANALOG_IF_REMOTE_DISCONNECT=240,
- EV_ANALOG_IF_DETECT_SIGNATURE_TEST=241,
- EV_ANALOG_IF_END_SIGNATURE_TEST=242,
- EV_ANALOG_IF_DETECT_WAITING_MESSAGE=243,
- EV_ANALOG_IF_END_WAITING_MESSAGE=244,
- EV_ANALOG_IF_RING_START=245,
- EV_ANALOG_IF_RING_END=246,
- EV_ANALOG_IF_FXO_CHECKSUM_FAILED=247,
- EV_ANALOG_IF_LOOP_CMD_DONE=248,
- EV_ANALOG_IF_REGISTER_CMD_DONE=249,
- EV_ANALOG_IF_READ_REGISTER_CMD_DONE=250,
- EV_PHY_LINK_UP = 251,
- EV_PHY_LINK_DOWN = 252,
- EV_LAN_QUERY_REPLY = 253,
- EV_LAN_PORT_SWITCHED_TO_REDUNDANT = 254,
- /* Events 251-255 reserved for backward competability to 3.8 */
- EV_SAAL_ERROR_REPORT=256,
- EV_SAAL_STATUS_REPORT=257,
- EV_SAAL_INFO_REPORT=258,
- EV_PSTN_SHORT_GENERIC_MSG=270,
- EV_PSTN_LONG_GENERIC_MSG=271,
- EV_PSTN_OMNITEL_MSG=272,
- EV_PSTN_SS7_MTP2_RESPOND_REPORT =280,
- EV_PSTN_SS7_MTP2_RESERVED_1 =281,
- EV_PSTN_SS7_MTP2_RESERVED_2 =282,
- EV_PSTN_SS7_MTP2_RESERVED_3 =283,
- EV_PSTN_SS7_MTP2_RESERVED_4 =284,
- EV_CMDSHELL_OUTPUT = 310,
- EV_PSTN_PERFORMANCE_MONITORING_RESPONSE = 320,
- EV_MGCP_TPNCP_AS_RSIP = 311
- };
- typedef enum
- {
- Link0ConnectID=0,
- Link1ConnectID=1
- } acTSAALConnID;
- typedef enum
- {
- S_IDLE=1, /* Idle state */
- S_OUT_CONN=2, /* Outgoing connection pending state */
- S_IN_CONN=3, /* Incoming connection pending state */
- S_OUT_DISC=4, /* Outgoing disconnection pending state */
- S_OUT_RESYNC=5, /* Outgoing resynchronization pending state */
- S_IN_RESYNC=6, /* Incoming resynchronization pending state */
- S_OUT_RECOV=7, /* Outgoing recovery pending state */
- S_RS_RECOV=8, /* Recovery response pending state */
- S_IN_RECOV=9, /* Incoming recovery pending state */
- S_DATA_TRF_READY=10/* Data transfer ready state */
- } acTSSCOPState;
- typedef enum
- {
- S_OUT_OF_SERVICE=1, /* out of service */
- S_ALIGNMENT=2, /* alignment */
- S_IN_SERVICE_3=3, /* in service at NNI */
- S_PROVING=3, /* proving at UNI */
- S_ALIGN_READY=4, /* aligned ready */
- S_IN_SERVICE_5=5 /* in service */
- } acTSSCFState;
- typedef enum
- {
- LBC_NNI_EMPTY=0, /* no value */
- LBC_NNI_LR =11, /* Local release */
- LBC_NNI_RR =12, /* Remote release*/
- LBC_NNI_SR =13 /*SSCOP release*/
- } acTSAALReportLbc;/* Low Boundry Conditions */
- typedef enum
- {
- REASON_NNI_EMPTY=0, /* no value */
- REASON_NNI_ANS =7,/* Alignment not successful */
- REASON_NNI_CC=15, /* Congestion ceased */
- REASON_NNI_CD =16,/* Congestion detected */
- REASON_NNI_PDUT=17, /* PDU transmitted */
- REASON_NNI_PE=9, /* Protocol error*/
- REASON_NNI_SREC=18, /* SSCOP recover*/
- REASON_NNI_UDR=19, /* UNIT DATA received */
- /* The following values are SSCF-PDU (SSCOP-UU) */
- REASON_SSCF_NNI_OOS=1,/* Out of service */
- REASON_SSCF_NNI_PO =2,/* Processor outage */
- REASON_SSCF_NNI_INS =3,/* In service */
- REASON_SSCF_NNI_NM =4,/* Normal */
- REASON_SSCF_NNI_EM =5, /* emergency*/
- REASON_SSCF_NNI_ANS =7,/* Alignment not successful */
- REASON_SSCF_NNI_MI=8, /* Management Initiated */
- REASON_SSCF_NNI_PE =9,/* Protocol error*/
- REASON_SSCF_NNI_PNS =10/*Proving not successful*/
- } acTSAALReportReason;
- typedef enum
- {
- /* Receipt of unsolicited or inappropriate PDU */
- ER_SD_PDU ='A' ,
- ER_BGN_PDU ='B',
- ER_BGAK_PDU ='C',
- ER_BGREJ_PDU ='D',
- ER_END_PDU ='E',
- ER_ENDAK_PDU ='F',
- ER_POLL_PDU ='G',
- ER_STAT_PDU ='H',
- ER_USTAT_PDU ='I',
- ER_RS_PDU ='J',
- ER_RSAK_PDU ='K',
- ER_ER_PDU ='L',
- ER_ERAK_PDU ='M',
- /* Unsuccessful retransmission */
- ER_VT_CC='O', /* VT(CC) >= MaCC */
- ER_Timer_No_Resp='P', /* Timer NO_RESPONSE expiry */
- /* other list element error type */
- ER_NS='Q', /* SD, POLL N(S) error */
- ER_STAT_NPS='R', /* STAT N(PS) error */
- ER_STAT_NR='S', /* STAT N(R) or list elements error */
- ER_USTAT='T', /* USTAT N(R) or list elements error */
- ER_PDU_LEN='U', /* PDU length violation */
- /* SD loss */
- ER_RET='V', /* SD PDUs must be retransmitted */
- /* Credit condition*/
- ER_LACK_CREDIT='W', /* Lack of credit */
- ER_CREDIT_OBT='X' /* Credit obtained */
- } acTSAALErrCode;
- typedef enum
- {
- UBC_NNI_EMPTY=0, /* no value*/
- UBC_NNI_ALN=14, /*Alignment*/
- UBC_NNI_INS= 3,/* In service*/
- UBC_NNI_OOS =1/*Out of service*/
- } acTSAALReportUbc;/* Upper Boundry Conditions */
- typedef enum
- {
- CASRelayDisable=0,
- CASRelayTransparent=1,
- CASRelayTranslated1=2,
- CASRelayTranslated2=3,
- CASRelayTranslated3=4,
- CASRelayTranslated4=5,
- CASRelayTranslated5=6,
- CASRelayTranslated6=7
- } acTAAL2CASRelayMode;
- typedef enum
- {
- CASEventsOnly = 0,
- CASRFC2833Relay = 1
- } acTCASMode;
- typedef enum
- {
- MFEventsOnly = 0,
- MFRFC2833Relay = 1
- } acTMFMode;
- /*LAN Query Info*/
- struct acTLanQuery
- {
- char * InfoPtr;
- int InfoLen;
- };
- /* Caller ID detection and transport control */
- enum acTCallerIDTransport
- {
- CALLER_ID_DISABLE=0,
- CALLER_ID_RELAY=1,
- CALLER_ID_BYPASS=2,
- CALLER_ID_MUTE=3
- };
- struct acTSpecialInformationTone
- {
- unsigned int firstToneDuration;
- unsigned int secondToneDuration;
- unsigned int thirdToneDuration;
- };
- struct acTRelayTelephonySignalInfo
- {
- char isRelayTelephonySignalActive; /*Set to 1 on begin, Reset after duration ends */
- char StartSignal; /*Indicating that a Telephony signal started*/
- int SignalOnTime; /*[milisec] period of active signal*/
- char TelephonySignal; /*Signal Code according to RFC 2833*/
- int SignalingSystem; /*signaling system to generate/detect this signal according to enum TSignalingType*/
- };
- struct acTDigit
- {
- int DigitOnTime; /*[milisec] period of active digit*/
- int InterDigitTime; /*[milisec] time of silence between last and current digit*/
- int Digit; /*Digit Code, -1 if to be ignored*/
- int SignalingSystem; /*signaling system to generate/detect this digit according to enum TSignalingType*/
- int DetectionDirection; /*=0 detection from the PCM, =1 detection from the Network*/
- };
- struct acTTelephonySignal
- {
- acTTelephonySignalCode SignalCode; /*Signal Code according to RFC2833*/
- int DetectionDirection; /*=0 detection from the PCM, =1 detection from the Network*/
- short Duration; /*duration of the signal [msec]*/
- };
- struct acTCAS
- {
- int InterCASTime; /*[msec] time between last & current CAS change*/
- int CASValue; /*value of CAS nibble - 0x0->0xF (D bit is LSB)*/
- };
- struct acLastReceivedCAS
- {
- int TrunkId;
- int BChannel;
- int LastCas;
- };
- struct acTNetworkCASReport
- {
- unsigned short VPI;
- unsigned short VCI;
- int NetworkCID; /*Network Channel Id*/
- int CASValue; /*value of CAS nibble - 0x0->0xF (D bit is LSB)*/
- };
- struct acTNetworkVoice
- {
- unsigned short VPI;
- unsigned short VCI;
- int NetworkCID; /*Network Channel Id*/
- };
- struct acTNetworkOAM
- {
- unsigned short VPI;
- unsigned short VCI;
- int OAMType; /*Type of OAM event*/
- char LLID[16]; /*Loop Location Identifier*/
- };
- struct acT3GRateControl
- {
- unsigned char NumberOfRFCI;
- unsigned char AMRCodersEnable[20];
- };
- struct acTATMTXAAL5FrameFromHost
- {
- unsigned short VPI;
- unsigned short VCI;
- int LastLength;
- };
- struct acTAAL5FrameMsg
- {
- int VccId;
- int VPI;
- int VCI;
- int LastLength; /* 0 : this is a middle part of the AAL5 frame */
- /* n !=0 : this is the last part of the AAL5 frame, the frame size is N */
- };
- struct acTPHYStatus
- {
- int OutOfFrame;
- int LossOfFrame;
- int LossOfSignal;
- int L_RDI;
- int L_AIS;
- int UNEQ;
- int PLM;
- int P_RDI;
- int P_AIS;
- int LOP;
- int LCD;
- int UnlockedClock;
- int RESERVED[4];
- };
- struct acTVccStatistics
- {
- unsigned short VPI;
- unsigned short VCI;
- short TxOverRunCnt;
- short RxDumpedPcktsCnt;
- short Reserved[12];
- union
- {
- struct {
- unsigned short AAL2ParityErrCnt;
- unsigned short AAL2HecErrCnt;
- unsigned short AAL2UnprovisionedCIDCnt;
- short Reserved[11];
- } VccAAL2Stat;
- struct {
- unsigned short Temp1;
- unsigned short Temp2;
- short Reserved[12];
- } VccAAL5Stat;
- }AALSpecificStat;
- };
- typedef enum
- {
- ATM_AAL2_PROTOCOL_SSCS=0,
- ATM_AAL2_PROTOCOL_SSSAR_TRANSPARENT_MODE=1,
- ATM_AAL2_PROTOCOL_SSSAR_SUPPORT_MODE=2
- } acTAAL2ProtocolType;
- struct acTCallProgressTone
- {
- enum acTCallProgressToneType ToneType; /*the "logical" tone type*/
- int LowFreq; /*[Hz] freq of the lower component of the daul tone*/
- int HighFreq; /*[Hz] freq of the higher component of the daul tone*/
- int LowFreqLevel; /*[-dBm] generation level of the lower component of the daul tone*/
- int HighFreqLevel; /*[-dBm] generation level of the higher component of the daul tone*/
- int TOn1; /*[10msec] first signal on time interval*/
- int TOff1; /*[10msec] first signal off time interval*/
- int TOn2; /*[10msec] second signal on time interval*/
- int TOff2; /*[10msec] second signal off time interval*/
- };
- struct RingState
- {
- int RingOnTime; /*[10msec] ring on time interval*/
- int RingOffTime; /*[10msec] ring off time interval*/
- int NextState;
- };
- struct acTRingTypes
- {
- int RingType; /*the "logical" ring type */
- int Freq; /*[Hz] freq Ring */
- struct RingState RingStateMachine[4];
- };
- struct acTFxsCoef
- {
- char ac_coef[110];
- char dc_coef[90];
- char gen_coef[6];
- };
- struct acTCallProgressDetectionEventInfo
- {
- enum acTCallProgressToneType ToneType; /*the "logical" tone type*/
- int ToneIndex; /*tone index*/
- int DetectionDirection; /*=0 detection from the PCM, =1 detection from the Network*/
- };
- struct acTFaxStatusInfo
- {
- int Relay_Bypass; /*=1 if using FaxRelay, =0 if using FaxBypass*/
- int Calling_Answering; /*=1 if this is the Calling Fax, =0 if this is the answering Fax (relevant only if using FaxRelay)*/
- int NumberOfFaxPages; /*Number of pages received/sent (invalid in ECM mode)*/
- enum TFaxRate ModulationType; /*Fax Data transmit modulation type (used for fax-rate information) */
- };
- enum acTUserDialTiming
- {
- USER_DIAL_TIMING_DEFAULT = 0,
- USER_DIAL_TIMING_IMMEDIATELY = 1,
- USER_DIAL_TIMING_CONCATENATE = 2
- };
- struct acTDialCmd
- {
- char DigitBuf[DIGIT_BUF_SIZE];
- int DigitOnTime; /*[milisec] period of active digit*/
- int InterDigitTime; /*[milisec] time of silence between last and current digit*/
- int SignalingSystem; /*signaling system to generate/detect this digit according to enum TSignalingType*/
- int NumDigits;
- };
- struct acTPlayCallProgressToneCmd
- {
- int CallProgressToneIndex;
- int Duration;
- };
- struct acTPlayVoicePromptCmd
- {
- char *VoicePromptBufPtr;
- int VoicePromptBufLength;
- unsigned int VoicePromptCoder; /*TBD*/
- };
- typedef struct
- {
- enum TUserDialing DialingType; /* dialing type */
- enum TToneDirection ToneDirection;
- union {
- struct acTDialCmd Dial;
- struct acTPlayCallProgressToneCmd CallProgressTone;
- struct acTPlayVoicePromptCmd VoicePrompt;
- struct acTCallerIDMessage *CallerID;
- } u;
- } acTUserDialingCmd;
- struct acTPlayBackPacketRequest
- {
- short NumPacketRequest;
- /* //short PayloadSize; */
- };
- typedef enum {
- DURING_PLAYBACK,
- BARGEIN_HAPPENED_DURING_PLAYBACK,
- BARGEIN_TREATED_DURING_PLAYBACK,
- NO_PLAYBACK,
- ENDING_NI_PLAYBACK
- } TPlayBackState;
- #if FAX_TERMINATION_SUPPORTED
- /* IP-MEDIA Fax Termination */
- struct acTFaxTermReport /* used for Fax Term Events */
- {
- int CID;
- char EventName[40];
- int EventID;
- };
- struct acTFaxTermStatus /* used for Fax Term Session status event */
- {
- int CID;
- acTFaxTermSessionStatus APIStatus;
- };
- struct acTFaxTerminationLogPrint /* used for Fax Term Session status event */
- {
- char log[300];
- };
- struct acTFaxTerminationFileWrite /* used for Fax Term Session status event */
- {
- int CID;
- int size;
- int count;
- int offset;
- char buffer[300];
- };
- struct acTFaxTerminationFileOpen /* used for Fax Term Session status event */
- {
- int CID; /* Channel ID */
- char mode; /* Open for read/Write */
- };
- struct acTFaxTerminationFileClose /*used for Fax Term Session status event */
- {
- int CID; /* Channel ID */
- };
- struct acTFaxTerminationFileSeek /*used for Fax Term Session status event */
- {
- int CID; /* Channel ID */
- long offset;
- int origin;
- };
- struct acTFaxTerminationFileRead /* used for Fax Term Session status event */
- {
- int CID; /* Channel ID */
- int size;
- int count;
- };
- #endif /* FAX_TERMINATION_SUPPORTED */
- struct acTModemConnectAttr
- {
- short Standard;
- short RxRate;
- short TxRate;
- short Protocol;
- } ;
- struct acTModemEndOfCallInfo
- {
- char RASDebugMode;
- int TxData;
- int RxData;
- int DataReq;
- int CRCErr;
- int OutOfSequenceErr;
- char ModemCallInfo[208];
- /* Tx debug params */
- int TxDataErrPackets;
- int TxStatusPackets;
- int TxPPPErrPacket;
- int TxRxErrPacket;
- int TxOverLengthFragment;
- int TxStartFragment;
- int TxStartFragmentErr;
- int TxWholeFragment;
- int TxWholeFragmentErr;
- int TxMidFragment;
- int TxMidFragmentErr;
- int TxEndFragment;
- int TxEndFragmentErr;
- /* Rx debug params */
- int RxStartFragment;
- int RxStartFragmentErr;
- int RxEndFragment;
- int RxWholeFragment;
- int RxMidFragment;
- int RxMidFragmentErr;
- int RxFragmentErr;
- } ;
- typedef struct
- {
- int wm_level;
- }
- TUserModemSetupInfo;
- /*-=-*/
- struct acTModemDebugInfo
- {
- unsigned short InfoSize;
- unsigned char DebugInfo[500];
- };
- struct acTL2TPSessionInfo
- {
- char RASDebugMode;
- int status;
- short CId;
- short SId;
- /* Tx */
- int RxPPPPacket;
- /* Rx */
- int DiscardFromFIFO;
- int FIFOFullInd;
- int TXPacketsToFIFO;
- /* Rx debug */
- int NumErrPackets;
- short RxBDFull;
- short RxBufFull;
- int TxBufFull;
- };
- /* Caller ID (Calling Number Delivery) information */
- struct acTCallerIDMessage
- {
- char Date[5]; /* The caller ID date field (ASCII - MMDD) */
- char Time[5]; /* The caller ID time field (ASCII - HHMM) */
- char Number[21]; /* The calling directory number */
- char Name[51]; /* The caller ID name */
- char Status; /* Caller ID message status */
- char NumberPresent; /* Enumeration for availability of Number */
- char NamePresent; /* Enumeration for availability of Name */
- int CIDType; /* Type = 1,2*/
- char IsVMWI; /* Visual Indicator instead of a message */
- unsigned char VMWIIndicatorStatus; /* Visual Indicator Status ON/OFF */
- int DetectedCallerIDType; /* Caller Id Type (1,2) */
- int DetectedCallerIDStandard ; /*Bellcore,ETSI,NTT*/
- /*ETSI*/
- char Called_line_identity[21];
- char Complementary_calling_line_identity[21];
- char Call_type ;/*Enumeration - Call type parameter*/
- char First_call_line_identity[21];
- char Network_system_message_status;
- char Type_of_forwarded_call;/*Enumeration - Type of forwarded call parameter*/
- char Type_of_calling_user ; /*Enumeration - Type of calling user parameter*/
- char Redirecting_number[21];
- struct Extention_Net ExtentionNet;
- int ETSI_Type; /*0=Before_Rings;1=Between_Rings*/
- /*NTT*/
- char Type_of_number;
- char Numbering_plan_identifier[2];
- };
- /* Answer Detector event info */
- struct acTAnswerDetectorEventInfo
- {
- long int TimeSec;
- short TimeMilliSec;
- };
- /* Pattern Detector event info */
- struct acTPatternDetectorEventInfo
- {
- int PatternIndex;
- long int TimeSec;
- short TimeMilliSec;
- };
- /* Energy Detector event info */
- struct acTEnergyDetectorEventInfo
- {
- long int TimeSec;
- short TimeMilliSec;
- };
- typedef enum
- {
- UPDATED = 0, /*at least one new error message*/
- RTP_PACKET_LOST_MSG = 1,
- DSP_JB_UNDER_RUN_MSG = 2,
- DSP_JB_OVER_RUN_MSG = 3,
- INVALID_G723_CODE_MSG = 4,
- INVALID_SID_LENGTH_MSG = 5,
- HOST_RECEIVE_OVERRUNS_MSG = 6,
- COMMAND_CHECKSUM_ERROR_MSG = 7,
- COMMAND_SEQUENCE_ERROR_MSG = 8,
- MISALIGNMENT_ERROR_MSG = 9,
- PACKET_HEADER_ERROR_MSG = 10,
- INVALID_CID_ERROR_MSG = 11,
- INVALID_RTCP_PACKET_ERROR_MSG = 12,
- RTP_SSRC_ERROR_MSG = 13,
- UNKNOWN_RTP_PAYLOAD_TYPE_ERROR_MSG = 14,
- INVALID_HDLC_PAYLOAD_LEN_MSG = 15,
- INVALID_CELL_CODER_CODE_ERROR_MSG = 16,
- UNRECOGNIZED_FAX_PACKET_ERROR_MSG = 17,
- LOST_FAX_PACKETS_ERROR_MSG = 18,
- UNRECOGNIZED_MODEM_RELAY_PACKET_ERROR_MSG = 19,
- LOST_MODEM_RELAY_PACKET_ERROR_MSG = 20,
- ILLEGAL_COMMAND_ERROR_MSG = 21,
- EIGHT_SEC_TIMEOUT_BEFORE_DCN_ERROR_MSG = 22,
- RTP_PACKET_DUPLICATED_MSG = 23,
- RTP_REORDER_MSG = 24,
- INVALID_CODER_CODE_ERROR_MSG = 25
- } ErrorMessageType;
- /* Caller ID Status fields values (status can also be CALLER_ID_BAD_CHECKSUM + CALLER_ID_NOT_ENDED) */
- #define CALLER_ID_OK 1
- #define CALLER_ID_BAD_CHECKSUM 2
- #define CALLER_ID_NOT_ENDED 3
- /***********************************************************************
- SAAL Related Information
- ***********************************************************************/
- struct AcTSAALEventReport
- {
- acTSAALConnID ConnectionId; /* ID of connection*/
- acTSAALReportLbc ReportLbc;/* lower boundry conditions */
- acTSAALReportUbc ReportUbc; /* Upper boundry conditions */
- acTSAALReportReason ReportReason; /* reason parameter value */
- };
- struct acTSAALInfoReport
- {
- acTSAALConnID ConnectionId; /* ID of connection*/
- unsigned long RxBytes; /*number of received bytes in valid SD(MU) PDU */
- unsigned long TxBytes; /*number of transmitted bytes in SD(MU) PDU */
- unsigned long error_counter[26]; /* error counters table for errors A..Z */
- acTSSCOPState SSCOPState; /* SSCOP current state */
- acTSSCFState SSCFState; /* SSCF current state */
- unsigned char MaalState; /*MAAL current state*/
- unsigned long Vts; /* VT(S) */
- unsigned long Vtps; /*PT(PS)*/
- unsigned long Vta; /* VT(A)*/
- unsigned long Vtpa; /*VT(PA)*/
- unsigned long Vtms; /*VT(MS)*/
- unsigned long Vrr; /*VR(R)*/
- unsigned long Vrh; /* VR(H)*/
- unsigned long Vrmr; /*VR(MR)*/
- };
- struct acTSAALErrReport
- {
- acTSAALConnID ConnectionId; /* ID of connection*/
- acTSAALErrCode Code; /* error code */
- unsigned long GapCount; /* gap sequence count (for error code V only) */
- acTSSCOPState SSCOPState; /* SSCOP state */
- };
- /* The Event information union. */
- /* This structure contains the event information for all event types. */
- typedef struct
- {
- int Type; /* event type */
- union {
- struct acTTelephonySignal TelephonySignalInfo;/* TelephonySignal information */
- struct acTDigit DigitInfo; /* DTMF information */
- struct acTCallProgressDetectionEventInfo CallProgressInfo; /* Call Progress information */
- struct acTCAS CASInfo; /* CAS information */
- struct acLastReceivedCAS LastReceivedCAS;
- struct acTFaxStatusInfo FaxInfo; /* Fax Information */
- struct acTNetworkCASReport NetworkCASInfo; /* Network CAS Information */
- struct acTCallerIDMessage CallerID; /* Caller ID information */
- struct acTNetworkVoice NetworkVoiceInfo; /* Network Voice Information */
- struct acTNetworkOAM NetworkOAM; /* Network OAM information */
- struct acTPHYStatus PHYStatus; /* ATM PHY error status */
- struct acT3GRateControl RateControlInfo; /* 3G Rate Control Information */
- #if (AC48X_CURRENT_CONFIG == AC48X_CONFIG_TPAPP)
- struct acTAnalogFXOStatus AnalogAnicStatus; /* Analog Status information */
- struct acTAnalogFXSStatus AnalogDuSLICStatus; /* Analog Status information */
- struct acTAnalogReadRegisterStatus AnalogReadRegisterStatus;
- struct acTAnalogGroundKeyDetectionStatus AnalogGroundKeyDetectionStatus;
- struct acTAnalogReversalPolarityStatus AnalogReversalPolarityStatus;
- #endif
- struct acTVccStatistics VccStatistics;
- struct acTSAALInfoReport AtmSAALInfoReport;
- struct AcTSAALEventReport AtmSAALEventReport;
- struct acTSAALErrReport AtmSAALErrReport;
- struct acTAnswerDetectorEventInfo AnswerDetectorInfo; /* Answer Detector information */
- struct acTPatternDetectorEventInfo PatternDetectorInfo;/* Pattern Detector Information */
- struct acTEnergyDetectorEventInfo EnergyDetectorInfo; /* Energy Detector event info */
- struct acTModemConnectAttr ModemConnectAttr;
- struct acTModemEndOfCallInfo ModemEndOfCallInfo;
- struct acTL2TPSessionInfo L2TPSessionInfo;
- struct acTLanQuery LanQueryInfo; /* LAN Query Info*/
- struct acTSpecialInformationTone SpecialInformationTone; /* SIT detection information */
- #if FAX_TERMINATION_SUPPORTED
- /* IP-MEDIA Fax Termination */
- struct acTFaxTermReport FaxTermReport; /* FaxTermination Events */
- struct acTFaxTermStatus FaxTermSessionStatus; /* FaxTermination session status */
- #endif /* FAX_TERMINATION_SUPPORTED */
- } u;
- } acTEventInfo;
- /* Event Buffer : */
- typedef struct
- {
- acTEventInfo EventBuf[EVENT_BUF_SIZE]; /* event buffer */
- acTEventInfo *EventBufWrPtr; /* write pointer to Event buffer */
- acTEventInfo *EventBufRdPtr; /* read pointer to Event buffer */
- acTEventInfo *EventBufEndPtr; /* end of Event buffer */
- } acTEventBuffer;
- struct TSignalingDetectorsControl
- {
- unsigned MFR1DetectorEnable : 1; /*MF R1 register signaling detector*/
- unsigned MFSS5DetectorEnable : 1; /*MF SS5 register signaling detector*/
- unsigned MFR2ForwardDetectorEnable : 1; /*MF R2 Forward register signaling detector*/
- unsigned MFR2BackwardDetectorEnable : 1; /*MF R2 Backward register signaling detector*/
- unsigned R1LineDetectorEnable : 1; /*R1 line signaling detector*/
- unsigned AC15DetectorEnable : 1; /*AC15 line Signaling System (2280hz) detector*/
- unsigned SS4DetectorEnable : 1; /*Signaling System 4 detector*/
- unsigned SS5DetectorEnable : 1; /*Signaling System 5 detector*/
- unsigned R2LineDetectorEnable : 1; /*R2 line signaling detector*/
- unsigned DTMFDetectorEnable : 1; /*DTMF signaling detector*/
- unsigned CallProgressDetectorEnable : 1; /*Call Progress tones detector*/
- unsigned : 1;
- unsigned UserDefinedToneDetectorEnable : 1; /*User defined tones detector*/
- unsigned CasDetectionDisable : 1; /*CAS Detection enable or Disable */
- };
- struct TUDPAddr
- {
- unsigned long IPAddr; /*IP address*/
- unsigned short UDPPort; /*UDP port*/
- };
- /***********************************************************************
- PSTN Related Definitions
- ***********************************************************************/
- struct TTrunkPackCfg
- {
- int ActiveDevice[MAX_DSP_DEVICES_CAPACITY]; /*number of active AC48x devices;*/
- };
- struct VoicePromptParameters
- {
- int VoicePromptSamplesLeft; /*number of samples left to be played*/
- char *VoicePromptRdPtr; /*Read Ptr to next sample to be played*/
- short VoicePromptPayloadSize; /*Voice Prompt sample payload size*/
- short VoicePromptCoder; /*Voice Prompt coder type */
- };
- /***********************************************************************
- Application Related Definitions
- ***********************************************************************/
- enum TCPConectionControl
- {
- NoTestin=0,
- InitMGCP=1,
- TestMGCPConection=2,
- InitTPNCP=3,
- InitAgg=4,
- InitHB=5
- };
- enum TPCIPacketType
- {
- PCIVoicePacket=0,
- PCIFaxPacket=2,
- PCIFaxBypassPacket=3,
- PCIModemBypassPacket=4,
- PCIModemPacket=5,
- PCIT38FaxPacket=6,
- PCISIDPacket=7,
- PCIDummyPacket=8,
- Dsp2HostDebugPacket=10,
- Host2DspDebugPacket=11,
- StatisticsDebugPacket=12,
- IncomingRTPDebugPacket=13,
- OutgoingRTPDebugPacket=14,
- OutgoingOMNITELPacket=16,
- Profile2HostDebugPacket=17,
- acChStatusPacket=18,
- acRxChStatusPacket=19,
- acTxChStatusPacket=20,
- OutgoingCASPacket=21,
- acPCIPlayBackPacket=22,
- acPCILastPlayBackPacket=23,
- acPCIPlayBackRequest = 24,
- PCICASConfigurationTable=65,
- PCILastCASConfigurationTable=66,
- PCICallProgressConfigurationTable=67,
- PCILastCallProgressConfigurationTable=68,
- PCIlapdToHost = 69, /* dl2host */
- PCIFXOCoeffientsConfigurationTable=70,
- PCILastFXOCoeffientsConfigurationTable=71,
- PCIFXSCoeffientsConfigurationTable=72,
- PCILastFXSCoeffientsConfigurationTable=73,
- PCIAddVoicePrompt=77,
- PCIAddVoicePromptLastPacket=78,
- PCITAAL5Frame=80,
- /*-=- HDLC*/
- PCIHDLCFrame=81,
- PCIDataTerminalPacket=82,
- PCIDataL2TPPacket=83,
- /*IP-MEDIA*/
- PCIPlayFileToIP=90,
- PCIPlayFileToIPLastPacket=91,
- PCIRecordFileFromIP=92,
- PCIRecordFileFromIPDummyPacket=93,
- PCIStopPlayFileToIP=94,
- PCIStopRecordFileFromIP=95,
- PCIPlayFileToIPDummyPacket=96,
- acPCIPlayBackPackeToIP=97,
- acPCILastPlayBackPacketToIP=98,
- acPCIPlayBackPacketRequestToIP=99,
- PCIDBGRecordPacket=100,
- /* IP-MEDIA Fax Termination */
- PCIFaxTermPacket = 102,
- PCIFaxTermSetChParams = 103,
- PCIFaxTermGetSessionStatus = 104,
- PCIFaxTermSendFax = 105,
- PCIFaxTermReceiveFax = 106,
- PCIFaxTermAnswerPoll = 107,
- PCIFaxTermFileOpen = 108,
- PCIFaxTermFileClose = 109,
- PCIFaxTermFileSeek = 110,
- PCIFaxTermFileRead = 111,
- PCIFaxTermFileWrite = 112,
- PCIFaxTermTracePacket = 113,
- PCIFaxTermDIOReadImage = 114,
- PCIFaxTermInitSendFax = 115,
- PCIFaxTermCancelFax = 116,
- PCIFaxTermOpenSession = 117,
- PCIFaxTermCloseSession = 118,
- PCIFaxTermSetRdrData1 = 119,
- PCIFaxTermSetRdrData2 = 120,
- PCIFaxTermFileDioImageData1 = 121,
- PCIFaxTermFileDioImageData2 = 122,
- PCIFaxTermSetUserStatusEvents = 123,
- PCIFaxTermSetNextPageAttrib = 124
- };
- enum TNIPacketType
- {
- RTPPacketType=0,
- RTCPPacketType=1,
- T38FaxPacketType=2
- };
- /* Not Used ... */
- enum acTConfigurationTablesCatalogBits
- {
- acCallProgressCatalogBit=1,
- acCASProtocolCatalogBit=2,
- acFXOCoeffientsCatalogBit=4,
- acFXSCoeffientsCatalogBit=8
- };
- enum acTPlayBargeIn
- {
- acPlayBargeInOff = 0,
- acPlayDTMFBargeIn = 1,
- acPlayVoiceBargeIn = 2,
- acPlayVoiceAndDTMFBargeIn = 3
- };
- struct TICMPEchoMsg
- {
- unsigned char MsgType; /*Msg Type (8)*/
- unsigned char MsgCode; /*Msg Error Code (0)*/
- unsigned short MsgCS; /*Msg CheckSum*/
- unsigned short ID; /*Sender's ID (0)*/
- unsigned short SeqNum; /*Sequence num (0)*/
- unsigned long Data; /*Msg Data (can be longer) (0)*/
- };
- struct TPCIPacketHeader
- {
- unsigned char CID;
- unsigned char Length;
- unsigned char SeqNum;
- unsigned char Type; /*following PCIPacketType*/
- };
- enum ControlMethod
- {
- PCI_CONTROLMETHOD=0,
- TPNCPUDP_CONTROLMETHOD=1,
- TPNCPTCP_CONTROLMETHOD=2
- };
- typedef enum
- {
- VoicePayloadFormatRTP = 0,
- VoicePayloadFormatATM = 1,
- VoicePAyloadFormatIllegal = 2
- } TVoicePayloadFormat;
- /***********************************************************************
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ***********************************************************************
- struct TAppVars was taken out and put into : TpAppVarsTypeDef.h
- see #include in the beggining of this file
- /***********************************************************************
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- **********************************************************************/
- /***********************************************************************
- Channel Related Information
- ***********************************************************************/
- #include "vpTypeDef.h"
- #if (AC48X_CURRENT_CONFIG == AC48X_CONFIG_TPAPP)
- #include "vaTypeDef.h"
- #endif
- #if RAS_IF_SUPPORTED
- #include "rasTypeDef.h"
- #endif
- #include "ACModemDef.h"
- struct TxChannelEvents
- {
- unsigned PendingIdle : 1; /*=1 if idle command was sended to this channel and the next received packet should be idle.*/
- unsigned DTMFActivity : 1; /*=1 if DTMF activity session is on.*/
- unsigned CallProgressActive : 1; /*=1 if call progress tone is currently being detected*/
- unsigned BypassNIC : 1; /*=1 in case we want the driver to loopback self originating packets without sending them to MAC*/
- unsigned MonitorSignalingChangesOnly : 1; /*=1 if we are invoking the encoder only to monitor changes in Signaling (CAS,IBS,DTMF)*/
- unsigned BypassOptimizedTx : 1; /* In OPTIMIZED mode: =0 Normal operation, =1 skipthe optimized operation and go to RegularTx() */
- unsigned IBSEventsDetected : 8; /*Indicates that one or more IBS event have been detected within last voice frame */
- unsigned DisablePacketsTransmissionToDSPFlag :1; /* disable Packet transmission to the DSP*/
- unsigned padding : 1;
- };
- struct RxChannelEvents
- {
- unsigned SilencePeriod : 1; /*=1 if we are in silence period due to VAD*/
- unsigned DTMFHangOverStarted : 1; /*=1 after digit turned off*/
- unsigned BrokenConnection : 1; /*=1 if broken connection was detected*/
- unsigned LastDTMF : 1; /*=0 if last packet's DTMF was off, =1 if last packet's DTMF was on*/
- unsigned BypassOptimizedRx : 1; /* In OPTIMIZED mode: =0 Normal operation, =1 skip the optimized operation and go to RTPDecoder() */
- unsigned ReorderDetected : 1;
- unsigned padding : 10;
- };
- /* Host -> Network (Transmit) Channel Information : */
- struct TTxChannelInfo
- {
- /* Common Channel Info : */
- short CID; /*channel ID - always the index in RxInfoCh array*/
- char DTMFRelayEnable; /*=1 if DTMFs should be relayed to remote side (only if DTMFTransportType=1)*/
- char MFRelayEnable; /*=1 if MFs should be relayed to remote side (only if MFTransportType=1)*/
- char TelephonySignalRelayEnable;/*=1 if Telephony Signals should be relayed to remote side (only if TelephonySignalType=1)*/
- unsigned short ChannelPacketCount; /*count of DSP packets in 0.5 Sec intervals*/
- short LastCallProgressTone;/*Last call progress tone that was detected*/
- unsigned short PCISeqNum; /*PCI Sequence number*/
- /* during playback flag */
- TPlayBackState PlayBackState;
- /* IBS relates parameters */
- unsigned int LastIBSPcktTimeStamp; /* Previous IBS packet Time Stamp */
- unsigned int LastSignalCode; /* DTMF , MF , CPT etc */
- unsigned int LastInterDigitTime; /* off time between events */
- /* information for Relay Telephony Signals */
- struct acTRelayTelephonySignalInfo RelayTelephonySignalInfo;
- /* Fax related fields */
- enum TFaxModulation FaxModulationType; /* Fax Data transmit modulation type */
- enum TFaxMode FaxMode; /*is this calling/answering fax (or not fax at all)*/
- int NumberOfFaxPages; /*counter for transmitted fax pages (invalid in ECM mode)*/
- /* Channel Event Buffer : */
- acTEventInfo EventBuf[EVENT_BUF_SIZE]; /* event buffer */
- acTEventInfo *EventBufWrPtr; /* write pointer to Event buffer */
- acTEventInfo *EventBufRdPtr; /* read pointer to Event buffer */
- acTEventInfo *EventBufEndPtr; /* end of Event buffer */
- int BaseEventMask; /* only events masked here will signal the user */
- int EventMask; /* Temp Event mask */
- union {
- int channelEventsStatus;
- struct TxChannelEvents channelEventsFlags;
- } channelEvents;
- short FirstV21PreambleDetected; /*we already detetect V21 Preamble - added because of bug in the DSP
- the 7E Preamble event is generated more than one time*/
- /* Stack-Dependant Channel Info */
- union {
- struct vpTTxChannelInfo vp; /* VoicePacketizer data part */
- #if (AC48X_CURRENT_CONFIG == AC48X_CONFIG_TPAPP)
- struct vaTTxChannelInfo va; /* VoiceAtomizer data part */
- #endif
- /* HR! Add RAS dependant structure */
- #if RAS_IF_SUPPORTED
- struct rasTTxChannelInfo ras; /* RAS data part */
- #endif
- } u;
- /*Error Message buffer*/
- unsigned long ErrorMsg[MAX_ERROR_MSG_TYPE_INDEX];
- };
- /* Network -> Host (Receive) Channel Information : */
- struct TRxChannelInfo
- {
- /* Common Channel Info : */
- short CID; /*channel ID - always the index in RxInfoCh array*/
- struct VoicePromptParameters VoicePromptParam ;/* relevant voice prompt parameters*/
- enum TFaxMode FaxMode; /* is this calling/answering fax (or not fax at all) */
- /* User Dialing :*/
- enum TUserDialing UserDialing; /* User Dialing progress (Dial() or CallProgres() or VoicePrompts() */
- acTUserDialingCmd UserDialBuf[USER_DIALING_BUF_SIZE]; /* user dialing buffer */
- acTUserDialingCmd *UserDialBufWrPtr; /* write pointer to user dialing buffer */
- acTUserDialingCmd *UserDialBufRdPtr; /* read pointer to user dialing buffer */
- acTUserDialingCmd *UserDialBufEndPtr; /* end of user dialing buffer */
- struct acTCallerIDMessage UserCallerIDBuf;
- /*-=- HDLC*/
- unsigned int HdlcDSPBufferSize;
- union {
- int channelEventsStatus;
- struct RxChannelEvents channelEventsFlags;
- } channelEvents;
- /* Stack-Dependant Channel Info */
- union {
- struct vpTRxChannelInfo vp; /* VoicePacketizer data part */
- #if (AC48X_CURRENT_CONFIG == AC48X_CONFIG_TPAPP)
- struct vaTRxChannelInfo va; /* VoiceAtomizer data part */
- #endif
- /* HR! Add RAS dependant structure */
- #if RAS_IF_SUPPORTED
- struct rasTRxChannelInfo ras; /* RAS data part */
- #endif
- } u;
- };
- struct TVoiceInfo
- {
- unsigned Coder : 6; /*Coder*/
- unsigned ECE : 1; /*Echo Cancler enable*/
- unsigned SCE : 2; /*Silence Compresion Enable*/
- unsigned PFE : 1; /*Post Filter Enable*/
- unsigned HPFE : 1; /*High Pass Filter Enabled*/
- unsigned FRF_IP : 1; /*=0 if FRF.11 compliance, =1 for VoIP IA Compliance*/
- unsigned M : 2; /*Packet multiplication factor-1*/
- unsigned ECHybridLoss : 2; /*Echo Cancler Hybrid Loss*/
- unsigned ECNlpMode : 2; /*Echo Cancler - Non Linear Processor Mode*/
- unsigned ECLength : 5; /*Echo Cancler Length*/
- unsigned ECNBDEnable : 1; /*Echo Cancler Narrow Band Enable*/
- unsigned ECFreeze : 1; /*Echo Cancler Freeze*/
- };
- /* Agc Information */
- struct TAgcInfo
- {
- char Activate; /* Agc Enable */
- char GainSlope; /* Gain changing ratio (enum TacAgcEnergySlope) */
- char Redirection; /* Determines the Direction that the AGC works on (1=Network) */
- char TargetEnergy; /* The AGC Target Energy [-dBm] */
- };
- /* Energy detector Information */
- struct TEnergyDetectorInfo
- {
- char Activate; /* Energy Detector Enable */
- char QualityFactor; /* Quality Factor for the Energy Detector (0 - 10) */
- char Threshold; /* Energy detector Threshold */
- };
- /* Energy Detector Quality Factor related DSP parameters */
- struct TEnergyDetectorDSPChannelConfiguration
- {
- int EnergyDetect_P_MajorityThreshold;
- int EnergyDetect_N_MajorityFrames;
- int EnergyDetect_M_AverageDcBuffers;
- int EnergyDetect_K_ContinuesVoice;
- };
- /* Pattern Detector Information */
- struct TPatternDetectorInfo
- {
- char Activate; /* Pattern Detector Enable */
- };
- /* Answer Detector Information */
- struct TAnswerDetectorInfo
- {
- char Activate; /* Activates the Answer Detector */
- char Redirection; /* Determine the direction of the Answer Detector (1=Network) */
- int SilenceTime; /* Silence duration to decide if End Of Speech [100ms] */
- int ActivityDelay; /* Answer Detector module activation delay [100ms] */
- };
- /* Mediation between Channels structure declarations */
- struct TMediationChannelInfo
- {
- TEndPoint DestEndPoint; /* The Destination End Point type */
- int DestCID; /* The Destination CID */
- char Transcode; /* Is Transcoding required */
- };
- /* 3 Way Conference */
- struct T3WayConferenceInfo
- {
- Tac3WayConferenceMode ThreeWayConferenceMode; /* The Conference Mode */
- int ConferenceChannel; /* the channel with whom the conference is performed */
- };
- /* Channel Setup Information : */
- struct TChannelInfo
- {
- int Active; /*=1 if active ,=0 if idle*/
- int RTPActive; /*=1 if packets are to be sent/received to/from IP*/
- unsigned int RTPActivateStartTime; /* Absolute start time of the last RTP Session */
- enum TTestCode TestMode; /*Voice Test Mode */
- int PCMTimeSlot; /*PCM time slot that channel is tuned to*/
- int TriStateEnable; /*=1 sets DSP PCM output to 3state between the run command and activation*/
- int DisableAndTriStateChannelPCMOutput; /* Disable channel output and set to a constant TriState mode (for unused channels) */
- struct TVoiceInfo VoiceCmd; /*Voice settings for the channel (Coder,SCE etc)*/
- int TxM; /*multi frames packing factor - relative to VoIP frame definition (All coders=20msec, G723=30msec)*/
- enum TSampleBasedCodersRTPPacketInterval SampleBasedCodersRTPPacketInterval; /* The basic frame time (for PCM/ADPCM only) to which TxM relates */
- int VoiceVolume; /*Voice Volume*/
- int InputGain; /*PCM input gain*/
- int DTMFVolume; /*DTMF Volume*/
- struct TExtendedFaxModemCmd FaxCmd; /*Fax settings for the channel (Coder,max rate, etc) for 4814*/
- int FaxBypassM; /*multi frames packing factor for Fax Bypass- relative to VoIP frame definition*/
- int FaxRedundancyDepth; /*amount of redundancy for fax relay HS packets*/
- int EnhancedFaxRedundancyDepth; /*amount of redundancy for fax relay low speed packets*/
- int ModemRedundancyDepth; /*amount of redundancy for modem relay HS packets*/
- int UseT38orFRF11; /*=1 if channel will use T.38 fax relay, =0 if FRF11 fax relay*/
- enum TTCFMode TCFMode; /*=0 local mode, =1 transferred mode*/
- enum TIFPTransport IFPTransport; /*=0 IFP/UDP, IFP/TCP*/
- int T38ProtectionMode; /*0=Redundancy Packets, 1=FEC*/
- int T38FaxRelayECMMode; /* T38 Fax relay ECM mode : 0=Backward compatible mode, 1=Interoperability mode */
- int DJBufMinDelay; /*Dynamic Jitter Buffer Minimum Delay [milisec]*/
- int DJBufOptFactor; /*Dynamic jitter buffer frame error/delay optimization factor [scale 0-13]*/
- int DTMFTransportType;/*according to enum acTDTMFTransport =0 DTMF relay disabled& erased from audio, =1 DTMF relay (erased from audio), =2 in audio band*/
- int MFTransportType;/*according to enum acTMFTransport =0 MF relay disabled& erased from audio, =1 MF relay (erased from audio), =2 in audio band*/
- int TelephonySignalType;/*according to enum acTAnalogTelephonyTransport =0 Telephony Signal relay disabled, =1 Telephony Signal relay enable according to RFC2833*/
- enum acTCallerIDTransport CallerIDTransportType; /* Caller ID enable/disable and transport type */
- struct TSignalingDetectorsControl SignalingDetectorsControl; /*Enables/Disables various DTMF,CallProgress,MF,Line signaling detectors. according to TSignalingDetectorsControl structure*/
- unsigned int RTPSSRC; /* channel's SSRC*/
- unsigned int RTPCNAMELength;/* channel's RTCP canonical name length*/
- char RTPCNAME[255]; /* channel's RTCP canonical name*/
- int EnableRFC2658Interleaving; /* /*setting the EVRC operation mode according to enum TEVRCMode */
- int DisableRTCPIntervalRandomization; /* =0 if RTCP packets should be transmitted at a randomized timing (1 for constant timing) */
- int DisableFirstIncomingPacketDetection; /* =1 if first incoming RTP packet processing should be disabled */
- int RTPRedundancyDepth;/*apply redundancy sequence per RFC2198 - currently only =1 is supported*/
- int RTPRFC2833RedundancyDepth;/*apply redundancy sequence per RFC2198 (Redundancy) according to RFC2833 (DTMF Realy) */
- int UseNIorPCI; /*=1 if channel will use NI interface, =0 if PCI interface*/
- int UniDirectionalRTP; /*enables one sided RTP stream - according to TUniDirectionalRTPMode*/
- int CypherType; /*=0 for no cypher, o.w. according to acTCypherType*/
- int CypherMode; /*the mode of the cypher according to acTCypherMode*/
- int CypherKeyLength;/*length in bytes of cypher key*/
- int CypherKeyCRC; /*CRC of cypher key*/
- unsigned char CypherKey[CYPHER_MAX_KEY_LENGTH]; /*Cypher key (to be used for both encrypt & decrypt)*/
- unsigned char CypherInitializationVec[CYPHER_BLOCK_SIZE]; /*cypher initialization vector*/
- char SIDPayloadEnable; /*=1 if we are to send SID packets with RTP SID type */
- int DisableSoftIPLoopback; /*=1 to send packets destined to ourselves to the NIC. 0=bypass internally*/
- int IsSCM; /*=1 if this channel is part of Sub-Channel-Mux bundle, =0 otherwise.*/
- int SCMAnchor; /*the channel which is the anchor to Sub-Channel-Mux bundle.*/
- int TDMBusInputPort; /*MVIP/SC bus Port that channel should listen to */
- int TDMBusInputChannel; /*MVIP/SC bus Channel that channel should listen to */
- int TDMBusOutputPort; /*MVIP/SC bus Port that channel should transmit to */
- int TDMBusOutputChannel; /*MVIP/SC bus Channel that channel should transmit to */
- int TDMBusOutputDisable; /*disable Output for MVIP/SC bus Channel */
- unsigned int LocalIPAddr; /*The local IP Address (as used by network driver)*/
- struct TUDPAddr LocalRTP; /*local side's RTP port*/
- struct TUDPAddr RemoteRTP; /*remote side's RTP port*/
- struct TUDPAddr RemoteRTCP; /*remote side's RTCP port*/
- struct TUDPAddr RemoteT38; /*remote side's T38 port*/
- struct TUDPAddr LocalL2TP; /* LAC address */
- struct TUDPAddr RemoteL2TP; /* LNS address */
- short TxCID; /*connect to which channel*/
- unsigned int FlashHookPeriod; /* hook flash time in msec */
- int PCMToPCMTimeSlot; /*PCM to PCM time slot that channel is tuned to*/
- char PcmToPcmEnable; /* Pcm To Pcm Enable (1=Enable) */
- char SUMC ; /*Summation Configuration, this field is valid only if PcmToPcmEnable = 1*/
- char IBSDRedirection; /* IBS Detection Redirection (=0 for PCM side, =1 for IP side =2 from both sides) */
- int PlayBargeIn; /* Determines whether the Play will be stoped by voice or DTMF barge-Ins */
- int VoicePromptBargeIn; /* Determines whether the PlayVoicePrompt will be stoped by voice or DTMF barge-Ins */
- struct TAgcInfo AgcInfo; /* Agc Information */
- struct TEnergyDetectorInfo EnergyDetectorInfo; /* Energy detector Information */
- struct TPatternDetectorInfo PatternDetectorInfo; /* Pattern Detector Information */
- struct TAnswerDetectorInfo AnswerDetectorInfo; /* Answer Detector Information */
- acTFile2NI File2NIActive; /*=1 if File to NI activity session is on.*/
- int L2TPActive; /* indicates the status of logical channel related to Data transfer.
- Possible values (0-inactive; 1-LCP in progress; 2-L2TP active)*/
- /*-=-*/
- char ProxyLCPActive; /* indicates the status of logical channel related to LCP-Data
- transfer. (0-inactive or LCP finished ; 1-LCP in progress) */
- char TerminalActive; /* indicates the status of logical channel related to Terminal-Data
- transfer. (0-inactive or Terminal mode finished ; 1-Terminal is active) */
- /* HR! Changed NetworkType to ChannelType */
- /* ATM specific information (only for the new devices) : */
- acTNetwork ChannelType; /* IP / ATM */
- int ATMActive; /* =1 if active ,=0 if idle */
- short VCCID; /* Vcc identifier of the ATM VC in which this AAL2 channel is to reside */
- char AAL2TxCID; /* AAL2 CID number associated with this Tx AAL2 channel */
- char AAL2RxCID; /* AAL2 CID number associated with this Rx AAL2 channel */
- char ProfileID; /* Profile ID caculated according to Group + Specific Profile ID */
- int ProfileEntry; /* Entry line number in the specific profile */
- char PCMCoderType; /* Alaw or MUlaw */
- acTAAL2CASRelayMode CASRelayMode; /* according to vaTCASRelayMode -- ATM */
- acTCASMode CASRelayTransportMode; /*Enable / Disable the CAS relay mode -- VoIP*/
- char EnableNetworkCASEvent; /* Enable of AAL2 CAS events to User */
- acTAAL2ProtocolType AAL2ProtocolType; /* SSCS, SSSAR Transparent mode or SSSAR Support mode */
- /* Agg Channel Info : */
- enum acTAggDeliveryMethod AggDeliveryMethod;
- /* HR! RAS Settings */
- #if RAS_IF_SUPPORTED
- TRASConnType RAS_call_type;
- #endif
- TacModemChannelAttr ModemSetup;
- unsigned short L2TPTunnelID; /* L2TP tunnel Index */
- unsigned char L2TPHandleHDLC;
- /*-=- =1 for VoIP and =0 for RAS */
- char CASBouncingEnable;
- unsigned char RASDebugMode; /* if =1, channel & session DEBUG statistics
- are added to MANDATORY statistics that sent to control-user at end of call */
- /*-=- HDLC handling*/
- char HdlcMonitoringOnly; /*=1 if we are invoking the encoder only to monitor HDLC framing*/
- char HDLCFramingAbility; /* 1- Process HDLC frames, 0 Avoid */
- THdlcRate HdlcRate; /* HDLC rate */
- int HdlcMNEF; /* Min number of Frame end flags*/
- int HdlcMinFrameLen; /* Min. HDLC Message length */
- THdlcIfpPattern IFP; /* Interframe fill pattern */
- int DeviceIndex; /* The DSP Device Index associated with this channel */
- char SendDummyPackets; /*1=Sending Dummy packets to the PCI during silnece */
- int MonitorSignalingChangesOnly;
- unsigned int RTPDTMFRFC2833PayloadType ;
- unsigned int RTPRedundancyRFC2198PayloadType;
- unsigned int FaxByPassPayloadType;
- int CIDType ;
- char NOB ; /*used for the BFI payload in case of Zero Copy Mode , its value should be ChInfo[].VoiceCmd.M + 1 */
- /* IP-MEDIA Fax Termination */
- enum TFaxEngineMode FaxEngineMode;
- enum TToneDirection FaxDirection;
- int TFOV;
- /* PlayBack Speed control */
- TPlayBackSpeed PlayBackSpeed;
- TPlayBackMode PlayBackMode;
- TacControl PlayBackSpeedControl;
- int PlayBackWatermark;
- struct TMediationChannelInfo MediaChInfo; /* Mediation between Channels Information */
- char P2PCoder; /* Packet To Packet coder type */
- char PreviousP2PCoder; /*in case of voice prompy to network we should save the old P2PCoder to restore */
- TVoicePayloadFormat VoicePayloadFormat; /* support CISCO RTP compatible mode for G726/G727 coders; default 0 = regular RTP ,1 = CISCO mode*/
- struct T3WayConferenceInfo ThreeWayConferenceInfo; /* Three Way Conferencing configuration */
- TacCNGDetectorMode CNGDetectorMode; /* CNG Detection Control*/
- TSIDNumberCoefficients SIDCoefficientsNumber; /* Number of coefficients sent to describe silence in SID (Silence Indicator) payload*/
- };
- typedef struct TChannelInfo TUserChannelSetupInfo;
- /* Device Info - contains information about the DSP devices */
- struct TDeviceInfo
- {
- int DeviceDescriptor; /* Index into the acDLDescriptor table */
- short FirstCID; /* First (lowest) Channel ID associated with this device */
- int NumberOfChannels; /* Number of channels supported by this device */
- char *MainDL;
- char *BootDL;
- char *BitDL;
- int PatternDetectorThreshold; /* Pattern Detector number of cons. pattern the send event */
- int DspFatalErrorsCount;
- };
- typedef struct
- {
- CMD_CH_SEND ChannelSetupCommandRequired;
- CMD_CH_SEND ChannelECCommandRequired;
- CMD_CH_SEND ChannelRelayCommandRequired;
- } TChannelCurrentCommand;
- #endif /*end of #ifndef TYPEDEF_H*/