📄 dialogic.linux
字号:
return;
}
private static void ms_work_unlisten() {ms_do_unlisten(ms_p1); }
static final int MS_GENRING = 416;
private static native void ms_do_genring(int dev, int len, int mode);
protected synchronized static void ms_genring(int dev, int len, int mode){
ms_p1 = dev;
ms_p2 = len;
ms_p3 = mode;
dowork(MS_GENRING);
if (workException != null) throw workException;
}
private static void ms_work_genring() {ms_do_genring(ms_p1, ms_p2, ms_p3); }
static final int MS_GENZIPTONE = 417;
private static native void ms_do_genziptone(int dev);
protected synchronized static void ms_genziptone(int dev){
ms_p1 = dev;
dowork(MS_GENZIPTONE);
if (workException != null) throw workException;
}
private static void ms_work_genziptone() {ms_do_genziptone(ms_p1); }
static final int MS_SETVOL = 418;
private static native void ms_do_setvol(int dev, int type, int steps);
protected synchronized static void ms_setvol(int dev, int type, int steps){
ms_p1 = dev;
ms_p2 = type;
ms_p3 = steps;
dowork(MS_SETVOL);
if (workException != null) throw workException;
}
private static void ms_work_setvol() {ms_do_setvol(ms_p1, ms_p2, ms_p3); }
static final int MS_ATMS_TSSGBIT = 419;
private static native int ATMS_do_TSSGBIT(int dev);
protected synchronized static int ATMS_TSSGBIT(int dev){
ms_p1 = dev;
dowork(MS_ATMS_TSSGBIT);
if (workException != null) throw workException;
return ms_ret;
}
private static void ATMS_work_TSSGBIT() {ms_ret = ATMS_do_TSSGBIT(ms_p1); }
static final int MS_STOPFN = 420;
private static native void ms_do_stopfn(int dev, int fn);
protected synchronized static void ms_stopfn(int dev, int fn){
ms_p1 = dev;
ms_p2 = fn;
dowork(MS_STOPFN);
if (workException != null) throw workException;
}
private static void ms_work_stopfn() {ms_do_stopfn(ms_p1, ms_p2); }
// ISDN
static String cc_sp = "";
static long cc_l1 = 0;
static int cc_p1 = 0;
static int cc_p2 = 0;
static int cc_p3 = 0;
static int cc_p4 = 0;
static int cc_ret = 0;
static Object cc_op = null;
static byte cc_buf[] = null;
static final int CC_ANSWERCALL = 501;
protected static native void cc_do_AnswerCall(long crn, int rings, int mode);
protected synchronized static void cc_AnswerCall(long crn, int rings, int mode) {
cc_l1 = crn;
cc_p2 = rings;
cc_p3 = mode;
dowork(CC_ANSWERCALL);
if (workException != null) throw workException;
}
private static void cc_work_AnswerCall() {cc_do_AnswerCall(cc_l1, cc_p2, cc_p3); }
static final int CC_DROPCALL = 502;
protected static native void cc_do_DropCall(long crn, int cause, int mode);
protected synchronized static void cc_DropCall(long crn, int cause, int mode) {
cc_l1 = crn;
cc_p2 = cause;
cc_p3 = mode;
dowork(CC_DROPCALL);
if (workException != null) throw workException;
}
private static void cc_work_DropCall() {cc_do_DropCall(cc_l1, cc_p2, cc_p3); }
static final int CC_MAKECALL = 503;
protected static native int cc_do_MakeCall(int linedev, String phone_num,
Object makecall_blk, int timeout, int mode); // Returns crn
protected synchronized static int cc_MakeCall(int linedev, String phone_num,
Object makecall_blk, int timeout, int mode) {
cc_p1 = linedev;
cc_sp = phone_num;
cc_op = makecall_blk;
cc_p2 = timeout;
cc_p3 = mode;
dowork(CC_MAKECALL);
if (workException != null) throw workException;
return cc_ret;
}
private static void cc_work_MakeCall() {cc_ret = cc_do_MakeCall(cc_p1, cc_sp, cc_op, cc_p2, cc_p3); }
// static final int CC_RELEASECALL = 504;
// protected static native void cc_ReleaseCall(long crn);
static final int CC_RELEASECALLEX = 505;
protected static native void cc_do_ReleaseCallEx(long crn, int mode);
protected synchronized static void cc_ReleaseCallEx(long crn, int mode) {
cc_l1 = crn;
cc_p2 = mode;
dowork(CC_RELEASECALLEX);
if (workException != null) throw workException;
}
private static void cc_work_ReleaseCallEx() {cc_do_ReleaseCallEx(cc_l1, cc_p2); }
static final int CC_WAITCALL = 506;
protected static native int cc_do_WaitCall(int linedev, Object waitcall_blk,
int timeout, int mode); // Would return crn if synchronous
protected synchronized static int cc_WaitCall(int linedev, Object waitcall_blk,
int timeout, int mode) {
cc_p1 = linedev;
cc_op = waitcall_blk;
cc_p2 = timeout;
cc_p3 = mode;
dowork(CC_WAITCALL);
if (workException != null) throw workException;
return cc_ret;
}
private static void cc_work_WaitCall() {cc_ret = cc_do_WaitCall(cc_p1, cc_op, cc_p2, cc_p3); }
// Optional Cal Handling Functions
static final int CC_ACCEPTCALL = 507;
protected static native void cc_do_AcceptCall(long crn, int rings, int mode);
protected synchronized static void cc_AcceptCall(long crn, int rings, int mode) {
cc_l1 = crn;
cc_p2 = rings;
cc_p3 = mode;
dowork(CC_ACCEPTCALL);
if (workException != null) throw workException;
}
private static void cc_work_AcceptCall() {cc_do_AcceptCall(cc_l1, cc_p2, cc_p3); }
// static final int CC_CALLACK = 508;
// protected static native void cc_CallAck(long crn, int new_linedev, int msg_id);
// static final int CC_CALLPROGRESS = 509;
// protected static native void cc_CallProgress(long crn, int indicator);
// static final int CC_CONGESTION = 510;
// protected static native void cc_Congestion(long crn, int cause);
// static final int CC_FACILITYACK = 511;
// protected static native void cc_FacilityAck(long crn, byte facility[]);
// static final int CC_FACILITYREJ = 512;
// protected static native void cc_FacilityRej(long crn, byte facility[], int cause);
// static final int CC_FACILITYREQ = 513;
// protected static native void cc_FacilityReq(long crn, byte facility[], int mode);
static final int CC_GETANI = 514;
protected static native void cc_do_GetANI(long crn, byte anibuf[]);
protected synchronized static void cc_GetANI(long crn, byte anibuf[]) {
cc_l1 = crn;
cc_buf = anibuf;
dowork(CC_GETANI);
if (workException != null) throw workException;
}
private static void cc_work_GetANI() {cc_do_GetANI(cc_l1, cc_buf); }
// static final int CC_GETBILLING = 515;
// protected static native void cc_GetBilling(long crn, byte billing[]);
// static final int CC_GETCALLINFO = 516;
// protected static native void cc_GetCallInfo(long crn, int info_id, byte value[]);
static final int CC_GETDNIS = 517;
protected static native void cc_do_GetDNIS(long crn, byte dnis[]);
protected synchronized static void cc_GetDNIS(long crn, byte dnis[]) {
cc_l1 = crn;
cc_buf = dnis;
dowork(CC_GETDNIS);
if (workException != null) throw workException;
}
private static void cc_work_GetDNIS() {cc_do_GetDNIS(cc_l1, cc_buf); }
// static final int CC_GETMOREDIGITS = 518;
// protected static native void cc_GetMoreDigits(long crn, int num_digits, long timeout, int mode);
// static final int CC_GETNONCALLMSG = 519;
// protected static native void cc_GetNonCallMsg(int linedev, byte noncallmsg[]);
// static final int CC_HOLDACK = 520;
// protected static native void cc_HoldAck(long crn);
// static final int CC_HOLDCALL = 521;
// protected static native void cc_HoldCall(long crn, int mode);
// static final int CC_HOLDREJ = 522;
// protected static native void cc_HoldRej(long crn, int cause);
static final int CC_REJECTCALL = 523;
protected static native void cc_do_RejectCall(long crn, int cause, int mode);
protected synchronized static void cc_RejectCall(long crn, int cause, int mode) {
cc_l1 = crn;
cc_p2 = cause;
cc_p3 = mode;
dowork(CC_REJECTCALL);
if (workException != null) throw workException;
}
private static void cc_work_RejectCall() {cc_do_RejectCall(cc_l1, cc_p2, cc_p3); }
// static final int CC_REQANI = 524;
// protected static native void cc_ReqANI(long crn, byte anibuf[], int req_type, int mode);
// static final int CC_RETRIEVEACK = 525;
// protected static native void cc_RetrieveAck(long crn);
// static final int CC_RETRIEVECALL = 526;
// protected static native void cc_RetrieveCall(long crn, int mode);
// static final int CC_RETRIEVEREJ = 527;
// protected static native void cc_RetrieveRej(long crn, int cause);
// DTE Call Transfer Framework changes
// static final int CC_TRANSFERCALL = 528;
// protected static native void cc_TransferCall(long crn1, long crn2, int mode);
// static final int CC_TRANSFERACK = 529;
// protected static native void cc_TransferAck(long crn);
// static final int CC_TRANSFERREJ = 530;
// protected static native void cc_TransferRej(long crn, int cause);
// End DTE changes
// static final int CC_SETBILLING = 531;
// protected static native void cc_SetBilling(long crn, int rate_type, int rate, int mode);
// static final int CC_SETCALLINGNUM = 532;
// protected static native void cc_SetCallingNum(int linedev, String callingnum);
// static final int CC_SETMINDIGITS = 533;
// protected static native void cc_SetMinDigits(int linedev, int mindigs);
// static final int CC_SNDNONCALLMSG = 534;
// protected static native void cc_SndNonCallMsg(int linedev, int crn_type, int msg_type, byte noncallmsg[]);
// static final int CC_SNDMSG = 535;
// protected static native void cc_SndMsg(long crn, int msg_type, byte sndmsg[]);
// static final int CC_TERMINATECALL = 536;
// protected static native void cc_TerminateCall(long crn, int cause);
// static final int CC_TERMINATERELEASE = 537;
// protected static native void cc_TerminateRelease(long crn);
// System Control Functions
static final int CC_CLOSE = 538;
protected static native void cc_do_Close(int linedev);
protected synchronized static void cc_Close(int linedev) {
cc_p1 = linedev;
dowork(CC_CLOSE);
if (workException != null) throw workException;
}
private static void cc_work_Close() {cc_do_Close(cc_p1); }
static final int CC_OPEN = 539;
protected static native int cc_do_Open(String dev_name, int rfu);// Returns linedev
protected synchronized static int cc_Open(String dev_name, int rfu) {
cc_sp = dev_name;
cc_p1 = rfu;
dowork(CC_OPEN);
if (workException != null) throw workException;
return cc_ret;
}
private static void cc_work_Open() {cc_ret = cc_do_Open(cc_sp, cc_p1); }
static final int CC_RESTART = 540;
protected static native void cc_do_Restart(int linedev, int mode);
protected synchronized static void cc_Restart(int linedev, int mode) {
cc_p1 = linedev;
cc_p2 = mode;
dowork(CC_RESTART);
if (workException != null) throw workException;
}
private static void cc_work_Restart() {cc_do_Restart(cc_p1, cc_p2); }
// System Tools Functions
// static final int CC_CALLSTATE = 541;
// protected static native int cc_CallState(long crn); // Returns state
static final int CC_CAUSEVALUE = 542;
protected static native int cc_do_CauseValue(int linedev); // Returns cause
protected synchronized static int cc_CauseValue(int linedev) {
cc_p1 = linedev;
dowork(CC_CAUSEVALUE);
if (workException != null) throw workException;
return cc_ret;
}
private static void cc_work_CauseValue() {cc_ret = cc_do_CauseValue(cc_p1); }
// static final int CC_CRN2LINEDEV = 543;
// protected static native int cc_CRN2LineDev(long crn); // Returns linedev
// static final int CC_GETBCHANSTATE = 544;
// protected static native int cc_GetBChanState(int linedev); // Returns B chan state
// static final int CC_GETCRN = 545;
// protected static native int cc_GetCRN(EVT evt); // Returns crn
// static final int CC_GETDCHANSTATE = 546;
// protected static native int cc_GetDChanState(int linedev); // Returns D chan state
// static final int CC_GETCES = 547;
// protected static native void cc_GetCES(byte ces[], EVT evt);
// static final int CC_GETDLINKSTATE = 548;
// protected static native int cc_GetDLinkState(int linedev, Object dlink); // Returns DLINK state
// static final int CC_GETNETCRV = 549;
// protected static native int cc_GetNetCRV(long crn); // Returns Net CRV
// static final int CC_GETSIGINFO = 550;
// protected static native void cc_GetSigInfo(byte value[], int infoID, EVT evt);
static final int CC_GETEVTMSK = 551;
protected static native int cc_do_GetEvtMsk(int linedev); // Returns mask
protected synchronized static int cc_GetEvtMsk(int linedev) {
cc_p1 = linedev;
dowork(CC_GETEVTMSK);
if (workException != null) throw workException;
return cc_ret;
}
private static void cc_work_GetEvtMsk() {cc_ret = cc_do_GetEvtMsk(cc_p1); }
// static final int CC_GETFRAME = 552;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -