📄 dialogic.linux
字号:
// protected static native void cc_GetFrame(int linedev, byte rcvframe[]);
// static final int CC_GETINFOELEM = 553;
// protected static native void cc_GetInfoElem(int linedev, byte ie[]);
// static final int CC_GETLINEDEV = 554;
// protected static native int cc_GetLineDev(EVT evt); // Returns linedev
// static final int CC_GETNETH = 555;
// protected static native int cc_do_GetNetH(int linedev); // Returns net handle
static final int CC_GETPARM = 556;
protected static native int cc_do_GetParm(int linedev, int parm_id); // Returns value
protected synchronized static int cc_GetParm(int linedev, int parm_id) {
cc_p1 = linedev;
cc_p2 = parm_id;
dowork(CC_GETPARM);
if (workException != null) throw workException;
return cc_ret;
}
private static void cc_work_GetParm() {cc_ret = cc_do_GetParm(cc_p1, cc_p2); }
// static final int CC_GETSAPI = 557;
// protected static native void cc_GetSAPI(byte sapi[], EVT evt);
// static final int CC_GETUSRATTR = 558;
// protected static native int cc_GetUsrAttr(int linedev); // Returns user data
// static final int CC_GETVER = 559;
// protected static native int cc_GetVer(int linedev); // Returns major << 16 | minor
// static final int CC_GETVOICEH = 560;
// protected static native int cc_GetVoiceH(int linedev); // Returns voice handle
// static final int CC_LINEDEV2CRN = 561;
// protected static native int cc_LineDev2CRN(int linedev); // Returns CRN
// static final int CC_PUTEVT = 562;
// protected static native void cc_PutEvt(int linedev, long event_type);
static final int CC_RESULTMSG = 563;
protected static native void cc_do_ResultMsg(int linedev, int ResultCode, byte msg[]);
protected synchronized static void cc_ResultMsg(int linedev, int ResultCode, byte msg[]) {
cc_p1 = linedev;
cc_p2 = ResultCode;
cc_buf = msg;
dowork(CC_RESULTMSG);
if (workException != null) throw workException;
}
private static void cc_work_ResultMsg() {cc_do_ResultMsg(cc_p1, cc_p2, cc_buf); }
// static final int CC_RESULTVALUE = 564;
// protected static native int cc_ResultValue(EVT evt); // Returns result
// static final int CC_SETCHANSTATE = 565;
// protected static native void cc_SetChanState(int linedev, int chan_state, int mode);
// static final int CC_SETDCHANCFG = 566;
// protected static native void cc_SetDChanCfg(int linedev, Object dchan_cfg);
static final int CC_SETEVTMSK = 567;
protected static native void cc_do_SetEvtMsk(int devhdl, int mask, int action);
protected synchronized static void cc_SetEvtMsk(int devhdl, int mask, int action) {
cc_p1 = devhdl;
cc_p2 = mask;
cc_p3 = action;
dowork(CC_SETEVTMSK);
if (workException != null) throw workException;
}
private static void cc_work_SetEvtMsk() {cc_do_SetEvtMsk(cc_p1, cc_p2, cc_p3); }
// static final int CC_SETINFOELEM = 568;
// protected static native void cc_SetInfoElem(int linedev, byte ie[]);
static final int CC_SETPARM = 569;
protected static native void cc_do_SetParm(int linedev, int parm_id, int value);
protected synchronized static void cc_SetParm(int linedev, int parm_id, int value) {
cc_p1 = linedev;
cc_p2 = parm_id;
cc_p3 = value;
dowork(CC_SETPARM);
if (workException != null) throw workException;
}
private static void cc_work_SetParm() {cc_do_SetParm(cc_p1, cc_p2, cc_p3); }
// static final int CC_TERMREGISTERRESPONSE = 501;
// protected static native void cc_TermRegisterResponse(int linedev, Object term_blk);
// static final int CC_SETUSRATTR = 570;
// protected static native void cc_SetUsrAttr(int linedev, long usr_attr);
// static final int CC_SNDFRAME = 571;
// protected static native void cc_SndFrame(int linedev, byte sndframe[]);
// static final int CC_STARTTRACE = 572;
// protected static native void cc_StartTrace(int linedev, String tracefilename);
// static final int CC_STOPTRACE = 573;
// protected static native void cc_StopTrace(int linedev);
// Global Call Interface Functions
// static final int CC_BLOCKTS = 574;
// protected static native void cc_BlockTs(int linedev);
// static final int CC_GETERROR = 575;
// protected static native int cc_geterror();
// static final int CC_SETERROR = 576;
// protected static native void cc_seterror(int error);
// static final int CC_UNBLOCKTS = 577;
// protected static native void cc_UnBlockTs(int linedev);
// BRI Interface Function
// static final int CC_TONEREDEFINE = 578;
// protected static native void cc_ToneRedefine(int LineDev, int sigtype, Object ToneParm, int mode);
// static final int CC_PLAYTONE = 579;
// protected static native void cc_PlayTone(int LineDev, Object ToneParm, TPT tpt, int mode);
// static final int CC_STOPTONE = 580;
// protected static native void cc_StopTone(int LineDev, int mode);
// static final int CC_GETPARMEX = 581;
// protected static native void cc_GetParmEx(int linedev, int parm_id, Object value);
// static final int CC_SETPARMEX = 582;
// protected static native void cc_SetParmEx(int linedev, int parm_id, Object value);
// Global call
static String gc_sp = "";
static long gc_l1 = 0;
static int gc_p1 = 0;
static int gc_p2 = 0;
static int gc_p3 = 0;
static int gc_ret = 0;
static byte gc_buf[] = null;
static EVT evt;
static final int GC_START = 601;
protected synchronized static void gc_Start() {
dowork(GC_START);
if (workException != null) throw workException;
}
private static void gc_work_Start() { GCChannel.gc_Start(); }
static final int GC_STOP = 602;
protected synchronized static void gc_Stop() {
dowork(GC_STOP);
if (workException != null) throw workException;
}
private static void gc_work_Stop() { GCChannel.gc_Stop(); }
static final int GC_OPEN = 603;
protected synchronized static int gc_Open(String name) {
gc_sp = name;
dowork(GC_OPEN);
if (workException != null) throw workException;
return gc_ret;
}
private static void gc_work_Open() { gc_ret = GCChannel.gc_Open(gc_sp); }
static final int GC_CLOSE = 604;
protected synchronized static void gc_Close(int line) {
gc_p1 = line;
dowork(GC_CLOSE);
if (workException != null) throw workException;
}
private static void gc_work_Close() { GCChannel.gc_Close(gc_p1); }
static final int GC_GETVOICEH = 605;
protected synchronized static int gc_GetVoiceH(int line) {
gc_p1 = line;
dowork(GC_GETVOICEH);
if (workException != null) throw workException;
return gc_ret;
}
private static void gc_work_GetVoiceH() { gc_ret = GCChannel.gc_GetVoiceH(gc_p1); }
static final int GC_GETNETWORKH = 606;
protected synchronized static int gc_GetNetworkH(int line) {
gc_p1 = line;
dowork(GC_GETNETWORKH);
if (workException != null) throw workException;
return gc_ret;
}
private static void gc_work_GetNetworkH() { gc_ret = GCChannel.gc_GetNetworkH(gc_p1); }
static final int GC_ATTACH = 607;
protected synchronized static void gc_Attach(int line, int voiceH, int mode) {
gc_p1 = line;
gc_p2 = voiceH;
gc_p3 = mode;
dowork(GC_ATTACH);
if (workException != null) throw workException;
}
private static void gc_work_Attach() { GCChannel.gc_Attach(gc_p1, gc_p2, gc_p3); }
static final int GC_DETACH = 608;
protected synchronized static void gc_Detach(int line, int voiceH, int mode) {
gc_p1 = line;
gc_p2 = voiceH;
gc_p3 = mode;
dowork(GC_DETACH);
if (workException != null) throw workException;
}
private static void gc_work_Detach() { GCChannel.gc_Detach(gc_p1, gc_p2, gc_p3); }
static final int GC_WAITCALL = 609;
protected synchronized static int gc_WaitCall(int line, int timeout, int mode) {
gc_p1 = line;
gc_p2 = timeout;
gc_p3 = mode;
dowork(GC_WAITCALL);
if (workException != null) throw workException;
return gc_ret;
}
private static void gc_work_WaitCall() { gc_ret = GCChannel.gc_WaitCall(gc_p1, gc_p2, gc_p3); }
static final int GC_ACCEPTCALL = 610;
protected synchronized static void gc_AcceptCall(int crn, int rings, int mode) {
gc_p1 = crn;
gc_p2 = rings;
gc_p3 = mode;
dowork(GC_ACCEPTCALL);
if (workException != null) throw workException;
}
private static void gc_work_AcceptCall() { GCChannel.gc_AcceptCall(gc_p1, gc_p2, gc_p3); }
static final int GC_ANSWERCALL = 611;
protected synchronized static void gc_AnswerCall(int crn, int rings, int mode) {
gc_p1 = crn;
gc_p2 = rings;
gc_p3 = mode;
dowork(GC_ANSWERCALL);
if (workException != null) throw workException;
}
private static void gc_work_AnswerCall() { GCChannel.gc_AnswerCall(gc_p1, gc_p2, gc_p3); }
static final int GC_CALLACK = 612;
protected synchronized static void gc_CallAck(int crn, int dnis, int mode) {
gc_p1 = crn;
gc_p2 = dnis;
gc_p3 = mode;
dowork(GC_CALLACK);
if (workException != null) throw workException;
}
private static void gc_work_CallAck() { GCChannel.gc_CallAck(gc_p1, gc_p2, gc_p3); }
static final int GC_DROPCALL = 613;
protected synchronized static void gc_DropCall(int crn, int cause, int mode) {
gc_p1 = crn;
gc_p2 = cause;
gc_p3 = mode;
dowork(GC_DROPCALL);
if (workException != null) throw workException;
}
private static void gc_work_DropCall() { GCChannel.gc_DropCall(gc_p1, gc_p2, gc_p3); }
static final int GC_GETDNIS = 614;
protected synchronized static int gc_GetDNIS(int crn, byte buf[]) {
gc_p1 = crn;
gc_buf = buf;
dowork(GC_GETDNIS);
if (workException != null) throw workException;
return gc_ret;
}
private static void gc_work_GetDNIS() { gc_ret = GCChannel.gc_GetDNIS(gc_p1, gc_buf); }
static final int GC_GETANI = 615;
protected synchronized static int gc_GetANI(int crn, byte buf[]) {
gc_p1 = crn;
gc_buf = buf;
dowork(GC_GETANI);
if (workException != null) throw workException;
return gc_ret;
}
private static void gc_work_GetANI() { gc_ret = GCChannel.gc_GetANI(gc_p1, gc_buf); }
static final int GC_GETCALLINFO = 616;
protected synchronized static void gc_GetCallInfo(int crn, int id, byte buf[]) {
gc_p1 = crn;
gc_p2 = id;
gc_buf = buf;
dowork(GC_GETCALLINFO);
if (workException != null) throw workException;
}
private static void gc_work_GetCallInfo() { GCChannel.gc_GetCallInfo(gc_p1, gc_p2, gc_buf); }
static final int GC_GETPARM = 617;
protected synchronized static int gc_GetParm(int line, int id) {
gc_p1 = line;
gc_p2 = id;
dowork(GC_GETPARM);
if (workException != null) throw workException;
return gc_ret;
}
private static void gc_work_GetParm() { gc_ret = GCChannel.gc_GetParm(gc_p1, gc_p2); }
static final int GC_SETPARM = 618;
protected synchronized static void gc_SetParm(int line, int id, int value) {
gc_p1 = line;
gc_p2 = id;
gc_p3 = value;
dowork(GC_SETPARM);
if (workException != null) throw workException;
}
private static void gc_work_SetParm() { GCChannel.gc_SetParm(gc_p1, gc_p2, gc_p3); }
static final int GC_MAKECALL = 619;
protected synchronized static int gc_MakeCall(int line, String number, int to, int mode) {
gc_p1 = line;
gc_sp = number;
gc_p2 = to;
gc_p3 = mode;
dowork(GC_MAKECALL);
if (workException != null) throw workException;
return gc_ret;
}
private static void gc_work_MakeCall() { gc_ret = GCChannel.gc_MakeCall(gc_p1, gc_sp, gc_p2, gc_p3); }
static final int GC_RELEASECALL = 620;
protected synchronized static void gc_ReleaseCall(int crn) {
gc_p1 = crn;
dowork(GC_RELEASECALL);
if (workException != null) throw workException;
}
private static void gc_work_ReleaseCall() { GCChannel.gc_ReleaseCall(gc_p1); }
static final int GC_RESETLINEDEV = 621;
protected synchronized static void gc_ResetLineDev(int line, int mode) {
gc_p1 = line;
gc_p2 = mode;
dowork(GC_RESETLINEDEV);
if (workException != null) throw workException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -