www.pudn.com > d4j.zip > DXCAP.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