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

📄 dxcap.java

📁 著名的dialogic电话语音卡的java驱动程序,已经验证可用。
💻 JAVA
字号:
// DXCAP: Model DX call analisys parameters
// $Id: DXCAP.java,v 1.4 2003/11/13 11:43:03 cgm8 Exp $
/* 
 * Copyright (c) 1999 Carlos G Mendioroz.
 *
 *  This file is part of D4J.
 *
 *  D4J is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2 of the License, or (at your option) any later version.
 *  
 *  D4J is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *  
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the
 *  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 *  Boston, MA  02111-1307, USA.
 *
 * Report problems and direct all questions to:
 *
 *	tron@acm.org
 */
package local.dialogic;

public class DXCAP extends java.lang.Object
{

// This is what we model:

 /* DX_CAP

 *
 * Call Analysis parameters
 * [NOTE: All user-accessible structures must be defined so as to be
 *        unaffected by structure packing.]
 * /
typedef struct DX_CAP {
   unsigned short ca_nbrdna;        // # of rings before no answer. 
   unsigned short ca_stdely;        // Delay after dialing before analysis. 
   unsigned short ca_cnosig;        // Duration of no signal time out delay. 
   unsigned short ca_lcdly;         // Delay after dial before lc drop connect 
   unsigned short ca_lcdly1;        // Delay after lc drop con. before msg. 
   unsigned short ca_hedge;         // Edge of answer to send connect message. 
   unsigned short ca_cnosil;        // Initial continuous noise timeout delay. 
   unsigned short ca_lo1tola;       // % acceptable pos. dev of short low sig. 
   unsigned short ca_lo1tolb;       // % acceptable neg. dev of short low sig. 
   unsigned short ca_lo2tola;       // % acceptable pos. dev of long low sig. 
   unsigned short ca_lo2tolb;       // % acceptable neg. dev of long low sig. 
   unsigned short ca_hi1tola;       // % acceptable pos. dev of high signal. 
   unsigned short ca_hi1tolb;       // % acceptable neg. dev of high signal. 
   unsigned short ca_lo1bmax;       // Maximum interval for shrt low for busy. 
   unsigned short ca_lo2bmax;       // Maximum interval for long low for busy. 
   unsigned short ca_hi1bmax;       // Maximum interval for 1st high for busy 
   unsigned short ca_nsbusy;        // Num. of highs after nbrdna busy check. 
   unsigned short ca_logltch;       // Silence deglitch duration. 
   unsigned short ca_higltch;       // Non-silence deglitch duration. 
   unsigned short ca_lo1rmax;       // Max. short low  dur. of double ring. 
   unsigned short ca_lo2rmin;       // Min. long low  dur. of double  ring. 
   unsigned short ca_intflg;        // Operator intercept mode. 
   unsigned short ca_intfltr;       // Minimum signal to qualify freq. detect. 
   unsigned short rfu1;             // reserved for future use 
   unsigned short rfu2;             // reserved for future use 
   unsigned short rfu3;             // reserved for future use 
   unsigned short rfu4;             // reserved for future use 
   unsigned short ca_hisiz;         // Used to determine which lowmax to use. 
   unsigned short ca_alowmax;       // Max. low before con. if high >hisize. 
   unsigned short ca_blowmax;       // Max. low before con. if high <hisize. 
   unsigned short ca_nbrbeg;        // Number of rings before analysis begins. 
   unsigned short ca_hi1ceil;       // Maximum 2nd high dur. for a retrain. 
   unsigned short ca_lo1ceil;       // Maximum 1st low dur. for a retrain. 
   unsigned short ca_lowerfrq;      // Lower allowable frequency in hz. 
   unsigned short ca_upperfrq;      // Upper allowable frequency in hz. 
   unsigned short ca_timefrq;       // Total duration of good signal required. 
   unsigned short ca_rejctfrq;      // Allowable % of bad signal. 
   unsigned short ca_maxansr;       // Maximum duration of answer. 
   unsigned short ca_ansrdgl;       // Silence deglitching value for answer. 
   unsigned short ca_mxtimefrq;     // max time for 1st freq to remain in bounds 
   unsigned short ca_lower2frq;     // lower bound for second frequency 
   unsigned short ca_upper2frq;     // upper bound for second frequency 
   unsigned short ca_time2frq;      // min time for 2nd freq to remains in bounds 
   unsigned short ca_mxtime2frq;    // max time for 2nd freq to remain in bounds 
   unsigned short ca_lower3frq;     // lower bound for third frequency 
   unsigned short ca_upper3frq;     // upper bound for third frequency 
   unsigned short ca_time3frq;      // min time for 3rd freq to remains in bounds 
   unsigned short ca_mxtime3frq;    // max time for 3rd freq to remain in bounds 
   unsigned short ca_dtn_pres;      // Length of a valid dial tone (def=1sec) 
   unsigned short ca_dtn_npres;     // Max time to wait for dial tone (def=3sec)
   unsigned short ca_dtn_deboff;    // The dialtone off debouncer (def=100ms) 
   unsigned short ca_pamd_failtime; // Wait for AMD/PVD after cadence break(default=4sec)
   unsigned short ca_pamd_minring;  // min allowable ring duration (def=1.9sec)
   byte ca_pamd_spdval;             // Set to 2 selects quick decision (def=1) 
   byte ca_pamd_qtemp;              // The Qualification template to use for PAMD 
   unsigned short ca_noanswer;      // time before no answer after first ring (default=30sec) 
   unsigned short ca_maxintering;   // Max inter ring delay before connect (8 sec) 
} DX_CAP; */

   public int nbrdna = 0;
   public int stdely = 0;
   public int cnosig = 0;
   public int lcdly = 0;
   public int lcdly1 = 0;
   public int hedge = 0;
   public int cnosil = 0;
   public int lo1tola = 0;
   public int lo1tolb = 0;
   public int lo2tola = 0;
   public int lo2tolb = 0;
   public int hi1tola = 0;
   public int hi1tolb = 0;
   public int lo1bmax = 0;
   public int lo2bmax = 0;
   public int hi1bmax = 0;
   public int nsbusy = 0;
   public int logltch = 0;
   public int higltch = 0;
   public int lo1rmax = 0;
   public int lo2rmin = 0;
   public int intflg = 0;
   public int intfltr = 0;
   public int hisiz = 0;
   public int alowmax = 0;
   public int blowmax = 0;
   public int nbrbeg = 0;
   public int hi1ceil = 0;
   public int lo1ceil = 0;
   public int lowerfrq = 0;
   public int upperfrq = 0;
   public int timefrq = 0;
   public int rejctfrq = 0;
   public int maxansr = 0;
   public int ansrdgl = 0;
   public int mxtimefrq = 0;
   public int lower2frq = 0;
   public int upper2frq = 0;
   public int time2frq = 0;
   public int mxtime2frq = 0;
   public int lower3frq = 0;
   public int upper3frq = 0;
   public int time3frq = 0;
   public int mxtime3frq = 0;
   public int dtn_pres = 0;
   public int dtn_npres = 0;
   public int dtn_deboff = 0;
   public int pamd_failtime = 0;
   public int pamd_minring = 0;
   public int pamd_spdval = 0;
   public int pamd_qtemp = 0;
   public int noanswer = 0;
   public int maxintering = 0;
}

⌨️ 快捷键说明

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