⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 check.h

📁 Dialogic D41/E语音卡 的一个应用源代码
💻 H
字号:

#include "usergg.h"

#define  MAXRING     1     /* number of rings before picking up      */
#define  USER_RINGS   0xaa1 /* user re_define DE_RINGS event   */

/* vox files to open */
#define  INTRO_VOX   "intro.vox"
#define  INVLD_VOX   "invalid.vox"
#define  BYE_VOX     "goodby.vox"
#define  LINK_VOX    "link.vox"

/* Definition of states */
#define  ST_WTRING		1     /* waiting for an incoming call    */
#define  ST_OFFHK		2     /* going off hook to accept call   */
#define  ST_INTRO		3     /* play the intro.vox file         */
#define  ST_DIGIT		4     /* get dtmf digits (access code)   */
#define  ST_PINUSE		5
#define  ST_INUSE		6
#define  ST_USEPLAY1	7
#define  ST_USEPLAY2	8
#define  ST_USEPLAY3	9
#define  ST_GETUSESEL	10
#define  ST_PINPASS		11
#define  ST_INPASS		12
#define  ST_PINBANK		13
#define  ST_INBANK		14
#define  ST_BANKPLAY1	15
#define  ST_BANKPLAY2	16
#define  ST_BANKPLAY3	17
#define  ST_GETBANKSEL	18
#define  ST_PINCHECK	19
#define  ST_INCHECK		20
#define  ST_CHECKPLAY1	21
#define  ST_CHECKPLAY2	22
#define  ST_CHECKPLAY3	23
#define  ST_GETCHECKSEL	24

#define  ST_USEERR		25
#define  ST_PASSERR		26
#define  ST_BANKERR		27
//#define  ST_CHECKERR	28
#define  ST_NOLASTOK	28
#define  ST_GOODBY      29  /* play goodby.vox                 */
#define  ST_ONHK        30  /* go onhook                       */
#define  ST_CHECKLAST	31
#define  ST_PINNEWPASS	32
#define  ST_INNEWPASS	33
#define  ST_PINNEWPASSA	34
#define  ST_INNEWPASSA	35
#define  ST_PASSNOCHG	36
#define  ST_CHECKLASTOK	37
#define  ST_CHGPASSOK	38
#define  ST_NOLAST		39
#define  ST_CHECKOK		40
#define  ST_SYSERR		41
#define  ST_LASTTIME	42
#define  ST_USETEL1		43
#define  ST_USETEL2		44
#define  ST_PRECORD		45
#define  ST_RECORD		46
#define  ST_RECORDSEL	47
#define  ST_GETRECORDSEL	48
#define  ST_PLAYRECORD	49
#define  ST_USEOUTTIME	50


/**
 **   Function prototypes
 **/
void main_proc();
void msiexit();
void init_41e();
int  waitevt();

int  curr_state(int,int);
int  next_state(int);

int  get_digits(int,int,int);
int  playfh(int,int);
int  play_no_stop(int,int);
int  play_case(int,int);
int  record(int,int);
int  set_hkstate(int,int);
void get_path(char *,int);
int  playdial(int);
int  playtone(int);
void playbusy(int);
int  set_dtionhk(int);
int  get_station(void);
int  get_fixstation(void);
int  check_date_v(int);
void user_onhk(int);
int  msi_voxc(int);
void addconf(int,int);

PORT_TYPE  port[MAX_CHAN+1]={0};
MPORT_TYPE mport[MAX_STAT+1]={0};

/***********************
 **   Global data
************************/

/* file handles for vox files */
int introfh;
int invldfh;
int byefh;
int linkfh;
int busyfh;

int in_line;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -