Copyright © 1993, 2005 Eicon Networks Corporation. 206-324-06
COPYRIGHT NOTICE AND LEGAL DISCLAIMER
Copyright © 1993-2005 Eicon Networks Corporation. All Rights Reserved.You may not reproduce this document in whole or in part without permission in writing from Eicon Networks Corporation.
All contents of this document are subject to change without notice and do not represent a commitment on the part of Eicon Networks Corporation. Reasonable effort is made to ensure the accuracy of the information contained in the document. However, due to ongoing product improvements and revisions, Eicon Networks Corporation does not warrant the accuracy of this information and cannot accept responsibility for errors or omissions that may be contained in this document. It is possible that the use or implementation of any one of the concepts, applications, or ideas described in this document, in marketing collateral produced by or on web pages maintained by Eicon Networks Corporation or its subsidiaries may infringe one or more patents or other intellectual property rights owned by third parties. Eicon Networks Corporation does not provide any intellectual property licenses with the sale of Eicon products other then a license to use such product in accordance with intellectual property owned or validly licensed by Eicon Networks Corporation or its subsidiaries. More detailed information about such intellectual property is available from Eicon Networks Corporation's legal department at 9800 Cavendish Blvd., Montreal, Quebec, Canada H4M 2V9. Eicon Networks Corporation encourages all users of its products to procure all necessary intellectual property licenses required to implement any concepts or applications and does not condone or encourage any intellectual property infringement and disclaims any responsibility related thereto. These intellectual property licenses may differ from country to country and it is the responsibility of those who develop the concepts or applications to be aware of and comply with different national license requirements. In the United States, patents which may need to be licensed for some applications or concepts include but are not limited to U.S. Patent Nos. 5,488,651 and 5,291,546. The software referred to in this document is provided under a Software License Agreement.Refer to the Software License Agreement for complete details governing the use of the software.
All names, products, and services mentioned herein are the trademarks or registered trademarks of their respective organizations and are the sole property of their respective owners. Eicon, Eicon Networks, Diva, Diva ISDN, Diva Server and Connecting People to Information are registered trademarks or trademarks of Eicon Networks Corporation or its subsidiaries.
To contact Eicon Customer Support, refer to the 'Customer Services' section in the printed guide that came with the Eicon product which you purchased or visit our website at www.eicon.com.
Eicon Networks Corporation License Agreement for use of software
This is an Agreement between you the Company and your Affiliates (referred to in some instances as "You" and in other instances as "Company") and all your Authorized Users and Eicon Networks Corporation.
YOU SHOULD CAREFULLY READ THE FOLLOWING TERMS AND CONDITIONS BEFORE INSTALLING OR DOWNLOADING THE SOFTWARE. IF YOU AGREE WITH THESE TERMS YOU MAY PROCEED WITH THE DOWNLAOD OR INSTALLATION OF THE SOFTWARE. IF YOU DO NOT AGREE WITH THESE TERMS, PLEASE RETURN THE PACKAGE IN "AS NEW" CONDITION (INCLUDING DOCUMENTATION AND BINDERS OR OTHER CONTAINERS) AND YOUR MONEY WILL BE REFUNDED. DOWNLOADING OR INSTALLING THE SOFTWARE CONSTITUTES YOUR ACCEPTANCE OF THESE TERMS AND CONDITIONS. YOU ASSUME RESPONSIBILITY FOR THE SELECTION OF THE PROGRAM TO ACHIEVE YOUR INTENDED RESULTS, AND FOR THE INSTALLATION, USE, AND RESULTS OBTAINED FROM THE PACKAGE.
Copyright
The enclosed Software ("Program") and documents are owned by Eicon Networks Corporation ("Eicon") and its suppliers and are protected by copyright laws and international treaty provisions. Therefore, You and your Authorized Users must treat the Program and documentation like any other copyrighted material except as expressly permitted in this License Agreement.
License
Under the terms and conditions of this License Agreement:
You may install and use one copy of the Program on a single-user computer, file server, or on a workstation of a local area network, and only in conjunction with a legally acquired Eicon hardware product;
The primary Authorized User on the computer on which the "Program" is installed may make a second copy for his/her exclusive use on either a home or portable computer;
You may copy the Program into any machine readable or printed form for backup or modification purposes in support of your use of one copy of the Program;
You may make one copy of Eicon's documentation provided that all copyright notices contained within the documentation are retained;
You may modify the Program and/or merge it into another Program for your use in one computer; (any portion of this Program will continue to be subject to the terms and conditions of this Agreement);
You may transfer the Program, documentation and the license to another eligible party within your Company if the other party agrees to accept the terms and conditions of this Agreement. If You transfer the Program and documentation, You must at the same time either transfer all copies whether in printed or machine readable form to the same party or destroy any copies not transferred; this includes all modifications and portions of the Program contained in or merged into other Programs;
You must reproduce and include the copyright notice on any copy, modification or portion of the Program merged into another Program;
You may not rent or lease the Program. You may not reverse engineer, decompile or disassemble the Program. You may not use, copy, modify or transfer the Program and documentation, or any copy, modification or merged portion, in whole or in part, except as expressly provided for in this License Agreement;
If You transfer possession of any copy, modification or merged portion of the Program or documentation to another party in any way other than as expressly permitted in this License Agreement, this license is automatically terminated;
Upgrades
If the Program is provided as an upgrade and the upgrade is an upgrade from another software product licensed to You and Your Authorized Users by Eicon, the upgrade is governed by the License Agreement earlier provided with that software product package and the present License Agreement does not grant you additional license(s).
Terms
The license is effective until terminated. You may terminate it at any time by destroying the Program and documentation together with all copies, modifications and merged portions in any form. It will also terminate upon conditions set forth elsewhere in this Agreement or if you fail to comply with any terms or conditions of this Agreement. You agree upon such termination to destroy the Program and documentation together with all copies, modifications and merged portions in any form.
Limited Warranty
The only warranty Eicon makes is that the medium on which the Program is recorded will be replaced without charge if Eicon, in good faith, determines that it was defective in materials or workmanship and if returned to your supplier with a copy of your receipt within ninety (90) days from the date you received it. Eicon offers no warranty for your reproduction of the Program. This Limited Warranty is void if failure of the Program has resulted from accident, misuse, abuse or misapplication.
Customer Remedies
Eicon's entire liability and You and Your Authorized Users exclusive remedy shall be, at Eicon's option, either (a) return of the price paid or (b) repair or replacement of the Program that does not meet the above Limited Warranty. Any replacement Program will be warranted for the remainder of the original Warranty period.
No Other Warranties
Eicon disclaims all other warranties, either express or implied, including but not limited to implied warranties or merchantability and fitness for a particular purpose and the warranty against latent defects, with respect to the Program and the accompanying documentation. This limited warranty gives You specific legal rights. You may have others, which may vary from jurisdiction to jurisdiction.
No Liability for Consequential Damage
In no event shall Eicon or its suppliers be liable for any damages whatsoever (including without limitation, damages for loss of business profits, business interruption, loss of information, or other pecuniary loss and indirect, consequential, incidental, economic or punitive damages) arising out of the use of or inability to use this Program, even if Eicon has been advised of the possibility of such damages. As some jurisdictions do not allow the exclusion or limitation for certain damages, some of the above limitations may not apply to You or your Authorized Users.
Limit of Liability
Eicon's entire aggregate liability under any provision of this agreement shall be limited to the amount actually paid by You for the affected Program.
Right to Audit
If this Program is licensed for use in a Company, your Company agrees to keep all usual and proper records and books of accounts and all usual proper entries relating to each reproduction and Authorized User of the Program during the term of this Agreement and for a period of three (3) years thereafter. During this period, Eicon may cause an audit to be made of the applicable records in order to verify Your compliance with this Agreement and prompt adjustment shall be made to compensate for any errors or omissions disclosed by such audit. Any such audit shall be conducted by an independent certified public accountant selected by Eicon and shall be conducted during the regular business hours at Your offices and in such a manner as not to interfere with Your normal business activities. Any such audit shall be paid for by Eicon unless material discrepancies are disclosed. For such purposes, "material discrepancies" shall mean three percent (3%) or more of the Authorized Users within the Company. If material discrepancies are disclosed, Your Company agrees to pay Eicon for the costs associated with the audit as well as the license fees for the additional Authorized Users. In no event shall audits be made more frequently than semi-annually unless the immediately preceding audit disclosed a material discrepancy.
Supplementary Software
Any Supplementary Software provided with the Eicon Program referred to in this License Agreement is provided "as is" with no warranty of any kind.
U.S. Government Restricted Rights
The Program and documentation are provided with RESTRICTED RIGHTS. Use, duplication or disclosure by the U.S. Governments is subject to restrictions as set forth in subparagraph c) 1) ii) of The Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 or subparagraph c) 1) and 2) of the Commercial Computer Software-Restricted Rights at 48 CFR52.227-19, as applicable.
Contractor/ manufacturer is:
EICON NETWORKS CORPORATION. 9800 Cavendish Blvd., Montreal, Quebec, Canada H4M 2V9
This documentation is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
For more details see the file COPYING in the source distribution of Linux.
This guide provides a detailed description of how to install and configure Diva Server for Linux, and how to troubleshoot your ISDN connection. This guide is structured as follows:
Diva Server for Linux features, supported hardware, and system requirements.
Installation and configuration of Diva Server for Linux with Diva Server PRI, Diva Server BRI, and Diva Server Analog adapters. Loading Diva Server modules: TTY driver (analog, fax, V.110 and V.120 capabilities) and CAPI 2.0 support. Testing adapter function and connection.
Configuring the Diva Server TTY Serial ports: AT commands to configure the Diva Server TTY Serial ports, setting up a Linux server to accept digital or analog connections.
Uninstalling the Diva Server for Linux software.
Troubleshooting: ISDN trace utility and customer support procedure.
Management interface description: Directories and variables that can be read, written, or used to generate events and to control adapter status and configuration.
Features: Overview of the functions provided by the various interfaces.
Table 1-1. Syntax used throughout the guide
| <Variable> | Variables that must be entered are enclosed in angle brackets. Variables may consist of numbers or other character strings. |
| [Opt] | Optional entries are enclosed in square brackets. They may consist of variables (e.g. <number>) and character strings. |
| a1|a2 | Alternative entries are separated by a vertical line (pipe character). |
Diva Server for Linux offers the following features:
RAS - Connection to a Linux-based RAS server from digital, analog, and mobile networks with only one telephone number
LAN-to-LAN connection with a transfer rate of 64/56 kbps or 128/112 kbps for Diva Server BRI adapters, 2 (E1) or 1.5 (T1) Mbps for Diva Server PRI adapters, and 56 kbps for Diva Server Analog adapters
Fax, voice, or unified messaging server
Support for B-channel protocols: HDLC, X.75, X.75 with V.42bis, V.120, V.120 with V.42bis, ISO8208, T.70/T.90NL, LAPD, X.25, V.110 (up to 56 kbps), PIAFS 1.0 and 2.1, SMS modem ETSI V1,V2 and auto-detection, Diva Fast Setup, SDLC
Change of used B-channel protocol on demand
Independent ports and channels, any combination of B-channel protocols possible
V.90 analog modem connections with V.42/LAPM (error correction) and V.42bis compression
Automatic synchronous/asynchronous conversion
Automatic detection of incoming call type (Generic modem only)
Support for all known D-channel protocols (switch types)
Support for Q-Sig protocol
Change of selected D-channel protocol or related parameters on demand via the management interface, without driver and adapter restart
Support for numerous supplementary services
Support for lines with a transfer rate of 64 and 56 kbps (e.g. USA)
Support for fractional lines
Automatic detection of Diva Server adapters during configuration
Diva Server Configuration Wizard for easy adapter configuration
Up to 240 B-channels can be used simultaneously (up to 8 Diva Server adapters in a system)
Eicon ISDN Serial driver (modem emulation) provides a rich AT-command set and supports Fax Class 1 and Fax Class 2 AT commands
Support for CAPI-based applications through CAPI 2.0.
Support for IDI (ISDN Direct Interface)
Management interface for access to call state, status, statistics, and line or interface events
B-channel and D-channel data trace (send and receive) capability through the management interface
M-Adapter: Middleware Diva Server adapters and interfaces (CAPI and COM port)
Fax Class 1 and 2
Fax and voice support via CAPI
Fax sub-addressing (SUB), polled document selection (SEL), password (PWD), non-standard facility frames (NSF)
Fax compression (MH, MR 2D coding, MMR T.6 coding) and error-correction mode (ECM)
SFF and plain text (ASCII) support
Fax connections up to 33.6 kbps (V.34)
Fax polling
Extended fax operation
Fax tone detection
Reversal of fax direction
Dynamic switching of B-channel protocols
DTMF/MF transmission and detection
DTMF/MF clamping
Extended tone processing (human talker detection, generation and detection of country-specific tones)
Cross-board switching via interline connect (DSP-based monitor, bridge, and mixer for voice connections: supports multiline conference calls)
Page formats: ISO A4, ISO B4, ISO A3, special page formats
Standard, fine, super-fine, and ultra-fine resolution
Echo cancellation (G.168, 32 msec tail length)
Real time protocol (RTP)
Dynamic anti-jitter buffering
Comfort noise generation (CNG)
Voice activity detection (VAD)
Support for color fax (JPEG format) via CAPI
Echo cancellation (G.168, 32 msec tail length)
G.711 (A-Law and u-Law), G.723 (low and high rate), G.726, G.GSM voice compression on the digital signal processor (DSP)
Transcoding
MCU functionality (conference, mixer, interconnection)
Real time protocol (RTP) processing on the Diva Server adapter's RISC CPU
Dynamic anti-jitter buffer processing on the Diva Server adapter's RISC CPU
Comfort noise generation (CNG)
Voice activity detection (VAD)
DTMF/MF tone processing (in band, out of band)
Enhanced tone processing (e.g. 390 Hz for VoIP answering machine, country-specific tones)
Basic call (64 kbps unrestricted, 3.1 kHz audio and speech bearer services) ECMA 142/143
Line identification presentation ECMA-148
Name identification presentation ECMA-163/164
Generic functional procedures ECMA-165
Call deflection (call rerouting) ECMA-173/174
Call transfer ECMA-177/178 (only with working path replacement)
Path replacement ECMA 175/176
Advice of charge ECMA-211/212 (incl. configuration "while/end of call")
Message waiting indication ECMA-241/242
Common information ANF ECMA-250/251
Single-step call transfer ECMA-299/300
Simple dialog ECMA-310/311
Redirected number translation from QSig to Q.931
Several QSig derivatives (ECMA-QSig, ISO-QSig, Alcatel, Ericsson)
Indefinite length of IEs (to support more switches like Lucent)
Segmented message up to 8 segments incoming and 8 Rev.2, 2 Rev.1 outgoing
Physical and logical CHI format for PRI trunks
Configuration of QSig settings (CHI, CR, CHI format) for BRI trunks
T1-QSig (QSig for PRI T1 trunks)
Siemens-specific protocol dialects, tested with Siemens Hicom 150/300 BRI & PRI
Ericsson-specific protocol dialects. MD110: Path replacement QSIG-PR (ISO/IEC 13863/13874) with software version BC 11 (latest version), CTPR, MWI in UUI on MD110 (BC10/CNI138(=SP)-ECMA,BC11/SP4-ECMA+ISO) (without or with CLC analog). BP250: ETSI trunk MWI in UUI (CLC analog)
Alcatel-specific protocol dialects, tested with Alcatel 4200/4400/4410 BRI & PRI
Nortel-specific protocol dialects, tested with opt11 Rev23, Nortel Meridian PRI
Matracom-specific protocol dialects, tested with Matra 6500
Lucent-specific protocol dialects, tested with Lucent Definity
The Eicon ISDN Serial driver provides access to analog, digital, fax (FAX CLASS 1 and FAX CLASS 2 with ECM, compression, and polling support), V.110, B-channel protocol detection, caller ID, DID [a], and voice capabilities of Diva Server adapters by providing a standard serial driver interface. This allows Diva Server adapters to be used in a variety of configurations:
As a "one number" Remote Access Server (RAS) with automatic protocol detection and ASYNC/SYNC framing conversion, allowing multiple incoming analog, digital, and wireless connections. These connections may be simply login sessions or IP (Internet Protocol) over PPP (Point-to-Point Protocol) connections.
As a fax server or gateway, in combination with 3rd-party fax software that works with fax modems.
As a fax polling server, in combination with 3rd-party fax software that works with fax modems. Supports polled document selection and protection.
As a WAP (Wireless Application Protocol) gateway or WAP application server, using the V.110 protocol (or combined with a RAS server).
As a wireless application server, using the PIAFS protocol (or combined with a RAS server).
The status of the exposed driver ports by the Diva TTY can be controlled using the management interface of the driver, that is acessible using WEB based management interface browser or using the mantool command line utility.
The CAPI 2.0 (Common ISDN Application Programming Interface) driver allows CAPI-based applications to be used with Diva Server adapters. It also provides a mechanism for development of customized applications enabling you to use the capabilities of ISDN. For full information on the CAPI interface specification, refer to the CAPI Association web site.
Supplementary services[1]supported by the Diva Server CAPI 2.0 driver:
Number identification services: MSN, DDI [a], SUB, CLIP, CLIR, COLP, COLR, KEY
Call offering services: TP, CFU, CFB, CFNR, call deflection
Call completion services: CW, HOLD, ECT, CCBS, CCNR
Charging services: AoC
Three-party conference
Others: User-to-user signaling
Hunt-group support
Table 2-1. Supported Diva Server adapters
| Interface | Name |
|---|---|
BRI | Diva Server 2FX |
| Diva Server BRI-2M PCI | |
| Diva Server BRI-2M 2.0 PCI | |
| Diva Server V-BRI-2 PCI | |
| Diva Server 4BRI-8M PCI | |
| Diva Server 4BRI-8M 2.0 PCI | |
| Diva Server V-4BRI-8 PCI | |
PRI E1 | Diva Server PRI PCI |
| Diva Server PRI-9M PCI | |
| Diva Server PRI-23M PCI | |
| Diva Server PRI-30M PCI | |
| Diva Server PRI-0M 2.0 PCI | |
| Diva Server PRI-4M 2.0 PCI | |
| Diva Server PRI-8M 2.0 PCI | |
| Diva Server PRI-30M 2.0 PCI | |
| Diva Server PRI/E1/T1 PCI | |
| Diva Server PRI/E1/T1-8 PCI | |
| Diva Server PRI/E1-30 PCI | |
| Diva Server V-PRI/E1/T1-30 PCI | |
PRI T1 | Diva Server T1/PRI PCI |
| Diva Server T1/PRI-4M PCI | |
| Diva Server T1/PRI-8M PCI | |
| Diva Server T1/PRI-24M PCI | |
| Diva Server PRI/E1/T1 PCI | |
| Diva Server PRI/E1/T1-8 PCI | |
| Diva Server PRI/T1-24 PCI | |
| Diva Server V-PRI/T1-24 PCI | |
Analog | Diva Server Analog-4P |
| Diva Server V-Analog-4P | |
| Diva Server Analog-8P | |
| Diva Server V-Analog-8P | |
Diva Server for Linux supports the installation of up to 8 Diva Server adapters in one computer.
The following requirements have to be met for the installation of Diva Server for Linux:
A PC/AT-compatible computer (80486 or higher processor with at least 32 MB RAM)
An installed Linux system
At least 40 MB of free space on the drive on which your Linux system is installed
An installed Diva Server adapter
The following steps provide an overview of the installation and configuration procedure for Diva Server for Linux:
Install your Diva Server adapter and connect it to the network. For further information on the installation, refer to the Diva Server Adapters Installation Guide that came with your adapter.
Install your Diva Server for Linux software package. For further information, see Section 3.1.
Configure the Diva Server for Linux software using the Config Configuration Wizard located in the /usr/lib/eicon/divas directory. For further information, see Section 3.2.
Confirm the operation of your adapter. For further information, see Section 3.8.
Configure the Diva Server for Linux TTY Devices. For further information, see Chapter 4.
To install the Diva Server for Linux software, follow these steps:
Ensure that you are logged in as "root" user (or use "su").
Run the following command to extract the files from the RPM: rpm -i divas4linux_<a_b_cc_dd>_<ee>-<ff>-<xxx.yy-z>.i386.rpm
Where <a_b_cc_dd> is the kernel version that the RPM is intended for (e.g. 2_2_12_20 for kernel 2.2.20 or 2_2_16 for kernel 2.2.16).
Where <ee> is the distribution that the RPM is intended for (e.g. RH for Red Hat or SuSE for SuSE).
Where <ff> is the kernel configuration feature (for example SMP, i686, etc.)
Where <xxx.yy-z> is the revision of the RPM (e.g 100.21-1).
The following files are included in the RPM:
Device driver for active PCI adapters (divas.o, divadidd.o, diva_idi.o)
CAPI 2.0 interface (divacapi.o, kernelcapi.o, capi.o)
Diva Server TTY (COM port) interface (Divatty.o)
The divactrl utility is used to download the protocol code of active adapters, to configure, and to start adapters, to read and translate messages from the adapter's XLOG interface, to create a core dump of the adapter's memory, to control the adapter via the management interface and to read and translate messages from the adapter's MLOG interface (divactrl).
Protocol code for Diva Server PRI adapters (all *.pm, *.pm2 files and *.bin files)
Protocol code for Diva Server BRI adapters (all *.sm, *.sm.4, *.2q0 files, *.bit files and *.bin files)
Protocol code for Diva Server 4BRI adapters (all *.qm?, *.2q? files, *.bit files and *.bin files)
The tty_test utility that allows you to test the TTY interface, to monitor link quality and adapter performance, and to test the hardware (tty_test). This utility uses the TTY interface.
ISDN file server, client, and remote management application that uses the ACOPY protocol and allows you to transfer files, create, remove, or list directories and execute commands on a remote station (acopy2). This utility uses the CAPI 2.0 interface.
Fax server or client that allows you to transfer, receive, and poll fax documents in text and SFF formats with various transmission speeds and various ECM/compression settings (testfax). This utility uses the CAPI 2.0 interface.
Diva Server Configuration Wizard detects the hardware and automatically creates the configuration script (menu driven tools, includes the files Config, Start, Stop, cfg_divas.sh, cfg_pri.sh, and cfg_bri.sh). The Diva Server Configuration Wizard is started by executing the Config shell script.
Shell script is used by RPM to create or delete the symbolic links that enable the Diva Server for Linux drivers to be started automatically at system startup (cfg_util.sh).
Dummy Diva Server configuration file. This file is used to generate warnings if the user forgets to configure Diva Server for Linux after installation (divas_cfg.rc). This file is overwritten by the Diva Server Configuration Wizard once the configuration procedure is invoked.
Shell script captures information about your system, hardware, or installation if you have problems to install, configure, or start Diva Server for Linux (Support). This shell script generates a file named report.txt. You can examine and modify this shell script if it registers information (e.g. phone numbers) that you do not want to pass on to Eicon Networks. If you change the script, please send us the modified version together with the report.txt file.
Shell script stops and unloads Diva Server drivers (divas_stop.rc).
xlog that contains divactrl load -ReadXlog $* and can be used to read XLOG traces from the adapter.
mlog shell script that contains divactrl mlog $* and can be used to read MLOG traces from the adapter.
mantool shell script that contains divactrl mantool $* and can be used for management interface access.
Trace shell script that can be used to read driver and adapter traces for debug purposes.
divaload shell script that contains divactrl load $* and can be used to control the adapter.
divalogd call journal/monitor application. The call journal created by this utility can be used for accounting purposes and for controling the quality of service (every call record is stored together with information about the connection quality).
divasnmpx SNMP extension agent providing interface and call statistics. Supports AgentX protocol and trap generation.
Documentation (all *.txt and *.html files) extracted to the usr/doc/packages directory.
The Config script (located in the usr/lib/eicon/divas directory) is a setup wizard that detects all installed Diva Server adapters.
The setup wizard generates the divas_cfg.rc file (located in the usr/lib/eicon/divas directory) that is used to start all adapters and interface drivers at system startup or to start the adapters manually. You can use the usr/lib/eicon/divas/Start script to load the adapters manually. You can use the usr/lib/eicon/divas/Stop script to unload the adapters manually.
The setup wizard creates all necessary device nodes in the /dev directory:
/dev/capi20 is used to access the CAPI 2.0 interface
/dev/ttyds01 ... /dev/ttyds<n> is used to access the Diva Server TTY interface, where <n> is the sum of B-channels of all installed adapters.
You can either use the Config script or the web-based Diva Server Configuration Wizard to configure the settings for your Diva Server adapters. The following description of configuration options is based on the web-based Diva Server Configuration Wizard. It is structured as follows:
Post installation settings - steps to be performed immediately after the installation.
System and adapter configuration - configuration of the major parts of the product that depend on the type of your application and the switch type that the Diva Server adapter is using. Configuration of application and switch type-dependent parameters that allow you to increase the performance of the system or access switch-specific services.
Control and monitoring - control Diva Server adapter configuration, status and performance data.
Maintenance - initiate trace process, create, view and download trace files.
The Diva Server for Linux software installs and configures the Diva Server WEB Configuration Wizard (small HTTP server, started via inetd) that allows you to access and configure Diva Server for Linux via an HTTP browser.
Therefore, the installation procedure selects a free tcp port number between 10005 ... 10050, modifies your /etc/services and inetd/xinetd configuration files, and restarts the currently active inetd application.
The installation procedure informs you about the selected port number in the initial "splash" screen that follows the installation procedure. If you miss this information (which happens, for example, if you use a graphical RPM manager) you can obtain this information with the command: grep "diva-cfg" /etc/services.
If you do not want to use the Diva Server WEB Configuration Wizard, you can disable it with the command: cd /usr/lib/eicon/divas && sh cfg_util.sh 4. To re-activate the WEB Configuration Wizard, use the command cd /usr/lib/eicon/divas && sh cfg_util.sh 3.
To access the WEB Configuration Wizard you need to edit the /usr/lib/eicon/divas/httpd/login/login file and configure your password. Note that the "login" file must meet the following requirements, otherwise the password will be ignored:
The file must be owned by root.
Umask must be 600 or 400.
The password must be located in the first line of the file, contain printable characters only and consist of not less than 7 characters.
The system and adapter configuration is divided in two parts:
System configuration - to configure the type of application and the system startup mode.
Hardware configuration - to configure parameters of the installed Diva Server adapters in accordance with the information required by the service provider or the PBX to which the Diva Server adapter is connected.
In the system configuration, select the application scenario and activate the interfaces that meet your requirements. For example, if you want to set up a fax server that is based on the TTY interface, select "TTY interface (fax/voice server)".
Depending on the selected application scenario, you can set FAX CLASS 2 options like ECM, compression, etc. For further information, see the online help or Section 4.5.
The system configuration also allows you to specify startup options for your Diva Server adapters. If you plan to clone your system configuration on other computers, disable the verification of the serial numbers. If you want to view debug or trace messages that are issued during the adapter configuration, enable "Debug code for microcode load". For further information on these parameters, see the online help.
To write detailed call log records to the /var/log/divalog.../var/log/divalog.N file, activate the "call history". The call log records can be used for accounting and for generating different statistics.
Specify if the driver load should be forced even if the driver's kernel version does not completely match your Linux kernel version. Note that you cannot force a driver load if your Linux system uses kernel checksums.
Specify if the Diva Server drivers should be loaded automatically on system startup.
At the end of the system configuration, the Diva Server WEB Configuration Wizard will prompt you to restart the Diva Server drivers if necessary. [2]. To restart the Diva Server drivers, go to the "System control", where you can stop and start the drivers.
The "Hardware configuration" allows you to configure the Diva Server adapters that are installed in your system as required by your service provider or by the PBX to which the adapters are connected.
To start the configuration of a Diva Server adapter, select its "adapter" icon in the adapter list. The basic configuration parameters are displayed.
Specify the D-channel protocol (switch type) as provided by your service provider.
Specify if you want to operate your Diva Server adapter as terminal equipment (TE) or as network termination (NT). Normally, Diva Server adapters are operated as terminal equipment.
Specify whether you are using a direct dial in (DDI) interface. A direct dial in interface provides you with an ISDN line with a basic phone number that is able to accept any extension digits and to pass them to the ISDN applications. If you select "Yes", also specify the direct dial in number length [a].
Specify the layer 1 framing type. The "National default" setting automatically sets the correct layer 1 framing type for the selected switch type. Change this setting only if you are using your Diva Server adapter in a non-standard environment.
Specify the voice companding type that is used to transmit analog data on your line. The "National default" setting automatically sets the correct voice coding for the selected switch. You need to change this setting only if the voice coding required by your PBX does not correspond to the coding of the switch.
Depending on the installed adapter and the selected D-channel protocol (switch type), you might need to configure various advanced parameters. To do so, set "View extended configuration" to "Yes" and modify the advanced parameters as required. For further information on advanced parameters, see the online help.
After the adapter configuration is complete, the Diva Server WEB Configuration Wizard stores the parameters list, generates a startup shell script and tries to update the modified parameters via the "management interface". If updating via the management interface is not possible (for example, the Diva Server adapter is not running or the configuration parameter is not supported by the management interface), the Diva Server WEB Configuration Wizard prompts you to restart the Diva Server adapter.
You can use the "Restart" icon in the "Hardware configuration" to restart the selected Diva Server adapter [3] or change to the "System configuration" that allows you to start (or re-start) all Diva Server drivers and adapters at once.
If you select the "Hardware status/management" icon, you will gain access to:
Current status of the adapter hardware which allows you to view hardware-related settings and to control the state of the adapter hardware.
Adapter startup log which allows you to view the adapter's configuration as seen by the selected Diva Server adapter.
"XLOG" trace snapshot which allows you to receive a small snapshot of the adapter traces for the trace ring buffer, located in the Diva Server adapter memory.
Line monitor which allows you to view the status of active connections on the selected adapter and to clear these connections, if necessary.
Management interface browser which allows you to walk through the Diva Server adapter management interface and view or modify management interface variables or execute management interface functions.
Management interface browser which allows you to walk through the Diva Server TTY driver management interface and view or modify management interface variables or execute management interface functions (Port Manager).
Management interface browser which allows you to walk through the Diva Server CAPI driver management interface and view or modify management interface variables or execute management interface functions.
Report based on the information from the adapter management interface that provides an overview over the adapter's link status, link quality and over the call-related statistics.
The Diva Server WEB Configuration Wizard provides access to the following maintenance functions:
"System environment" allows you to view hardware-related settings of the host system.
"Trace/Debug" allows you to create debug and trace files of the adapter or the system.
"Support/Troubleshooting" allows you to capture information required for the support request in case of installation problems.
"System messages" allows you to view the latest system messages (dmesg).
"View trace file" allows you to decode, view, and filter debug and trace files.
"View call history" allows you to view the latest call history file.
"View statistics" allows you to generate and view statistics, based on the call history files
The system environment browser allows you to view information about:
Kernel version
CPU(s)
PCI bus configuration
I/O memory configuration
I/O port configuration
DMA configuration
Interrupt configuration
APM configuration
Loaded modules
Installed devices
Memory usage
The Diva Server Trace Wizard allows you to select various trace profiles and thus enables you to trace everything or to suppress unnecessary information in certain scenarios. Detailed information on the various trace profiles is given in the online help. To display the online help for a profile, click its name.
The Diva Server Trace Wizard also allows you to set the size of the trace ring buffer - a binary file where the trace information is stored - and to start the trace process in the background.
After the trace process is started, you can leave the Diva Server Trace Wizard or close your HTML browser without affecting the running trace process.
While the trace process is running (and after the trace process is stopped), you can decode, filter, and view the content of the trace ring buffer file with the trace file browser ("View trace file").
To stop a running trace process, enter the Diva Server Trace Wizard ("Trace/Debug") again (The Diva Server Trace Wizard will remember that the trace process is still running.) and stop it. After stopping the trace process, you can download the compressed binary trace file.
If you should experience any problems after the installation of Diva Server for Linux (for example, no Diva Server adapters can be detected, etc.), use the Diva Server Support Wizard to capture (and download in compressed form) all information that is required to process your support request. Select one of the following options:
Capture all necessary information about your system (kernel version, PCI-bus configuration, system-configuration files).
Capture all necessary information about your system (kernel version, PCI-bus configuration, system-configuration files) and a binary image of the installed kernel and related modules. With this option the Eicon Networks support can reproduce your environment if this should be necessary to process your support request. Select this option only if requested by Eicon support.
The system log viewer allows you to view the latest kernel messages. You can use this information to control the load and operation of Diva Server drivers and to check your system for unexpected errors, driver failures, or exceptions ("Oops").
The trace file browser allows you to decode, filter, and browse the trace file without downloading this file to your machine and without stopping the trace process.
The trace file viewer displays a list of the Diva Server debug and trace sources information contained in the trace file and it allows you to select the sources of information that you want to view, decode, and display.
The trace viewer highlights messages in the trace information window by the following colors:
Yellow - highlights messages related to initial call establishment
Green - highlights messages related to the call establishment progress and completion
Red - highlights messages related to the call disconnect procedure
To get detailed decoded information on trace and debug messages, click the "highlighted" links in the trace information window.
The call history (call journal/log) is stored as a sequence of files named divalog,divalog.1...divalog.N, where N is the integer number in the /var/log directory. The divalog.N file contains the oldest trace information while the divalog file contains the latest (current) information about the call activities.
You can use the call history viewer to decode the divalog file (call time, duration, type, speed) and view this information without downloading the call history file to your local machine.
To download call history files, click "Download". You will receive a text file that displays the various components of the call history information separated by commas. The first line of the file contains the description of the components.
The Diva Server statistics viewer analyzes all call history files found in the /var/log directory and creates various statistics based on these files. The statistics show the total number of calls related to various periods of time, the ratio of incoming and outgoing calls, the ratio of call types, call duration charts, a peak adapter load chart, etc.
The statistic information is presented in a graphical format (jpeg) and can be used to analyze the system load and reliability.
If you want to create your own statistics, download the call history files in the call history viewer and apply your own spread-sheet application.
During installation and configuration, the divas_cfg.rc script is automatically generated. This script is used to load protocol, CAPI, and TTY interfaces. On system startup, the Diva Server adapters will be started by symbolic links named S03DIVAS4LINUX. These links are created as part of the installation process and are located in the /etc/rc.d/rc2.d, /etc/rc.d/rc3.d, /etc/rc.d/rc5.d directories for Red Hat and in the /sbin/init.d/rc2.d, /sbin/init.d/rc3.d, /sbin/init.de/rc5.d directories for SuSE. (If you wish to remove these links, execute: sh /usr/lib/eicon/divas/cfg_util.sh 2. If you wish restore these links, execute: sh /usr/lib/eicon/divas/cfg_util.sh 1). If you have changed the configuration or wish to restart or stop the Diva Server adapters without restarting your system, you can use the /usr/lib/eicon/divas/Stop script to stop the Diva Server adapters and unload the Diva Server drivers. You can run the /usr/lib/eicon/divas/Start script to load the Diva Server drivers and start the Diva Server adapters.
If you wish to restart only one specific Diva Server adapter, you can do it without unloading the drivers by executing the /usr/lib/eicon/divas/divactrl load -StopCard -c <x> and /usr/lib/eicon/divas/divactrl load -ResetCard -c <x> commands, where <x> is the logical adapter number. If adapters support multiple interfaces (e.g. 4BRI), the adapter number should be the number of the master adapter. After the adapter was stopped, you can load and start it again without affecting other adapters. If adapters support multiple interfaces, all logical adapters that belong to the same physical adapter are affected.
If you cannot use the Diva Server Configuration Wizard or you need to create your own adapter configuration or startup procedure, you have to perform the following steps to load the drivers and start the Diva Server adapter:
Login as "root" (or use "su").
Change the working directory to /usr/lib/eicon/divas. To do so, execute cd /usr/lib/eicon/divas.
Load the DIDD module. To do so, execute insmod /usr/lib/eicon/divas/divadidd.o.
Load the XDI module. To do so, execute insmod /usr/lib/eicon/divas/divas.o.
Load the User Mode IDI module, if necessary. To do so execute, insmod /usr/lib/eicon/divas/diva_idi.o.
Start every available Diva Server adapter by the /usr/lib/eicon/divas/divactrl utility. Type /usr/lib/eicon/divas/divactrl load to get help and a full list of available options.
Enable the group optimization and dynamic_l1_down options, if necessary. By default, these options are turned on. See the online help for further information.
Load CAPI, if necessary. To do so, execute insmod /usr/lib/eicon/divas/kernelcapi.o && insmod /usr/lib/eicon/divas/divacapi.o && insmod /usr/lib/eicon/divas/capi.o.
Load the Diva Server TTY module, if necessary. To do so, execute insmod /usr/lib/eicon/divas/Divatty.o.
Every Diva Server adapter that is installed in the system is a "physical" adapter. Every physical adapter contains one or more ISDN or analog interfaces. Each interface is represented in the system by a "logical" adapter. Example: Three physical Diva Server adapters are installed in the system, a Diva Server BRI, a Diva Server PRI, and a Diva Server 4BRI. The Diva Server BRI and Diva Server PRI add one logical adapter each. The Diva Server 4BRI adds four logical adapters to the system. If one physical adapter contains multiple logical adapters, a continuous block of adapter numbers is allocated to these adapters. The first logical adapter is the "master" adapter. This adapter is responsible for the hardware resources of the physical adapter and for loading, starting, and stopping all logical adapters provided by the physical adapter. In all other aspects (functionality, configuration, selected protocol, debug buffers, and features) all logical adapters are fully independent from the location of their physical adapters: on different physical adapters or on the same physical adapter.
After being started, the DIDD (divadidd.o) driver creates the /proc/net/isdn/eicon directory in the proc file system and the divadidd file in this directory. You can read this file (for example by executing cat divadidd) to get version information on the DIDD driver.
After being started, the XDI driver (divas.o) creates the divas file in the /proc/net/isdn/eicon directory. You can read this file (for example by executing cat divas) to get version information on the XDI driver. A subdirectory named adapter<no> (<no> is the logical adapter number) is created in the /proc/net/isdn/eicon directory for every logical adapter present in the system.
Each adapter<no> directory contains the following files:
| info | You can read this file (cat info) to get information on the adapter: adapter name, serial number, number of channels supported by the adapter, hardware resources assigned to the adapter, adapter state. Possible adapter states are: ready (ready to download and start firmware or fpga), active (operating), trapped (firmware problem, core dump should be generated), unknown (hardware problem), and slave (slave adapter of a Diva Server adapter that supports multiple logical adapters) |
| group_optimization | You can read this file (cat group_optimization) to get the current state of this feature (on|off - 1|0). You can write "1" to this file to turn this feature on (echo 1 > group_optimization). You can write "0" to this file to turn this feature off (echo 0 > group_optimization). For further information on this feature, see the online help. |
| dynamic_l1_down | You can read this file (cat dynamic_l1_down) to get the current state of this feature (on|off - 1|0). You can write "1" to this file to turn this feature on (echo 1 > dynamic_l1_down). You can write "0" to this file to turn this feature off (echo 0 > dynamic_l1_down) for further information on this feature, see the online help. |
Diva Server adapters provide DID (direct inward dialing) support in two ways [a]:
The dialing information is accumulated by the Diva Server adapter, transparent to the application and is processed by the application (TTY interface, CAPI2.0 interface).
The dialing information is accumulated and processed by the application (CAPI2.0 interface).
In this mode, you should enable direct inward dialing support and set the direct inward dialing number length to a value not equal to zero in the Diva Server adapter configuration.
The Diva Server adapter will accumulate incoming dialing information until the direct inward dialing number length, set in the adapter configuration, is reached. After the digit accumulation is complete, the call is indicated to the application with all accumulated extention digits. The application can access this information in the application-specific way: using the AT#CID (DAD) command for the Diva Server TTY interface or the "Called Party Number" for the CAPI 2.0 interface [a].
If the Diva Server adapter is not able to accumulate all necessary dialing information (which can happen if the call originator does not provide enough dialing information), the call will be disconnected by the adapter. The entire procedure is handled by the Diva Server adapter fully transparent to the application. The application will not deal with "incomplete" calls or with the national protocol or switch dependent procedure of digit accumulation.
In this mode, you should disable direct inward dialing support or set the direct inward dialing number length to zero in the Diva Server adapter configuration.
The dialing information will be passed to the application without any processing [a].
Table 3-1. Fax configuration options
| Option | Description |
|---|---|
| Fax speed limit | Allows to limit the transmission speed. Normally, you do not need to limit the fax speed because the Diva Server adapter automatically negotiates the appropriate speed. |
| Disable fine resolution | Disables the transmission of fax messages with high resolution. |
| Disable Error Correction Mode (ECM) | Disables the transmission of fax messages using ECM (Error Correction Mode). |
| Use ECM frame length of 64 bytes | Forces usage of HDLC frames with a maximum length of 64 bytes if transmitting fax messages using ECM (Error Correction Mode). |
| Disable 2D fax document compression | Disables usage of 2D fax document compression. This option also disables the automatic (transparent to application) fax document compression provided by the adapter in order to increase the effective transfer speed of fax messages. |
| Disable T.6 fax document compression | Disables usage of T.6 fax document compression. This option also disables the automatic (transparent to application) fax document compression provided by the adapter in order to increase the effective transfer speed of fax messages. |
| Disable uncompressed T.6 fax document lines | In some cases, compression of a fax document line results in a line that is longer than the uncompressed original. The T.6 protocol allows you to reduce the fax transmission time by transmitting such lines without compression. This option disables the line compression optimization. |
| Refuse incoming polling requests | Disables incoming polling requests. |
| Hide "total pages" information in fax message | Hides the "total pages" information field in the fax message. |
| Hide "head line" information in fax message | Hides the "headline" information field in the fax messages. |
| Hide "page info" information in fax message | Hides the "page info" (i.e. message head) field in the fax messages. |
| Disable fallback to lower speed on failure | "Feature fallback" is used to prevent excessive resending of fax documents if working over poor quality lines. The Diva Server adapter internally saves the fax ID of the last peer and the results of the fax transmission from this peer. If the results of the last fax transmission were negative and the application starts message re-transmission, the Diva Server adapter will detect this and "step down" (i.e. fallback) to a lower transfer speed. This setting allows you to disable fallback. |
Diva Server adapters provide numerous configuration options part of which are only used in special applications. These configuration options are not covered by the Diva Server Configuration Wizard.
To get a full list of configuration options, execute /usr/lib/eicon/divas/divactrl load.
You can apply special configuration options by modifying your adapter's startup script /usr/lib/eicon/divas/divas_cfg.rc. In this case, you have to specify special configuration options as well as the standard options in the command line of the /usr/lib/eicon/divas/divactrl adapter load utility.
Special configuration options can be changed during run time without restarting the adapter via the management interface, for example, with the /usr/lib/eicon/divas/divactrl mantool management interface access utility.
This test allows you to test the adapter and Diva Server TTY interface functionality and link integrity using various bearer protocols supported by your adapter.
The /usr/lib/eicon/divas/tty_test utility is located in the /usr/lib/eicon/divas directory. On the server side, type: /usr/lib/eicon/divas/tty_test 1 s auto. On the client side, type: /usr/lib/eicon/divas/tty_test 2 <ISDNnumber> x75 [4]. The transfer rate will appear in real time and updated every time 64 Kbytes of data have been transferred.
This tool allows you to test the adapter and CAPI 2.0 interface functionality and link integrity using the X.75/T.70NL bearer protocol. The acopy2 [5] utility is located in the /usr/lib/eicon/divas directory.
On the server side, type: /usr/lib/eicon/divas/acopy2 -c<X> -serve /p2048, where 2048 is the packet size for optimum results and <X> is the CAPI adapter number that will receive the call.
On the client side, type: /usr/lib/eicon/divas/acopy2 -c<Y> -n<ISDNnumber>:file2 file1 /p2048, where 2048 is the packet size for optimum results and <Y> is the CAPI adapter number that will issue the call.
This tool allows you to test adapter and CAPI 2.0 interface functionality and link integrity using the Fax G3 bearer protocol.
The TESTFAX utility is located in the /usr/lib/eicon/divas directory.
On the server side, type: /usr/lib/eicon/divas/testfax -serve -c<X> [6] , where <X> is the CAPI adapter number that will receive the call.
On the client side, type: /usr/lib/eicon/divas/testfax file.sff|file.txt <ISDNnumber> -c<Y>, where <Y> is the CAPI adapter number that will issue the call.
TESTFAX will transmit the file.txt text file or the file.sff SFF file as fax document to the fax server. The received document will be saved in the rcv.sff file.
Table 4-1. Supported AT-command set
| AT command | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AT A | ANSWER. Accepts an incoming call that has been indicated by a "RING". (If the S0 register is set to zero, TTY indicates a RING until the call is answered by the AT A command or released.) | |||||||||||||||||||||||||||
| AT D[T|P]<number> | DIAL. Dials the given number. Dial tone (T) or dial pulse (P) are ignored. <number> can have the following format: <CalledPartyNumber>[| <Subaddress>][^56k][+i<y> | +p=btx] where <y> is the Eicon-specific +I command (see below). | |||||||||||||||||||||||||||
| AT E[0|1] |
| |||||||||||||||||||||||||||
| AT I[<n>] | INFO. Returns the modem identification string. <n> : integer ranging from 0 to 9 | |||||||||||||||||||||||||||
| AT H[0] | HANGUP. Disconnects the line. | |||||||||||||||||||||||||||
| AT O[1] | ONLINE. Switches the modem from command mode to data mode. | |||||||||||||||||||||||||||
| AT Q[<n>] |
| |||||||||||||||||||||||||||
| AT V[<n>] |
| |||||||||||||||||||||||||||
| AT L<n> | Command accepted for compatibility reasons. | |||||||||||||||||||||||||||
| AT N<n> | Command accepted for compatibility reasons. | |||||||||||||||||||||||||||
| AT M<n> | Command accepted for compatibility reasons. | |||||||||||||||||||||||||||
| AT Y<n> | Command accepted for compatibility reasons. | |||||||||||||||||||||||||||
| AT X<n> |
| |||||||||||||||||||||||||||
| AT Z[<n>] | Soft reset. Drops the connection if the modem is in ESCAPE mode. Resets the modem and restores the selected predefined modem configuration profile <n>. See AT&F below for the list of predefined modem configuration profiles. | |||||||||||||||||||||||||||
| AT S<r>=? | Displays the value of the selected S-register <r>. | |||||||||||||||||||||||||||
| AT S0=<n> |
| |||||||||||||||||||||||||||
| ATS2=<n> |
| |||||||||||||||||||||||||||
| ATS7=<n> | Default value is set to zero (e.g. modem will use protocol specific default value). Modem mode: time to wait for carrier. Sets the time in seconds that the modem will wait for a carrier before hanging up. <n> is a range from 0 to 255 seconds. Fax mode: time to wait for connect. Sets the time in seconds that fax will wait for connection before hanging up. Suggested value is 200 seconds. Values less than 10 secounds are ignored. The carrier waiting time starts after the connection was established and is set to 60 secounds. | |||||||||||||||||||||||||||
| ATS9=<n> | Carrier Detect Response Time. Sets the time in tenths of a second that a carrier must be present before the modem considers it valid. <n> is a range from 0 to 255 tenths of a second. This register is only implemented for compatibility reasons. Writing to this register does not affect the Carrier Detect Response time. | |||||||||||||||||||||||||||
| ATS10=<n> | Delay between carrier loss and hang up. Sets the time in tenths of a second that the modem waits before hanging up after a loss of carrier. <n> is a range from 0 ... 255 tenths of a second. | |||||||||||||||||||||||||||
| ATS27=<bitmask> |
| |||||||||||||||||||||||||||
| ATS51=<bitmask> |
| |||||||||||||||||||||||||||
| ATS91=<bitmask> |
| |||||||||||||||||||||||||||
| ATS92=<n> | SDLC Address A (default 0x30) | |||||||||||||||||||||||||||
| ATS128 | S-register 128 is a read-only register. Reading this register allows to retrieve information on the current (last) incoming call. It returns a message in the following format: ;<calling party number>;<destination_address>. If calling party or destination sub-addresses are present, they are separated by a slash "/" from the called party number or the destination address. For example, the calling party number 800, calling party sub-address 900, destination address 400, destination sub-address 500 are presented as: ;800/900;400/500. | |||||||||||||||||||||||||||
| ATS172=<bitmask> |
| |||||||||||||||||||||||||||
| ATS253=<n> |
| |||||||||||||||||||||||||||
| ATS254=<bitmask> |
|
Table 4-2. Supported AT\ commands
Table 4-3. Supported AT% commands
| AT command | Description | ||||||
|---|---|---|---|---|---|---|---|
| AT %C[<n>] |
|
Table 4-4. Supported AT# commands
| AT command | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AT #CID=? | Displays CID (Caller ID) setting. The short form of this command is "CID?". | ||||||||||||||||||||
| AT #CID=<n> |
| ||||||||||||||||||||
| Notes: a. CID (Calling Party Number) is indicated as: RING CID: <number> b. CID (Calling Party Number) is indicated as: CONNECT ... CID: <number> c. Indicated as: RING CID: <number> DAD: <number> d. Indicated as: CONNECT ... CID: <number> DAD: <number> e. Indicated as: RING;<number> f. Indicated as: RING;<number>;<number> | |||||||||||||||||||||
Table 4-5. Supported AT& commands
| AT command | Description | |||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AT &C[<n>] | Accepted for compatibility reasons. <n> : any integer | |||||||||||||||||||||||||||||||
| AT &G[<n>] |
| |||||||||||||||||||||||||||||||
| AT &D[<n>] | Data Terminal Ready (DTR) options. <n> ranges from 0 to 3. See AT&Q command below. | |||||||||||||||||||||||||||||||
| AT &Q[<n>] | Communication options. <n> ranges from 0 to 3. Data Terminal Ready (DTR) options and Communication (COM) options determine the behaviour of the virtual modem when DTR switches from ON to OFF in accordance with the following table: |
| ||||||||||||||||||||||||||||||
| AT &K<n> |
| |||||||||||||||||||||||||||||||
| AT &V | Displays the current configuration, the last number that has been dialed (last DIAL to), and the calling party number of the last incoming call (last RING from). | |||||||||||||||||||||||||||||||
| AT &V1 | Displays current settings and settings of all available profiles. | |||||||||||||||||||||||||||||||
| AT &F[<n>] | Resets the modem and restores the selected predefined modem configuration profile. AT&F sets factory defaults for current profile. Please see list of supported TTY profiles for details. | |||||||||||||||||||||||||||||||
| Notes: a. No action is taken, the DTR drop is ignored. b. If the modem is online, it hangs up and responds with OK. c. If the modem is online, it switches to command mode (as if an ESCAPE sequence was detected) and sends OK. d. If the modem is online, it hangs up and responds with OK. e. If the modem is online, it hangs up and the current profile defaults are restored. | ||||||||||||||||||||||||||||||||
Table 4-6. Supported AT$ commands
| AT command | Description |
|---|---|
| AT $F<number> | Controls Diva FastSetup. 0 - Normal connection (default), 1 - FastSetup without answer/calling tone, 3 - FastSetup with answer tone. The AT+MS command can be used to control the allowed FastSetup modulations: AT+MS=V90a,1 - v.22 and v.22bis FastSetup, AT+MS=v22 - v.22 FastSetup, AT+MS=v22b,0 - v.22bis FastSetup. |
Table 4-7. Supported AT+ commands
| AT command [a] [b] | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AT +iA<number> | Accepted address. Incoming calls are only accepted if the called party number equals the phone number configured here. Addresses are compared backwards. So, if you set accepted address to 12, all called party numbers that end with 12, e.g. 12, 812, 384012, match the configured address. [c] | |||||||||||||||||||||||||||
| AT +iO<number> | Origination address. This number is placed as the origination address. [c] | |||||||||||||||||||||||||||
| AT +iB<n> |
| |||||||||||||||||||||||||||
| AT +iC[<n>] |
| |||||||||||||||||||||||||||
| AT +iD<n> |
| |||||||||||||||||||||||||||
| AT +iF<n> |
| |||||||||||||||||||||||||||
| AT +iG<bitmask> |
| |||||||||||||||||||||||||||
| AT +iL<n> | Maximum data frame length. <n> should be in the range of 0 ... 2048. 0 defaults to the maximum frame length supported by the Diva Server adapter. | |||||||||||||||||||||||||||
| AT +iM<n> |
| |||||||||||||||||||||||||||
| AT +iN<Format> |
| |||||||||||||||||||||||||||
| AT +iP<n> |
| |||||||||||||||||||||||||||
| AT +iS<Format> |
| |||||||||||||||||||||||||||
| At +iT<n> | ISDN trace options. Reserved for use by Eicon Networks Corporation. <n> ranges from 0 to 255. | |||||||||||||||||||||||||||
| AT +iH[<n>] |
| |||||||||||||||||||||||||||
| AT +iW<n> | Defers receive notifications to <n> bytes/millisecond. <n> should be in the range of 0 ... 64000. | |||||||||||||||||||||||||||
| AT +iX<n> | Respects read block size and defers receive notifications. <n> should be in the range of 0 ... 64000. | |||||||||||||||||||||||||||
| AT +iY<n> | Defers transmission to <n> bytes/millisecond. <n> should be in the range of 0 ... 8. | |||||||||||||||||||||||||||
| AT +iZ<n> | Splits large frames into <n> byte segments. <n> should be in the range of 0 ... 2048. | |||||||||||||||||||||||||||
| AT +iU=<BC>|<BC/LLC> | Sometimes the Service Indicator and Additional Service Indicator is not flexible enough to indicate all necessary information in bearer capabilities (BC) and low-layer compatibility (LLC) that the user wants to provide for an outgoing call. In this case the user can set these values directly. For example, to indicate a V.110 call with 38400 bps and the appropiate flow control option, the user can enter the command: AT+IU=<8890214d00bb> to specify the BC value. The provided BC and LLC values are used without any verification (except max. length of information element) to create the SETUP message sent over the D-channel. This allows the use of proprietary BC/LLC values not yet covered by standards. Please see Section 4.7 for details. | |||||||||||||||||||||||||||
| AT +iI | Reserved. | |||||||||||||||||||||||||||
| AT +iE=<Mode> |
| |||||||||||||||||||||||||||
| AT +iQ=<binding> |
| |||||||||||||||||||||||||||
| AT +iK=<binding> |
| |||||||||||||||||||||||||||
| AT +MF=<data bits><parity>,<top bits> | Data bits: 8,7,5. Parity: N (none), O (odd), E (even), S (space), M (mark). Stop bits: 1, 2. The transmission rate is derived from the currently selected Rx/Tx transmission speed (+MS command). Example: AT+MF=8,N,1 - select 8 data bits, no parity and one stop bit. | |||||||||||||||||||||||||||
| AT +MF? | Returns currently selected framing. | |||||||||||||||||||||||||||
| AT +MF=? | Returns list of supported parameters. | |||||||||||||||||||||||||||
| AT +MS? | Modulation Selection Query. The response to the query has the following format: AT +MS: <mod>,<auto>,<min>,<max>,<min_rx>,<max_rx>. | |||||||||||||||||||||||||||
| AT +MS=[<mod>][,[<auto>][,[<min>][,[<max>][,[<min_rx>][,[<max_rx>]]]]]] | Modulation Selection Set. Modulation: B103 (300 bps), B212A (1200 bps), V21 (300 bps), V22 (1200 bps), V22B (1200 - 2400 bps), V22F (1200 bps Diva Fast Setup), V22BF (1200 - 2400 bps Diva Fast Setup), V23C (Tx:75 bps/Rx:1200 bps outgoing call, Tx:1200 bps/Rx:75 bps incoming call), V23HDX, V23HDXON (1200 bps half duplex for SMS over PSTN, off/on hook standard), V32 (4800 - 9600 bps), V32B, (4800 - 14400 bps), V34 (2400 - 33600 bps), V90 (28000 - 56000 bps download client <- server, 28000 - 32000 bps upload client -> server), V90a (28000 - 56000 bps upload client -> server, 28000 - 32000 bps download client <- server). Auto: 0 - use only the specified modulation, 1 - try other modulations with lower data rates if the specified modulation cannot be used. min: Minimum transmit data rate. max: Maximum transmit data rate. min_rx: Minimum receive data rate. max_rx: Maximum receive data rate. Only V90 modulation has different transmit/receive rates. Rate = 0 means no minimum or maximum limitation. Valid Rate Values (in bps): 75, 300, 600, 1200, 2400, 4800, 7200, 9600, 12000, 14400, 16800, 19200, 21600, 24000, 26400, 28000, 28800, 29333, 30667, 31200, 32000, 33600, 33400, 34667, 36000, 37333, 38000, 38667, 40000, 41333, 42000, 42667, 44000, 45333, 46000, 46667, 48000, 49333, 50000, 50667, 52000, 53333, 54000, 54667, 56000, 0 | |||||||||||||||||||||||||||
| Notes: a. "AT+" commands are Eicon-specific commands which may come either as part of a normal AT command or as part of a called party number. b. If you use this AT command in sequence (in one line) with other AT commands, it should either be the last command or it should be followed by a semi-colon ";". For example: the AT-command sequence AT&F14, AT#CID=7, ATS0=1, AT+IA12 can be written as: AT&F14#CID=7S0=1+IA12 or AT&F14+IA12;#CID=7S0=1 c. If a subaddress (SUB) needs to be entered, it must be separated from the rest of the number by a vertical character [|] (also called the pipe symbol). d. If supported by used bearer protocol (for example V.110). e. Determines if the ASYNC/SYNC conversion module is inserted on top of OSI Layer 3 and which mode this module assumes. Please see Section 4.4 for details. f. Commonly used values are: 1/1 - ISDN voice call 3.1 kHz, 1/2 - Analog voice call, 1/3 - ISDN voice call 7 kHz, 2/1 - Fax group 2, 2/2 - Fax group 3, 2/3 - Data over modem connection, 2/4 - BTX over modem connection, 7/0 - 64 kbps Data, 7/170 - 56 kbps Data, 7/197 - V.110 rate adaptation. Please see Section 4.7 for details. | ||||||||||||||||||||||||||||
Table 4-8. Supported FAX CLASS 1 and FAX CLASS 2 AT-command set (excerpt of complete list)
| Command | Description |
|---|---|
| AT +FCLASS? | Queries the configured modem class. |
| AT +FCLASS=? | Displays all supported modem classes. |
| AT +FCLASS=<n> | Configures the modem for modem class <n>. 0 - Data mode, 1 - EIA class 1, 2 - EIA class 2 |
| AT +FMFR? | Returns the name of the modem manufacturer. |
| AT +FMDL? | Returns the name of the modem model. |
| AT +FREV? | Returns the product version. |
| AT +FLPL=<n> | Control class 2 polling capability. 0 - Normal operation. 1 - Document available for polling. |
| AT +FTD | Set current time and date |
| AT +FPH | Page header generation |
The AT+FTD command is used to set the current date and time. The current time and date should be set before each FAX transmit session. The syntax of the command is: AT+FTD=year,month,hour,minute,second,zone,dtsdelta
Table 4-9. AT+FTD command parameters
| Parameter | Description |
|---|---|
| year | The current year. Range: 1970 to 65535 |
| month | The current month number. Range: 1 to 12. January is 1. |
| day | The current day of the month. Range: 1 to 31. |
| hour | The current hour. Range: 0 to 23. |
| minute | The current minute. Range 0 to 59. |
| second | The current second. Range 0 to 59. |
| zone | Reserved. Should be set to zero. |
| dtsdelta | Reserved. Should be set to zero. |
The AT+FPH command is used to enable automatic generation of a FAX page header. There are three legal formats for the syntax of this command:
AT+FPH=mode,"left"
AT+FPH=mode,"left'middle'right"
AT+FPH=mode,"left'right"
Table 4-10. AT+FPH command parameters
| Parameter | Description |
|---|---|
| mode | Reserved. Should be set to 1. |
| string | The string defines the page header itself. Only ASCII printable characters are allowed in the string (0x20 thru 0x7e). Escape sequences that are introduced with the percent (%) character are allowed. The string can be partitioned into one, two, or three parts by using single quote characters (') in the command expression. |
An escape sequence is a % followed by an optional width, which may include a leading left-justification signifier, and then by the escape character itself. It is of the form %[numbers][-]character. The dash (-) denotes left justification. When the dash is absent, right justification is used. If the width specification starts with a zero and the escape sequence is expanded, the value will be left-padded with zeroes. Otherwise, it will be left-padded with spaces.
Table 4-11. Recognized escape sequences
| Sequence | Description |
|---|---|
| %d (or %D) | The day of the month as a decimal number (range 01 to 31). |
| %h (or %H) | The hour as a decimal number using a 24-hour clock (range 00 to 23). |
| %i (or %I) | The hour as a decimal number using a 12-hour clock (range 01 to 12). |
| %m | The month as a decimal number (range 01 to 12). |
| %M | The minute as a decimal number (two digits). |
| %p | Either "am" or "pm" according to the given time value, or the corresponding strings. |
| %P | The current page number of the FAX being sent, as computed by the padding. Please note that page number is always printed at the right upper corner of the page and not at the location where %P tag was found. |
| %r (or %R) | The ID of the remote FAX machine. Leading and trailing blanks are stripped. A printf-style field width specifier such as %20r or %-20r can be used to print this always in a fixed width field. |
| %s (or %S) | The second as a decimal number (two digits). |
| %t (or %T) | The ID of the transmitting FAX machine. Leading and trailing blanks are stripped. A printf-style field width specifier such as %20t or %-20t can be used to print this always in a fixed width field. |
| %y | The year as a decimal number without the century. |
| %Y | The year as a decimal number including the century. |
| %C | C - unrecognized format character. Printed as C. |
You can use the AT&F[<profile>] and ATZ[<profile>] commands to select a TTY profile.
Table 4-12. Supported TTY profiles
| Profile | Description |
|---|---|
| 14 | Autodetection of B-channel protocol. Please see incoming call type detection for details. |
| 1 | X.75/Transparent/Transparent protocol stack. Data compression in accordance with V.42bis is detected automatically for incoming calls. |
| 2 | V.110 synchronous mode. |
| 3 | V.110 asynchronous mode. |
| 4 | Synchronous modem with V.42/V.42bis. |
| 5 | Asynchronous modem (up to V.90) with full negotiation and V.42/V.42bis/MNP. |
| 6 | V.120, 64 kbps, V.42bis compression auto-detection for incoming connections |
| 7 | V.120, 56 kbps, V.42bis compression auto-detection for incoming connections |
| 8 | Bit-transparent access to B-channel data [a] |
| 9 | HDLC/Transparent/Transparent protocol stack that is widely used for PPP connections [b]. |
| 10 | Same as profile 9, but with 56000 bps |
| 11 | BTX |
| 12 | BTX |
| 15 | X.75 with data compression in accordance with V.42bis. This profile should be used for outgoing calls if you wish to use data compression in accordance with V.42bis. If the opposite side does not support data compression, the connection will be established without data compression. |
| 16 | PIAFS 1.0 32 kbps [c] |
| 17 | PIAFS 2.0 64 kbps [c] |
| 18 | PIAFS 2.1 32/64 kbps [c] |
| Notes: a. By default, this profile does not switch to data mode after the connection was established. b. This profile switches to numeric mode (ATV0) and "echo off" (ATE0) by default. c. You can use the AT+iE command to activate the CHINA PIAFS protocol extension. | |
For incoming calls, you can use autodetection of the B-channel protocol. The call autodetection procedure detects the call type, uses the right framing and ASYNC/SYNC PPP conversion if necessary in order to present the data to the RAS PPP application like it comes from an analog modem (ASYNC PPP framing). This allows you to use a standard RAS application that serves all incoming calls on the same port, independent from the call type.
In autodetection mode, the TTY proceeds as follows:
It analyzes the BC/LLC if present. If enough information is given in BC/LLC, the appropriate protocol is selected.
If not enough information is given in BC/LLC, the first frame that is received over the B-channel is analyzed and the appropriate protocol is selected.
B-channel data is analyzed and the ASYNC/SYNC PPP conversion module is inserted if necessary.
HDLC/Transparent/Transparent
HDLC/X.75/Transparent
HDLC/X.75 with V.42bis data compression/Transparent
HDLC/V.120/Transparent
HDLC/V.120 with V.42bis data compression/Transparent
V.110/Transparent/Transparent
Analog Modem with full negotiation (up to V.90 central office)/V.42+V.42bis or V.42 or Transparent - buffered mode/Transparent
PIAFS/PIAFS/Transparent
If the adapter is operated on broken ISDN links that provide wrong call-type information over the signaling channel, it might be necessary to force the TTY driver to handle all incoming calls in a specific way independent of the signaled call type. This functionality is provided by the AT+iE command that affects all virtual TTY interfaces exposed by the Diva Server TTY driver and can be changed only by unloading the driver or issuing another AT+IE command.
The ASYNC/SYNC conversion module is inserted on top of OSI layer 3 and is used for automatic framing type detection and conversion. Together with the B-channel protocol autodetection, this module enables automatic discrimination of the incoming call type and thus allows to set up a RAS server that is able to accept digital, analog, wireless, and PIAFS calls on the same number by a standard ASYNC PPP application.
The ASYNC/SYNC conversion module is controlled by the AT+iF and AT+iG commands. If you select modem profile 14 (AT&F14 or ATZ14), correct values will be set for most applications and B-channel protocol detection will be enabled.
At the beginning, the ASYNC/SYNC conversion module escapes every control character when it explodes a sync frame because this is the initial state for PPP over asyncronous lines (expected by RNA). Thus 0xffffffff is set as the initial receive ACCM. If the peer does not send an ACCM with its configuration request, a null ACCM added to such a request by default, to prevent the overhead of escaping every control character.
The ASYNC/SYNC conversion module assumes that such frames will never contain unescaped control characters for asynchronous RNA frames. Thus, 0x00000000 is set like the initial transmit ACCM. Because some routers (for example Cisco and NetGW) reject an ACCM on synchronous links, the ASYNC/SYNC PPP conversion module removes (but remembers) the ACCM from outgoing configuration requests by default.
The FAX CLASS 2 AT-command set provides an easy way to access fax-related functionality.
Note that using FAX CLASS 2 for fax document processing also forces you to deal with a number of problems:
It is necessary to maintain a constant data stream between the application and the FAX CLASS 2 device. Any interruption in this data stream will affect the quality of the fax document.
It is necessary to deal with various low-level T.30 protocol settings like scan line time, compression, error correction, etc.
Not all applications or devices support all command-set features provided by FAX CLASS 2. This limits the functionality and may require modification of the existing application.
The usage of fax document compression forces you to deal with compressed data (reception), or to be able to generate compressed data stream on demand, or to provide documents in different compression formats (transmission).
The "classic" FAX CLASS 2 application is unable to deal with transmission speeds above 14400 bps. To be able use V.34 fax transmission speeds of up to 33600 bps, the application needs to be modified.
This section explains how the Diva Server adapter overcomes these drawbacks and allows you to use the FAX CLASS 2 AT-command set to process fax documents with the same level of reliability and flexibility as a sophisticated high-level fax API.
Diva Server adapters provide a high-performance block-oriented IDI (ISDN Direct Interface) between the adapter hardware and the host CPU. The data transfer is performed via a BUS master DMA. This enables a reliable data transfer between the host CPU and the adapter memory that is not affected by the host CPU load. At the same time, using the BUS master DMA reduces the host CPU load.
The Diva Server TTY interface does not perform any data processing. It is only used to forward the data stream between the application and the IDI interface (i.e. "virtual" or "emulated" TTY interface). The entire data processing is performed on the RISC CPU of the Diva Server adapter. The reliability of the data stream is ensured by the adapter hardware through buffering (up to 64 Kbytes for every channel) and block-oriented data transfer (blocks of up to 2 Kbytes) via the BUS master DMA.
The FAX CLASS 2 application can ignore low-level T.30 protocol settings. The T.30 protocol stack that runs on the RISC CPU of the Diva Server adapter is able to perform the required adjustment of transmission parameters to provide most reliable and fast document transmission without any application intervention.
You can overrule the automatic T.30 protocol parameter adjustment with FAX CLASS 2 commands. If your application does not support the appropriate command set or the required features are not part of the FAX CLASS 2 command set, you can use global Diva Server adapter fax settings or global Diva Server TTY interface settings to overrule the automatic parameter adjustment.
SEP/SUB/PWD commands are used to address the document recipient and to select or protect the polled document.
Diva Server adapters' support for SEP/SUB/PWD is transparent to the application. The appropriate features can be activated via global Diva Server TTY interface settings without any application intervention. The received SEP/SUB/PWD frames are delivered to the application via "+FSA:", "+FPA:", and "+FPW:" indications.
You can control ECM support via the FAX CLASS 2 AT-command set or via global Diva Server TTY interface settings.
If you use global TTY interface settings to enable ECM support, the Diva Server adapter will always use ECM mode for document transfer, if supported by the opposite side.
Diva Server adapters use their internal memory to store document data. They retrieve data for ECM re-transmissions from this internal buffer (up to 64 Kbytes for every channel). This reduces the host CPU load and increases the reliability of the fax transmission.
if supported by the opposite side.Diva Server adapters use MR, MMR, T.6 fax document compression. In order to reduce transmission time, Diva Server adapters always select the best compression algorithm supported by the opposite side. The adapter's RISC CPU is used to re-compress 1D-coded page data from the application to the format requested by the opposite side (transmission) and to convert received data to 1D-coded page data that are then sent to the application (reception).
The entire re-compression process is handled internally by the adapter's RISC CPU and happens fully transparent to the application, that deals only with 1D (MH) coded data.
You can adjust the compression-related T.30 protocol settings via global Diva Server adapter fax configuration.
The V.34 fax support can be activated via global Diva Server TTY interface settings. If the Diva Server adapter is able to establish a connection with a transmission speed above 14400 bps (V.34), it handles this fully transparent to the application. In order to avoid incompatibility with FAX CLASS 2 applications, the Diva Server adapter never indicates transmission speeds above of 14400 bps to the application. This means all transmission speeds above of 14400 bps are mapped to 14400 bps.
You can use the divalogd accounting utility that uses the Diva Server adapter management interface to get information on the real transmission speed and the used compression algorithm.
Table 4-13. TTY configuration options
| Option | Description |
|---|---|
| Default initialization string | This AT command is used to initialize the TTY interface when the application opens this interface. This process is hidden from the application and can be used for compatibility with applications that cannot provide the required TTY-interface initialization. |
| Enable ECM for FAX CLASS 2 | Always use ECM, MR, MMR T.6 if supported by the opposite side. The Diva Server adapter handles the conversion between MR/MMR (MMR/MR) compressed data transparent to the application. |
| Enable V.34 (33600) fax for FAX CLASS 2 | Always use V.34 (33600) fax if supported by the opposite side. V.34 connections are handled transparent to the application. They are indicated to the application as V.17 (14400) connections. |
| Enable SEP/SUB/PWD for FAX CLASS 2 | Activate support for sub-addressing (SUB), polled document selection (SUB) and document password protection (PWD). Note that this option will increase fax connection time and should only be used if necessary. |
Every profile has its own service/additional service indicator that enables the appropriate selection of Bearer Capabilities (BC) and Low-Layer Compatibility elements for the SETUP message. These indicators are used to filter incoming calls and to tell the remote site which kind of connection the user wants to establish for outgoing calls.
To change these default values for outgoing calls, use the AT commands AT+iS (specify service/add service indicator) or AT+iU (specify BC/LLC values).
By default, the Diva Server TTY interface operates in "channel pool" mode. It presents all Diva Server adapters available in the system as one adapter to the user application. This adapter owns all channels provided by the real Diva Server adapters.
This feature hides all call distribution details from the application and allows easy creation of RAS, fax, or unified-messaging servers.
You can use the AT+iQ command to control this behaviour and to bind specific Diva Server TTY interfaces to specific Diva Server adapters [7].
Incoming calls are handled in the following sequence of operations:
The Diva Server adapter receives a call.
The Diva Server adapter uses the active signaling protocol to select the B-channel that will be used for this call.
The Diva Server adapter delivers the call to the Diva Server TTY driver.
The Diva Server TTY driver delivers the call to the first application that matches the call type and is ready to receive incoming calls (ATS).
Outgoing calls are handled in the following sequence of operations:
The user application issues a call on an arbitrary Diva Server TTY interface.
The Diva Server TTY interface transfers the call request to the first Diva Server adapter that is able to handle this call type and owns free B-channel resources.
The Diva Server adapter uses the active signaling protocol to select the B-channel that will be used for this call.
The ESCAPE sequence enables you to switch from ONLINE mode (data transfer mode) to ESCAPE mode (command mode with the connection established in the background).
The ESCAPE sequence includes the following procedure:
No data is sent to TTY for 2 seconds.
Three "+" characters are sent. The time interval that passes between two "+" characters should not exceed 1 sec.
No data is sent to TTY for 2 seconds.
TTY switches to ESCAPE mode and sends OK response. The response format depends on the ATV and ATQ commands.
To switch from ESCAPE back to ONLINE mode, issue the "ATO" command. To drop the connection and return to COMMAND mode, issue the "ATH" command.
In ESCAPE mode, you can read the S-registers, view the modem profile, and change port timeout and TTY interface related values, but you cannot issue DIAL and ANSWER commands.
To change the ESCAPE character or disable or enable the ESCAPE sequence, use the S2 S-register.
Depending on the response code format that is selected by the ATV command, the result code can be delivered as plain text message (direct form) or as numeric code.
The format of the plain text CONNECT command response can be controlled by the AT\V command.
Table 4-14. Command responses
| Meaning | Direct form | Numeric form |
|---|---|---|
| Command accepted | OK | 0 |
| CONNECT 300 bps | CONNECT, CONNECT 300 | 1 |
| Ring indication | RING | 2 |
| Carrier lost, switched back to command mode | NO CARRIER | 3 |
| Invalid command, command was not accepted | ERROR | 4 |
| CONNECT 1200 bps | CONNECT, CONNECT 1200 | 5 |
| Dial attempt failed (L1 error, L2 error, no free B-channel) | NO DIALTONE | 6 |
| Opposite side has rejected the call or is busy | BUSY | 7 |
| No equipment on the opposite side has answered the call | NO ANSWER | 8 |
| Successful connect to the opposite side | CONNECT, CONNECT + speed and norm. Depends on AT\V | 9 |
If you select the numeric response format (ATV0), "CONNECT" will be indicated in numeric form in accordance with Table 4-15.
Table 4-15. Numeric CONNECT responses
| Connection speed | Numeric response |
|---|---|
| 14400 | 9 |
| 1200 | 10 |
| 2400 | 11 |
| 4800 | 12 |
| 9600 | 13 |
| 19200 | 14 |
| 38400 | 15 |
| 48000 | 16 |
| 56000 | 17 |
| 64000 | 18 |
| 11111 | 19 |
| 75 | 20 |
| 110 | 21 |
| 150 | 22 |
| 300 | 23 |
| 600 | 24 |
| 2400 | 26 |
| 4800 | 27 |
| 7200 | 28 |
| 9600 | 29 |
| 12000 | 30 |
| 14400 | 31 |
| 16800 | 32 |
| 19200 | 33 |
| 21600 | 34 |
| 24000 | 35 |
| 26400 | 36 |
| 28800 | 37 |
| 31200 | 38 |
| 33600 | 39 |
| 36000 | 40 |
| 38400 | 41 |
| 40800 | 42 |
| 43200 | 43 |
| 43200 | 43 |
| 45600 | 44 |
| 48000 | 45 |
| 50400 | 46 |
| 52800 | 47 |
| 55200 | 48 |
| 56000 | 49 |
| 57600 | 50 |
| 60000 | 51 |
| 62400 | 52 |
| 64000 | 53 |
| 28000 | 54 |
| 29333 | 55 |
| 30666 | 56 |
| 32000 | 57 |
| 33333 | 58 |
| 34666 | 59 |
| 37333 | 60 |
| 38666 | 61 |
| 40000 | 62 |
| 41333 | 63 |
| 42666 | 64 |
| 44000 | 65 |
| 45333 | 66 |
| 46666 | 67 |
| 49333 | 68 |
| 50666 | 69 |
| 52000 | 70 |
| 53333 | 71 |
| 54666 | 72 |
The Diva Server TTY interface is obsolete and is not longer updated. Please use the Diva TTY management interface.
The Diva Server TTY driver allows you to control the state of TTY interfaces through an additional device node with MAJOR 8 and MINOR 0. This device node named /dev/ttydsctrl is created during default installation.
Commands of the TTY control interface are used as ASCII strings and have the following format: <N>:<command_string>, where <N> is the decimal number that selects the TTY interface and <command_string> is the command to be issued on the TTY interface.
All commands are issued via the write or ioctl system
call. The return value of this system call (success or failed) is used to indicate the result of
the operation.
To issue the command via the ioctl interface, you must write the
command into a buffer with a length of 512 bytes including the terminating zero.
The ioctl system call will receive the output (if any) in the same buffer
and return the amount of bytes stored in the buffer.
The ttysctrl utility can be used to access the Diva Server TTY control
interface via the ioctl system call.
The TTY control interface allows:
To check if the selected TTY interface is opened. The used command string is
open. If the interface is open, the operation will return
success.
If the interface is not open, the operation will return failed.
To check if the selected TTY interface is online. The used command string is dcd. If the interface is online (i.e. not in command mode), the operation will return success. If the interface is offline or not open, the operation will return failed.
To issue a HANGUP command to the selected Diva Server TTY interface. If the interface is online, the result of this command is the same as for an ATH command. The used command string is h. If the command is successful, it will return success. If it fails (Diva Server TTY interface is not opened by application), failed is returned.
To issue a HANGUP+RESET command to the selected Diva Server TTY interface. If the interface is online, the result of this command is the same as for an ATZ command. The used command string is z or z<x>, where <x> is the decimal number of the Diva Server TTY profile. If the command is successful, it will return success. If it fails (Diva Server TTY interface is not opened by application or invalid profile number), it will return failed.
To issue an AT-command sequence to the selected Diva Server TTY interface. This command can only be issued if the modem is offline. Any valid command string can be used. If the command is successful, it will return success. If it fails (Diva Server TTY interface is not opened by application, invalid command, or Diva Server TTY interface is online), it will return failed.
To issue an additional "status" message to obtain the modem status (online/offline)
and parameters of the current or the last connections (used protocol, transmission speed) if the
ioctl interface is used (IOCTL command code 0x3701).
The output is stored as zero-terminated ASCII string including the terminating zero in the same
buffer that is used to pass the command to the Diva Server TTY interface.
All operations described above are carried out completely hidden from the application that owns the selected Diva Server TTY interface.
Example 4-1. Use the "ttydsctrl" application to retrieve the status of Diva Server TTY interface 2 (/dev/ttyds2).
/usr/lib/eicon/divas/ttydsctrl -c 2 -status if [ $(($?)) -ne 0 ] then echo "Operation failed, TTY 2 not opened by application ?" fi
In case of success, this command returns the port status in the following format:
DCD [ON|OFF] CID: <x>[/<y>] DAD: <z>[/<h>]
DCD [ON|OFF] CID: <x>[/<y>] DAD: <z>[/<h>] CONNECT <protocol>/[<opt>/]<speed>
<x> is the calling party number (if any)
<y> is the calling party number sub-address (if any)
<z> is the destination address (if any)
<h> is the destination sub-address (if any)
<protocol> is the currently (last) used protocol. It can be one of the following protocols: MODEM, PIAFS, X75, V110, V120, FAX, G.711, HDLC, BTX, X75V42
<opt> are the protocol options (if any). The options can be one of the following: DAP, RTP, VR1, VR2, FTR for PIAFS protocol. They can be any combination of: V21, V23, V22, V22B, V22F, V22BF, V23HDX, V23HDXON, V32, V32B, V34, BELL212A, BELL103, V90, and LAPM/V42BIS, LAPM, MNP5, MNP for analog modem.
<speed> is the current (last) connection speed in the format TxSpeed/TX RxSpeed/RX for analog modem or a single number for all other protocols.
Example 4-2. Use the ttydsctrl application to issue the "AT&F5+MS=V22B,0;S0=1;+MF=7,e,1" AT command to TTY interface 1 (/dev/ttyds01).
/usr/lib/eicon/divas/ttydsctrl -c 1 -command "AT&F5+MS=V22B,0;S0=1;+MF=7,e,1" if [ $(($?)) -ne 0 ] then echo "AT command failed. TTY 1 not opened by application ?" echo "Or invalid AT command ?" echo "Or TTY interface is online ?" else echo "Modem init OK, Diva Server TTY profile settings were changed to 5 (Analog Modem)" fi
Example 4-3. Use echo command to check if Diva Server TTY interface 10 ( /dev/ttyds10) is open. [8] [9]
echo "10:open" > /dev/ttydsctrl if [ $(($?)) -ne 0 ] then echo "Interface is closed" else echo "Interface is opened" fi
Example 4-4. Check if Diva Server TTY interface 2 (MINOR 2, device node /dev/ttyds02) is online. [8] [9]
echo "2:dcd" > /dev/ttydsctrl if [ $(($?)) -ne 0 ] then echo "Interface is online" else echo "Interface is offline (command mode)" fi
Example 4-5. Hang up Diva Server TTY interface 120 (/dev/ttyds120). [8] [9]
echo "120:h" > /dev/ttydsctrl if [ $(($?)) -ne 0 ] then echo "Hangup failed. Diva Server TTY 120 not opened by application?" else echo "Modem hangup OK" fi
Example 4-6. Hang up and reset Diva Server TTY interface 1 (/dev/ttyds01). [8] [9]
echo "1:z" > /dev/ttydsctrl if [ $(($?)) -ne 0 ] then echo "Hangup+Reset failed. Diva Server TTY 1 not opened by application?" else echo "Modem hangup+reset OK, Diva Server TTY will not accept any more calls" echo "and original profile settings are recovered" fi
Example 4-7. Hang up and reset Diva Server TTY interface 1 (/dev/ttyds01) to profile 5 (analog modem). [8] [9]
echo "1:z5" > /dev/ttydsctrl if [ $(($?)) -ne 0 ] then echo "Hangup+Reset failed. Diva Server TTY 1 not opened by application?" echo "or invalid profile number selected?" else echo "Modem hangup+reset OK, Diva Server TTY will not accept any more calls" echo "and profile settings were changed to 5 (analog modem)" fi
Example 4-8. Issue "AT&F5+MS=V22B,0;S0=1;+MF=7,e,1" AT command to Diva Server TTY interface 1 (/dev/ttyds01). [8] [9]
echo "1:at&f5+ms=v22b,0;S0=1;+mf=7,e,1" > /dev/ttydsctrl if [ $(($?)) -ne 0 ] then echo "AT command failed. Diva Server TTY 1 not opened by application?" echo "or invalid AT command?" echo "or Diva Server TTY interface is online?" else echo "Modem hangup+reset OK, Diva Server TTY will not accept any more calls" echo "and profile settings were changed to 5 (analog modem)" fi
The dial-in server is built using the mgetty and pppd utilities. mgetty is responsible for TTY interface initialization and call answering. pppd provides method for transmitting datagrams over point-to-point links and is responsible for link control, authentication, and for network protocol configuration.
The Diva Server TTY interface is set in auto-detection mode. In this mode the TTY driver will detect the type of the used protocol and PPP framing and will convert it to ASYNC PPP. This allows all calls to be served by pppd in the same way.
Setting up an "ppp" dial-in server
Make sure that the mgetty+sendfax package is installed on your system.
Change the context of the /etc/mgetty+sendfax/mgetty.config file as follows:
# set the global debug level to "4" (default from policy.h)
#debug 9
# access the modem(s) with 38400 bps
speed 38400
# This is 33600 only
#init-chat "" AT&F14;S0=0;E0;\\V1#CID=1;+ms=v34,1 OK
init-chat "" AT&F14+IF5+IM4;S0=0;E0;\\V1#CID=1 OK
data-only y
blocking no
toggle-dtr no
modem-type data
modem-check-time 0
autobauding no
answer-chat-timeout 180
Change the context of the /etc/mgetty+sendfax/login.config file as follows:
# Automatic PPP startup on reception of LCP configuration request (AutoPPP).
# mgetty has to be compiled with "-DAUTO_PPP" for this to work.
/AutoPPP/ - a_ppp /usr/sbin/pppd modem
#
# Disable login sessions
#
* - - /bin/false @
Add the following lines to the /etc/inittab file, one for every Diva Server TTY interface that you plan to use for your dial-in server.
SXX:2345:respawn:/usr/sbin/mgetty ttydsXX
"XX" is the Diva Server TTY device number (01, 02, etc.). For example, if one BRI adapter
with 2 channels is installed in the system, you should add two entries:
S01:2345:respawn:/usr/sbin/mgetty ttyds01
S02:2345:respawn:/usr/sbin/mgetty ttyds02
Make sure that the ppp package is installed on your system.
Change the context of the /etc/ppp/options file as follows:
#
# Common options for all TTY interfaces
#
lock
#
# Debug
#
#debug 9
#kdebug 9
#
modem
noipx
noccp
nodeflate
nobsdcomp
asyncmap 00000000
lcp-echo-interval 10
lcp-echo-failure 5
#
# Set the local system name
#
user roadrunner
#
# Provide address of your DNS server
#
ms-dns 192.168.212.130
nodefaultroute
proxyarp
netmask 255.255.255.255
auth
#
# Two following lines will disable CHAP and allow PAP
#
#require-pap
#refuse-chap
#
# The following option disables the identification via 'clear text'
# user name and password transmission and
# enable CHAP and derivates
#
refuse-pap
+chap
+chapms
+chapms-v2
#
# Allows to set idle link timeout
#
#idle 900
In case you plan to use PAP auth protocol please create file /etc/ppp/pap-secrets:
# Secrets for authentication using PAP
# client server secret IP addresses
test1 * pwdtest1 *
test2 * pwdtest2 *
In case you plan to use CHAP auth protocol please create file /etc/ppp/chap-secrets:
# Secrets for authentication using CHAP
# client server secret IP addresses
test1 * pwdtest1 *
test2 * pwdtest2 *
Create for every ttydsxx interface that you use for dial-in server (i.e. where mgetty was started) one /etc/ppp/options.ttydsxx file that contains the IP addresses for local and remote ends of the PPP link. In this example the configuration file /etc/ppp/options.ttyds01 contains:
#
# Options that differ for every TTY interface (i.e. IP address)
#
# LOCAL IP:REMOTE_IP
192.168.212.240:192.168.212.241
Optionally, you can use dynamic IP address assignment. Please refer to pppd documentation for details.
If you plan to allow access from the router to your network, it is necessary to allow IP forwarding: echo 1 > /proc/sys/net/ipv4/ip_forward.
Execute "kill -HUP 1" to start mgetty processes (this command will inform "init" process about changes in the /etc/inittab file).
Now the dial-in server is running. You can use name/password pairs "test1/pwdtest1" and "test2/pwdtest2" and CHAP/MS-CHAP protocol to gain access to the system.
A dial-in callback server allows you to gain access to your system using the callback procedure.
The callback procedure allows you to establish the connection, invoke the authentication procedure and provide phone number where the dial-in server will call you back.
The following description is based on Section 4.12 and provides only changes.
The mgetty utility is responsible for the initialization of the TTY interface and for the answering of the incoming calls. Once the call establishement is complete, mgetty will start the modified pppd utility pppd.callback. The pppd.callback will establish the PPP link, invoke the authentication procedure and obtain callback parameters. Finally, pppd.callback will disconnect the link and execute the user-provided application (script) that will issue the call back.
Please set up the dial-in server using Section 4.12. Finally, please follow the descibed procedure below to configure a dial-in callback server.
Install the changed ppp.callback ppp application in the /usr/sbin directory.
Change the context of the /etc/mgetty+sendfax/login.config file as follows (it uses now the changed ppp application ppp.callback):
# Automatic PPP startup on receipt of LCP configure request (AutoPPP).
# mgetty has to be compiled with "-DAUTO_PPP" for this to work.
/AutoPPP/ - a_ppp /usr/sbin/pppd.callback modem
#
# Disable login sessions
#
* - - /bin/false @
Change the context of the /etc/ppp/options file as follows:
#
# Common options for all TTY interfaces
#
#
# Debug
#
#debug 9
#kdebug 9
#
#
# Allow callback operation and set-up callback script
#
callback 211
callbackscript /etc/ppp/callback.sh
modem
noipx
noccp
nodeflate
nobsdcomp
asyncmap 00000000
lcp-echo-interval 10
lcp-echo-failure 5
#
# Set the local system name
#
user roadrunner
#
# Provide the address of your DNS server
#
ms-dns 192.168.212.130
nodefaultroute
proxyarp
netmask 255.255.255.255
auth
#
# The two following lines will disable CHAP and allow PAP
#
#require-pap
#refuse-chap
#
# the following option disables the identification via 'clear text'
# user name and password transmission and
# enable CHAP and derivates
#
refuse-pap
+chap
+chapms
+chapms-v2
#
# Allows to set idle link timeout
#
#idle 900
Please note that the lock option was removed and two new parameters were added:
callback which activates callback and provides default callback number,
and callbackscript which provides the name of a callback application.
Create a callback script /etc/ppp/callback.sh as follows:
#! /bin/sh
set -e
# Parameter 1 - Callback Address
# Parameter 2 - TTY device name
# Parameter 3 - peer auth name
if [ $(($#)) -lt $((3)) ]
then
logger -i -t callback.sh Parameter missing > /dev/null 2>&1
exit 1
fi
mantool="/usr/lib/eicon/divas/divactrl mantool -b -Exclusive -WDog -c 1001"
#
# Read the callback parameters from the management interface
#
phone=$1
tty_dev=$2
tty_nr=$2
name=$3
# parameter is passed as "/dev/ttydsXX"
tty_nr=$(($(echo ${tty_nr} | sed -e "s/^.*ttyds//" -)))
if [ $((tty_nr)) -lt $((1)) ]
then
logger -i -t callback.sh Invalid tty name $1 > /dev/null 2>&1
exit 1
fi
#
# Set up the dial script file name
#
dial=/etc/ppp/diva_dial.$((tty_nr))
tty_nr=$(($tty_nr-1))
dir_start=$(($tty_nr/50))
dir_start=$(($dir_start*50))
dir_start=$(($dir_start))
dir_end=$(($dir_start+50))
offset=$(($tty_nr-$dir_start))
offset=$(($offset+1))
atinit=$(${mantool} -rTTY\\TTY$(($dir_start+1))-$((dir_end))\\T$((offset))\\AtInit | sed -e "/^$/d" - | sed -e "s/^.* = //" -)
protocol=$(${mantool} -rTTY\\TTY$(($dir_start+1))-$((dir_end))\\T$((offset))\\ProtocolName | sed -e "/^$/d" - | sed -e "s/^.* = //" -)
txspeed=$(${mantool} -rTTY\\TTY$(($dir_start+1))-$((dir_end))\\T$((offset))\\TxSpeed | sed -e "/^$/d" - | sed -e "s/^.* = //" -)
if [ -z "$atinit" ]
then
atinit="AT&F9"
fi
atinit="${atinit}E1V1"
#
# Check for V.110 (GSM) callback and set the connection parameters
#
baud=""
if [ "$protocol" = "V.110" ]
then
if [ $((txspeed)) -eq $((38400)) ]
then
baud="+ib7+iu=<8890214d00bb>"
else
# Use 9600Bps as default bit rate
baud="+ib5+iu=<8890214800bb>"
fi
fi
if [ ! -z "$baud" ]
then
atinit="${atinit}${baud}"
fi
#
# Create the dial script now
#
echo "#! /bin/sh" > ${dial}
echo "" >> ${dial}
echo "chat -S -V -t 90 ABORT BUSY ABORT NO REPORT CONNECT '' \"${atinit}\" OK ATD${phone} CONNECT " >> ${dial}
chmod 700 ${dial}
logger -i -t callback.sh "Callback(${phone},${tty_dev},\"${atinit}\"${name})" > /dev/null 2>&1
#
# Start PPP
#
/usr/sbin/pppd.callback ${tty_dev} 115200 connect ${dial} modem user $user nocallback nodetach
exit $(($?))
Please change the permissions of callback.sh file to "executable".
The callback script receives the callback number, the TTY device name and the peer name from the command line (i.e. from pppd.callback instance that was responsible for the callback procedure) and retrieves the information about used bearer protocol and framing from the management interface of Diva Server TTY driver. Finally, callback.sh uses the available information to construct dial script and to issue the callback.
The mgetty+sendfax package contains the mgetty daemon that allows processing and distribution of incoming fax messages.
By default, mgetty saves received fax messages in the /var/spool/fax/incoming directory and executes the /etc/mgetty+sendfax/new_fax shell script to notify you about the reception of a new fax message.
The default new_fax shell script processes the received pages and transmits them via email. You can change this script to add your preferred processing.
You can use the faxview application to view and print received fax messages.
Setting up an "mgetty" fax server
Make sure that the mgetty+sendfax package is installed on your system.
Change the context of the /etc/mgetty+sendfax/mgetty.config file as follows:
# Select your preferred debug level here.
# The current global debug level is "4" (default from policy.h).
debug 4
# Set any interface. The exact value is not important
# because the Diva Server TTY interface is virtual.
speed 38400
init-chat "" AT&F;S0=0;E0;\\V1#CID=1 OK
#
# Set your FAX ID in the following line.
#
fax-id 0123456789
blocking no
toggle-dtr no
modem-check-time 0
answer-chat-timeout 180
fax-only Y
modem-type cls2
Add the following lines to the /etc/inittab file, one for every Diva Server TTY interface that you plan to use for your fax server.
SXX:235:respawn:/usr/sbin/mgetty ttydsXX
"XX" is the Diva Server TTY device number (01, 02, etc. ). For example, if one BRI adapter with 2 channels is installed in the system, you should add two entries:
S01:2345:respawn:/usr/sbin/mgetty ttyds01
S02:2345:respawn:/usr/sbin/mgetty ttyds02
Change the /var/log/mgetty+sendfax/new_fax file, if necessary. You can change the destination email address or add conversion of received fax messages to the preferred graphic format.
Issue kill -HUP 1 to start mgetty.
Setting up an "mgetty" fax polling server
Make sure that the mgetty+sendfax package is installed on your system.
Change the context of the /etc/mgetty+sendfax/mgetty.config file as follows:
# Select your preferred debug level here.
# The current global debug level is "4" (default from policy.h).
debug 4
# Set any interface. The exact value is not important
# because the Diva Server TTY interface is virtual.
speed 38400
init-chat "" AT∧F;S0=0;E0;\\V1#CID=1 OK
#
# Set your FAX ID in the following line
#
fax-id 0123456789
blocking no
toggle-dtr no
modem-check-time 0
answer-chat-timeout 180
fax-only Y
modem-type cls2
Add the following line to the /etc/inittab file, one for every Diva Server TTY interface that you plan to use for your fax server.
SXX:235:respawn:/usr/sbin/mgetty -S polling ttydsXX
"polling" is the name of the fax document to be polled (in G3 format). Optionally, it can be a text file that contains the list of the fax document files (one file name per line). In this case, the files should be in G3 format and will be transmitted as consecutive pages of the same fax document.
"XX" is the Diva Server TTY device number (01, 02, etc.). For example, if one BRI adapter with 2 channels is installed in the system, you should add two entries:
S01:2345:respawn:/usr/sbin/mgetty -S polling ttyds01
S02:2345:respawn:/usr/sbin/mgetty -S polling ttyds02
Issue kill -HUP 1 to start mgetty.
The Diva Server driver modules can be unloaded simply by executing: /usr/lib/eicon/divas/Stop
If you wish to stop and unload the Diva drivers manually, proceed as described below:
Login as "root" (or use su).
If you have started any tools that access the CAPI or Diva Server TTY interfaces, stop these tools to release the interfaces.
If you have modified /etc/inittab or /etc/ttys to start getty/mgetty/ppp on one of the Diva Server TTY interfaces, remove these entries from these files and execute kill -HUP 1.
Check that the Divastty, capi and divacapi modules are not busy (call lsmod to check it).
Execute rmmod capi && rmmod divacapi && rmmod kernelcapi to unload the CAPI drivers.
Execute rmmod Divatty to unload the Diva Server TTY drivers.
Execute rmmod diva_idi && rmmod divas && rmmod divadidd to stop and unload the XDI drivers.
To uninstall the Diva Server for Linux package, login as root (or use su) and execute: rpm -e divas4linux_<a_b_cc_dd>_<ee>-<ff-xxx.yy-z> [10] [11] [12] where divas4linux_<a_b_cc_dd>_<ee>-<ff-xxx.yy-z> is the name of the installed rpm package without the .i386.rpm extension.
If you have installed the package divas4linux_2_2_16-101.2-1.i386.rpm, execute rpm -e divas4linux_2_2_16-101.2-1 in order to uninstall this package.
You can manually remove the Diva Server for Linux files from your system, but this is not recommended as it will leave the package entry in the RPM database and may cause problems reinstalling the package. Manual removal might become necessary if your RPM database was corrupted or destroyed. To uninstall the Diva Server package manually, proceed as described below:
The management interface can be used to control the adapter configuration at run time without reloading or restarting the Diva Server adapter. It can also be used as source of information and events for an SNMP interface, call statistics and accounting utilities, or other management applications.
The management interface is located on the adapter (or in the device driver). It is structured like a virtual file space, containing directories and variables. Each directory and variable is identified by its path and name. A path contains a directory name followed by a specific variable or subdirectory that is separated by a backslash "\".
Variables can have the following functions:
The divalogd accounting utility uses the sources of information contained in the management interface and maintains a detailed call log and call activity journal. Based on the information from divalogd, you can provide accounting and access restriction services, and control the quality of the provided services.
Table 6-1. "divalogd" parameters
| Parameter | Description | ||||||
|---|---|---|---|---|---|---|---|
| -Silent | Silent operation mode, do not display messages. | ||||||
| -Log [<x>] |
| ||||||
| -LogFile <x> | Store journal to file <x>. The default file is: /var/log/divalog | ||||||
| -CallLog [<x>] |
| ||||||
| -CallLogFile <x> | Store call log to file <x>. The default file is: /var/log/divacall | ||||||
| -nodetach | Do not detach from the controlling terminal. If you do not use this option, divalogd becomes a background process. | ||||||
| -h or -? or --help | Help | ||||||
| --version | View build version. |
If divalogd is started without parameters, it enters the journal mode and stores journal records in the default journal file /var/log/divalog.
In this mode, divalogd calculates the total time used for every call and generates a call record at the end of the call.
The journal file contains the following information items:
Call direction
Event time
Adapter
B-channel number
Call duration
Used protocol (modem, fax, V.110, HDLC, etc.)
Modem RX/TX rate (max/min)
Fax speed
Fax remote station ID
Fax direction (in case of polling)
Fax ECM mode
Fax compression mode
The information is stored as a list of records, separated by a comma ",". New information entities are always added to the end of this list. The first line of the journal file contains a description of every information entity and the order of the entities in the list.
This operating mode can be used parallel with the call monitor mode.
If started in the call monitor mode, divalogd monitors call activity and writes call activity records to the default log file /var/log/divacall as soon as connections are created or released.
The call log file contains the following information items:
Event time
Call event type (begin/end)
Call direction
Protocol
Adapter
B-channel
The information is stored as a list of records, separated by a comma ",". New information entities are always added to the end of this list. The first line of the call log file contains a description of every information entity and the order of the entities in the list.
This operating mode can be used in parallel with the journal mode.
The divactrl package contains the mantool utility that allows you to access (read, write or execute) directories and variables of the management interface. It also allows you to turn on events and receive notifications from these events when the corresponding variable's state changes.
This utility can be used to capture additional statistics or create ISDN firewall services [13] with its own system of events or together with divalogd.
To start the Mantool utility, type: /usr/lib/eicon/divas/divactrl mantool -c <x> <parameters>"[<path>]
Where <x> is the logical adapter number, <parameters> specify the action to be taken, and <path> is the path to the directory or variable in the management interface that you want to access. [14] [15] [16] [17]
The following parameters can be used with the Mantool utility:
| Parameters | Description |
|---|---|
| -r | Reads the content of management interface directory or variable specified in [path]. |
| -w | Sets the value of the management interface variable specified in [path]. |
| -e | Executes the management interface function specified in [path]. |
| -m | Monitors incoming/outgoing calls (line activity). |
| -a | Monitors state changes of analog modem hardware (connection progress and reporting). |
| -g | Monitors state changes of fax G3 hardware (connection progress and status reporting). |
| -Exclusive | Obtains exclusive access to the management interface. In this mode mantool will use the file lock to obtain exclusive access to the adapter. Normally, it is necessary to get access to the management interface of the device driver that supports only one management entity. The lock operation will time out after 10 sec. In this case mantool will return error. |
| -WDog | Use 20 sec timeout for management interface operation. This may be necessary if mantool is invoked from script and should not block for undetermined amount of time. |
| -b | Informs mantool that it was invoked from the script. In this mode mantool will newer block and wait for user input and will not print the copyright header. |
The management interface is structured like a virtual file space, containing directories with variables. The set of operations that is valid for each variable depends on the variable type and attributes.
Table 6-2. Management interface variable types
| Type | Description |
|---|---|
| MI_DIR | Directory |
| MI_HINT | Unsigned integer with hexadecimal representation, variable length |
| MI_UINT | Unsigned integer, variable length |
| MI_ASCIIZ | ASCII string, zero terminated |
| MI_ASCII | ASCII string, counted |
| MI_BOOLEAN | Boolean value |
| MI_BITFLD | Unsigned integer, representation as bit field, variable length |
| MI_EXECUTE | Variable represents executable function |
The management interface is located on the adapter. It is structured like a virtual file space, containing directories and variables. Each directory and variable is identified by its path and name. A path contains a directory name followed by a specific variable or subdirectory that is separated by a backslash "\".
Table 6-4. Management interface root directory
| Name | Type | Attribute | Description |
|---|---|---|---|
| MIF Version | MI_HINT | RO | Version number of the management interface |
| Build | MI_ASCIIZ | RO | Name and build number of the protocol file |
| Events down | MI_UINT | EVENT | Any variable's event tracing is paused until internal resources are re-available |
| Config | MI_DIR | Selected protocols and their parameters, hardware state | |
| Statistics | MI_DIR | Statistics counters etc. | |
| State | MI_DIR | State of B-channels | |
| Trace | MI_DIR | Trace functions (every application instance will receive an individual copy of the trace information) |
Table 6-5. Management interface Config directory
| Name | Type | Attribute | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DChannel | MI_DIR | Selects used D-channel protocol (switch type) on demand. | |||||||||||
| Layer 2 | MI_DIR | Selects layer 2 parameters on demand. | |||||||||||
| Layer 1 | MI_DIR | Selects layer 1 parameters on demand (PRI only). | |||||||||||
| Modem | MI_DIR | Analog modem parameters | |||||||||||
| Fax | MI_DIR | Fax parameters | |||||||||||
| Robbed Bit | MI_DIR | Robbed Bit Signaling protocol options | |||||||||||
| Version | MI_UINT | Protocol version | |||||||||||
| DID-Length | MI_UINT | W | When this variable is set, the incoming digits of the called number are collected until their length corresponds to the given DID-Length. Only then, the call is forwarded to the application [a]. | ||||||||||
| Ringertone | MI_BOOLEAN | W | Selects whether in-band tones (busy/alert) are generated in the B-channel when they are not provided by the ISDN equipment. | ||||||||||
| Redial-Timeout | MI_UINT | W | Sets the time in seconds within which only a restricted number of redial attempts is possible. The possible number of attempts is defined by the "Redial-Attempts" variable. After the "Redial-Timeout" has expired, new redial attempts may be made. | ||||||||||
| Robbed Bit | MI_DIR | RBS/CAS protocol configuration (PRI only) | |||||||||||
| US-EKTS | MI_DIR | US protocol supplementary services configuration | |||||||||||
| Redial-Attempts | MI-UINT | W | Sets the number of redial attempts that may be made within the period defined in "Redial-Timeout". | ||||||||||
| QSIGDialect | MI_UINT | W |
| ||||||||||
| NT | MI_BOOLEAN | W | Selects NT or TE operation mode. Only writeable for NT-capable adapters. | ||||||||||
| PRI | MI_BOOLEAN | RO | PRI or BRI adapter | ||||||||||
| GlobalCRs | MI_BOOLEAN | W | Turns processing of D-channel messages with global call reference on/off. | ||||||||||
| NoOrderCheck | MI_BOOLEAN | W | Turns order check of information elements in D-channel message on/off. | ||||||||||
| NT-2 | MI_BOOLEAN | W | Turns NT 2 (direct inward dialing) mode on/off | ||||||||||
| LoopBack | MI_BOOLEAN | W | Turns loop back on physical interface on/off. | ||||||||||
| CardType | MI_UINT | RO | Diva Server adapter type | ||||||||||
| SerialNumber | MI_UINT | RO | Serial number of adapter | ||||||||||
| BoardRevision | MI_UINT | RO | Hardware revision of adapter | ||||||||||
| SubFunction | MI_UINT | RO | Sub-function | ||||||||||
| DSPState | MI_BITFLD | RO | Bit field to identify presence of DSPs | ||||||||||
| SPID-# | MI_DIR | D-channel link configuration |
Table 6-6. Management interface Config\US-EKTS directory
| Name | Type | Attribute | Description |
|---|---|---|---|
| CACH Appearances | MI_UINT | W | Sets the number of call appearances (CACH = Call Appearance Call Handling). |
| Key BeginConf | MI_HINT | W | Sets the key value that activates the begin conference feature. |
| Key DropConf | MI_HINT | W | Sets the key value that activates the drop conference feature. |
| Key CallTransfer | MI_HINT | W | Sets the key value that activates the call transfer feature. |
Table 6-7. Management interface Config\DChannel directory
| Name | Type | Attribute | Description |
|---|---|---|---|
| Name | MI_ASCIIZ | RO | Name of currently active D-channel protocol |
| <Available protocols> | MI_EXECUTE | Execute these functions to select the appropriate protocol. | |
| Release | MI_ASCIIZ | RO | Builds time and date of protocol image |
Table 6-8. Management interface Config\Layer2 directory
| Name | Type | Attribute | Description |
|---|---|---|---|
| Stable L2 | MI_ASCIIZ | RO | Name of currently active layer 2 activation strategy |
| On demand (0) | MI_EXECUTE | Selects "on demand" activation strategy, i.e. layer 2 is disconnected after last active connection was cleared. | |
| Send No Disc (1) | MI_EXECUTE | Selects "no disc" activation strategy, i.e. layer 2 is disconnected only if requested by NT side. | |
| Permanent (2) | MI_EXECUTE | Selects "permanent" activation strategy, i.e. adapter will try to keep layer 2 always active. | |
| L2 | MI_UINT | W | Number of currently active layer 2 activation strategy. Writing to this variable will change the layer 2 activation strategy without resetting the D-channel protocol state, i.e. state will be changed later after last active connection is cleared. |
Table 6-9. Management interface Config\Layer1 directory
| Name | Type | Attribute | Description |
|---|---|---|---|
| Current name | MI_ASCIIZ | RO | Name of used layer 1 framing type |
| Current | MI_UINT | W | Number of used layer 1 framing type, can be written to select new layer 1 framing type. |
| Auto CRC4 | MI_EXECUTE | Selects auto detection of layer 1 framing type. | |
| CRC4 | MI_EXECUTE | Selects CRC4. | |
| No CRC4 | MI_EXECUTE | Selects double framing. |
Table 6-10. Management interface Config\SPID-# directory
| Name | Type | Attribute | Description |
|---|---|---|---|
| Automatic TEI | MI_BOOLEAN | RO | Automatic TEI assignment enabled (point to multipoint mode) |
| TEI | MI_UINT | RO | Fixed TEI value |
| SPID | MI_ASCII | W | SPID number string |
| Number | MI_ASCII | W | Origination address string |
| Sub-Adr | MI_ASCII | W | Origination sub-address string |
Table 6-11. Management interface Config\Robbed Bit directory
| Name | Type | Attribute | Description | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Options | MI_BITFLD | W |
| ||||||||||||||
| Answerdelay | MI_UINT | W | Sets the time (in seconds) after which the adapter hangs up if the remote site does not answer a call. | ||||||||||||||
| Digittimeout | MI_UINT | W | Sets the time (in seconds) that may pass between incoming dialed digits. If this time interval is exceeded, the called number is assumed to be complete and the call is forwarded to the application | ||||||||||||||
| Bearer Cap | MI_UINT | W | Sets the bearer capability that has to be included in the incoming call that is signaled to the application. Possible values are: 4 - Analog/voice (3.1 kHz), 8 - Digital/data. | ||||||||||||||
| Debug | MI_BITFLD | W | Sets the debug mask that is to be used for Robbed Bit Signaling. |
Table 6-12. Management interface Statistics\Outgoing Calls directory
| Name | Type | Attribute | Description |
|---|---|---|---|
| Calls | MI_UINT | EVENT | Number of requested calls. |
| Connected | MI_UINT | EVENT | Number of successful calls. |
| User busy | MI_UINT | RO | Number of calls refused because the user was busy. |
| No Answer | MI_UINT | RO | Number of calls refused because remote station did not answer. |
| Wrong Number | MI_UINT | RO | Number of calls refused because an invalid number was dialed. |
| Call rejected | MI_UINT | RO | Number of calls refused because remote station rejected the call. |
| Other failures | MI_UINT | RO | Number of calls refused because of other reasons than the ones listed above. |
| Clear values | MI_EXECUTE | Resets all values in this directory. |
Table 6-13. Management interface Statistics\Incoming Calls directory
| Name | Type | Attribute | Description |
|---|---|---|---|
| Calls | MI_UINT | EVENT | Number of incoming calls. |
| Connected | MI_UINT | EVENT | Number of accepted calls. |
| User busy | MI_UINT | RO | Number of calls refused because the user was busy. |
| Call rejected | MI_UINT | RO | Number of calls refused because they were rejected. |
| Wrong number | MI_UINT | RO | Number of calls refused because an invalid number was dialed. |
| Incompatible destination | MI_UINT | RO | Number of calls refused because the destination was not compatible with the TE. |
| Out of order | MI_UINT | RO | Number of calls refused because destination was out of order. |
| Ignored | MI_UINT | RO | Number of calls refused because the call was ignored. |
| Clear values | MI_EXECUTE | Resets all values above. |
Table 6-14. Management interface Statistics\B/D-Layer1/2 directory
| Name | Type | Attribute | Description |
|---|---|---|---|
| X-Frames | MI_UINT | RO | Number of frames sent. |
| X-Bytes | MI_UINT | RO | Number of bytes sent. |
| X-Errors | MI_UINT | RO | Number of detected transmit errors. |
| R-Frames | MI_UINT | RO | Number of received frames. |
| R-Bytes | MI_UINT | RO | Number of received bytes. |
| R-Errors | MI_UINT | RO | Number of detected receive errors. |
Table 6-15. Management interface State directory
| Name | Type | Attribute | Description |
|---|---|---|---|
| Layer1 | MI_ASCIIZ | EVENT | State of layer 1. |
| Layer2 No# | MI_SPID_STATE | EVENT | State of D-channel link number #. |
| CODEC # | MI_DIR | Adjustment and states of CODEC number # (this directory is only available with CTI-capable adapters equipped with audio codec). | |
| B# | MI_DIR | State of B-channel number #. |
Table 6-16. Management interface State\CODEC directory
| Name | Type | Attribute | Description |
|---|---|---|---|
| Mic Volume Hdset | MI_UINT | W | Volume of head/handset microphone 1 (0...8). |
| Spk Volume HdSet | MI_UINT | W | Volume of head/handset speaker 1 (0...9). |
| Mic Volume HFree | MI_UINT | W | Volume of hands-free (ext) microphone (0...8). |
| Spk Volume HFree | MI_UINT | W | Volume of speaker in handsfree mode (0...12). |
| Spk Volume LoudH | MI_UINT | W | Volume of speaker in loudhearing mode (0...12). |
| Transmit Volume | MI_UINT | W | Gain adjustment of transmit path1 (micro, 0...51). |
| Receiver Volume | MI_UINT | W | Gain adjustment of receive path1 (spk, 0...51). |
| Sidetone Gain | MI_UINT | W | Hand/Headset 1 sidetone gain adjustment (0...51). |
| Ring Volume Ext | MI_UINT | W | Volume of external ringer (ext. speaker, 0...12). |
| Ring Melody | MI_UINT | W | Selection of predefined ringer melodies (0...9). |
| IntrTone Volume | MI_UINT | W | Volume 1 of intrusion tone melody (0...10). |
| IntrTone Melody | MI_UINT | W | Selection of actual intrusion tone melody (0...9). |
| Muting on/off | MI_UINT | W | Switches microphone 1 off (0...1). |
| HdSet 1 Status | MI_ASCIIZ | EVENT | Plug state / hook state of hand/headset 1. A handset can be Unplugged, Operating or Hook ON. |
| Ext Mic Status | MI_ASCIIZ | EVENT | Plug state of the external microphone. An external microphone can be Unplugged or Operating. |
| HdSet 2 Status | MI_ASCIIZ | EVENT | Plug state / hook state of hand/headset 2. A handset can be Unplugged, Operating or Hook ON. |
| Switch Status | MI_ASCIIZ | EVENT | Telephone chip (codec) operating mode. Can be one of: Off, Head/HandSet ON, External Mic/Spk ON, Alerting External Speaker, Alerting Head/Handset. Alerting Head/Handset is active if an intrusion tone is used to ring a call. |
| Switch Hdset/Ext | MI_EXECUTE | Toggles between hands-free and headset. | |
| Mic Vol 2 HdSet | MI_UINT | W | Volume of head/handset microphone 2 (0...8). |
| Spk Vol 2 HdSet | MI_UINT | W | Volume of head/handset speaker 2 (0...9). |
| Transmit Vol 2 | MI_UINT | W | Gain adjustment of transmit path2 (micro, 0...51). |
| Receiver Vol 2 | MI_UINT | W | Gain adjustment of receive path2 (spk, 0...51). |
| Sidetone Gain 2 | MI_UINT | W | Hand/Headset 2 sidetone gain adjustment (0...51). |
| IntrTone Vol 2 | MI_UINT | W | Volume 2 of intrusion tone melody (0...10). |
| Muting 2 on/off | MI_UINT | W | Switches microphone 2 off (0...1). |
Table 6-17. Management interface State\B# directory [18]
| Name | Type | Attribute | Description |
|---|---|---|---|
| Framing | MI_ASCIIZ | RO | Used layer 1 protocol. |
| Line | MI_ASCIIZ | EVENT | Line state (idle, connected in/out). |
| Layer2 | MI_ASCIIZ | RO | Used layer 2 protocol. |
| Layer3 | MI_ASCIIZ | RO | Used layer 3 protocol. |
| Line type | MI_ASCIIZ | RO | Dialup/leased. |
| Remote Address | MI_ASCII | RO | |
| Remote Subaddr | MI_ASCII | RO | |
| Local Address | MI_ASCII | RO | |
| Local Subaddr | MI_ASCII | RO | |
| BC | MI_NUMBER | RO | Bearer Capability. |
| HLC | MI_NUMBER | RO | High Layer Compatibility. |
| LLC | MI_NUMBER | RO | Low Layer Compatibility. |
| Charges | MI_UINT | EVENT | Sum of line-related charges. |
| Call Reference | MI_HINT | RO | Last used value. |
| Last Disc Cause | MI_HINT | RO | Last used value. |
| User ID | MI_ASCII | RO | Last owner that claimed this channel, if any. |
| Clear Call | MI_EXECUTE | Send DISCONNECT for channel B#. | |
| FAX | MI_DIR | Current state of this B-channel's fax instance (if any). | |
| Modem | MI_DIR | Current state of this B-channel's modem instance (if any). | |
| Layer 1 | MI_DIR | Current Layer 1 statistics of this B-channel's hardware. | |
| Layer 2 | MI_DIR | Current Layer 2 statistics of this B-channel's protocol instance. |
Table 6-18. Management interface Trace directory
| Name | Type | Attribute | Description |
|---|---|---|---|
| B-Ch# Enable | MI_BITFLD | W | Bit field to enable specific B-channels. |
| Debug Level | MI_HINT | W | Upper limit of debug events to log. |
| D-HW Txt Mask | MI_BITFLD | W | D-channel hardware trace mask. |
| B-HW Txt Mask | MI_BITFLD | W | B-channel hardware trace mask. |
| Misc Txt Mask | MI_BITFLD | W | Trace mask for various use. |
| Event Enable | MI_BITFLD | W | Bit field to enable specific trace events. |
| Max Log Length | MI_UINT | W | Maximum number of data bytes in trace. |
| Log Buffer | MI_TRACE | EVENT | Trace information: L1, D-channel, B-channel and debug information. |
The TTY management interface is located in the TTY device driver. It is structured like a virtual file space, containing directories and variables. Each directory and variable is identified by its path and name. A path contains a directory name followed by a specific variable or subdirectory that is separated by a backslash "\". TTY driver managemet interface is accessible via logical adapter number 1001. The TTY driver provides only one management entity, and cannot be accessed by multiple application simultaneously. For this reason user should perfom access in "exclusive" mode (divactrl mantool -Exclusive -c 1001 -r). In exclusive mode divactrl mantool will use the file lock to synchronize the access to the management interface fully transparent to the caller.
You can use the Management interface of the TTY driver to obtain the information about TTY driver, to change the configuration of the TTY driver and to view and to control state of the TTY interfaces.
The "GlobalOptions" management interface directory allows to change the values of the configuration parameters that affect all TTY interfaces (global configuration parameters). The values of these parameters are passed to the TTY driver module at load time. Using the management interface allows you to change the values of parameters at run time.
Table 6-19. GlobalOptions
| Name | Type | Attribute | Description |
|---|---|---|---|
| GlobalOptionsRaw | MI_HINT | W | Bitmask that reflects values of the boolean configuration parameters. |
| FAX_FORCE_ECM | MI_BOOLEAN | W | Always use ECM, MR, MMR T.6 if supported by the opposite side. The Diva Server adapter handles the conversion of MR/MMR (MMR/MR) compressed data transparent to the application. |
| FAX_FORCE_V34 | MI_BOOLEAN | W | Always use V.34 (33600) fax if supported by the opposite side. V.34 connections are handled transparently to the application. They are indicated to the application as V.17 (14400) connections. |
| FAX_FORCE_SEP_SUB_PWD | MI_BOOLEAN | W | You can activate SEP/SUB/PWD (polled document selection, sub-addressing and polled document password protection). The Diva Server TTY will report appropriate frames (if received) to the application. ATTENTION: Activate this option only if you really use the requested features. Otherwise it will slow down the connection establishment. |
| TTY_INIT | MI_ASCIIZ | W | TTY interface initialization string. You can use this parameter if your application cannot init the TTY interface. |
The "CallFilter" management interface directory allows to configure the call filters. The call filter allows to process the calls with a specific Calling Party Number with a preconfigured protocol, instead of using the protocol auto-detection procedure. This can be necessary for callers with non-standard behaviour, that does not allow reliable detection of the bearer protocol.
Table 6-20. CallFilter directory
| Name | Type | Attribute | Description |
|---|---|---|---|
| TotalFilters | MI_UINT | R | Total amount of available call filters. |
| ActiveFilters | MI_UINT | R | Total amount of used filters. |
| AvailableProtocols | MI_UINT | R | Coma-separated list of the protocols that can be used in call filter. |
| FXX-YY | MI_DIR | R | Directory that contains 50 (F1...F50) call filters. |
| Reset | MI_EXECUTE | R | Used to clear and to de-activate all filters. |
Every call filter consists of two entries: Calling Party Number und Protocol to be used. The numbers are compared from behind, i.e. 123 with math 123, 77123, 721999123, ... .
The "TTY" management interface directory allows you to control the state of the available TTY interfaces (TTY ports). Moreover, it is possible to issue one "DTR drop" to the TTY interface, that will clear the connection and re-initialize the selected TTY interface.
Applications can use the context of this directory to retrieve the information about the last processed call (detected protocol, bit rate, calling party number, ...) and use this information for example for call-back.
Table 6-22. Port Manager
| Name | Type | Attribute | Description |
|---|---|---|---|
| Count | MI_UINT | R | Total amount of ports available in the system. |
| Open | MI_UINT | R | Total amount of ports in use. |
| Connected | MI_UINT | R | Total amount of established connections. |
| TXX-YY | MI_DIR | R | Directories that contains information about TTY interfaces. |
Table 6-23. Port Status
| Name | Type | Attribute | Description |
|---|---|---|---|
| Nr | MI_UINT | R | Port number. |
| Open | MI_ASCIIZ | R | Ports status. Indicates if current port is in use. |
| DCD | MI_BOOLEAN | R | Indicates status od the DCD line. |
| Connected | MI_ASCIIZ | R | Indicates status of the connection. |
| SystemName | MI_ASCIIZ | R | Name of the device node in the "/dev" directory. |
| Protocol | MI_UINT | R | Protocol used to process current (last) call. |
| ProtocolName | MI_ASCIIZ | R | Name of the protocol used to process current (last) call. |
| Profile | MI_UINT | R | TTY profile to select protocol used to process current (last) call. |
| AtInit | MI_ASCIIZ | R | AT command to select protocol used to process current (last) call. |
| TxSpeed | MI_UINT | R | Current (last) transmission speed. |
| RxSpeed | MI_UINT | R | Current (last) reception speed. |
| DTR drop | MI_EXECUTE | R | Used to issue "DTR drop" on current TTY interface. |
The CAPI management interface is located in the CAPI device driver. It is structured like a virtual file space, containing directories and variables. Each directory and variable is identified by its path and name. A path contains a directory name followed by a specific variable or subdirectory that is separated by a backslash "\". The CAPI driver management interface is accessible via logical adapter number 1000 (i.e. divactrl mantool -Exclusive -c 1000 -r). The CAPI driver provides only one management entity and cannot be accessed by multiple application simultaneously. For this reason user should perfom access in "exclusive" mode (divactrl mantool -Exclusive -c 1001 -r). In exclusive mode the divactrl mantool will use file lock to synchronize the access to the management interface in a fully transparent way to the caller.
You can use the Management interface of the CAPI driver to obtain the information about CAPI adapters, applications, and PLCIs or to change the configuration of the CAPI driver.
The troubleshooting section is divided into two sections. The first section deals with general installation problems and outlines the steps to take to report the problem to the Customer Support at Eicon Networks. The second section deals with test tools that allows you to verify adapter configuration and to investigate connectivity problems.
If you have any problems loading Diva Server for Linux driver modules, (you do not see the divadidd, divas, diva_idi, kernelcapi, divacapi, capi, or Divatty modules listed when you execute the lsmod command) or if your computer crashes or freezes after you have loaded the drivers, use the Diva Server Support Wizard. To start the Diva Server support wizard, execute /usr/lib/eicon/divas/Support. The Diva Server Support Wizard allows you to select a problem profile and guides you through the maintenance process.
If you observe a total system failure and the Diva Server Support Wizard is not able to proceed until the end, restart the Diva Server Support Wizard and select problem profile number 5. In this mode, the Diva Server Support Wizard captures system information that allows Eicon support to replicate your system environment. For this operation your system should have at least 50 MB of free disk space.
The Diva Server Support Wizard will create a report file and inform you about the location and the name of this file. Add this file together with a detailed problem description to your support request.
To create the required driver trace files, execute the following command: /usr/lib/eicon/divas/Trace, select the appropriate trace profile and activate the trace daemon.
To stop the Diva Server Trace Wizard, execute /usr/lib/eicon/divas/Trace again and select Stop trace daemon and compress trace file. The Diva Server Trace Wizard will inform you about the location of the trace file.
You can use /usr/lib/eicon/divas/divactrl ditrace -i ditrace.bin to convert the binary trace file into a text file.
The divactrl package contains a D-channel trace tool that allows you to capture D-channel messages and monitor the layer 1 and layer 2 states of the ISDN interface on the selected adapter. It operates in two modes, trace mode and monitor mode. In trace mode, the D-channel monitor serves as ISDN diagnostic or trace tool. Its output can be traced for different events allowing you to create your own monitoring tools.
To start the D-channel monitoring tool in trace mode, execute: divactrl dchannel -c <x> [<parameters>], where: <x> is the logical adapter number to be traced.
Started without optional parameters, the D-channel monitoring tool captures all messages received or sent over the D-channel (including the layer 2 header) and writes a hex dump of these messages as ASCII characters to the standard output.
The following optional parameters can be used to change the destination type of the output:| Parameter | Description |
|---|---|
| -xlog | Use the Eicon Networks "xlog" format to output D-channel messages. This format uses the header D-[R,X](<Y>), where "R" is used for received messages, "X" is used for sent messages and "Y" is the message length including the layer 2 header. (Example: D-R(004) 02 01 01 01). |
| -syslog | Redirect the output to the system log file. Every record in the system log receives a header that contains the logical adapter number, the adapter name, and the adapter's serial number. |
| -dmonitor | This option allows you to output additional trace information containing layer 3 messages as seen by the internal state machine (as hex dump, without layer 2 header) and layer 3, layer 2, and layer 1 state events in decoded plain text. See example for details. |
| -Silent | Do not print messages to standard output or standard error log. Exit silently in case of an error and report the error by return code only. |
Example 7-1. D-channel trace output
SIG-X(004) 08 01 82 01
Q.931 CR82 ALERT
SIG-X(007) 08 01 82 0D 18 01 89
Q.931 CR82 SETUP_ACK
Channel Id 89
SIG-R(004) 08 01 02 0F
Q.931 CR02 CONN_ACK
SIG-R(008) 08 01 81 5A 08 02 80 D8
Q.931 CR81 REL_COM
Cause 80 d8 "Incompatible destination"
EVENT: Call failed in State "Call initiated"
Q.931 CR81 REL_COM
Cause 80 d8 "Incompatible destination"
L1_DOWN
SIG-EVENT FFFF 08
ACTIVATION_REQ
L1_DOWN
SIG-EVENT FFFF 08
ACTIVATION_REQ
L1_UP
SIG-EVENT FFFA 00
In monitor mode, the D-channel monitor runs in the background as daemon and reports status changes of layer 1 and (or) layer 2 to the user applications that are executed if the status changes.
To start the D-channel monitoring tool in monitor mode, execute: divactrl dchannel -c <x> -monitor <y> [<parameters>]
Table 7-1. D-channel monitor mandatory parameters
| Parameter | Description |
|---|---|
| x | The logical adapter number to be traced. |
| y | The user application [a] to be executed if the state of layer 1 or layer 2 changes. [b] This application is called with three parameters: 1 - Logical adapter number, 2 - Layer that changes its state (1 for layer 1, and 2 for layer 2), 3 - State after change (1 - UP, 0 - DOWN). The included dchannel_monitor sample application (shell script) can be used to notify the system administrator via email. |
| Notes: a. The dchannel_monitor shell script is provided as example and can be used to notify the system administrator (root account) about the link state via email. b. If the D-channel monitor fails to start the application or the application exits with an error, the D-channel monitor will report the failure to the system log. | |
Table 7-2. D-channel monitor optional parameters
| Parameter | Description |
|---|---|
| -l1off | Does not monitor changes of the layer 1 status. |
| -l2off | Does not monitor changes of the layer 2 status. This might be necessary for BRI interfaces if layer 2 is controlled by the NT side or is established "on Demand". |
| -syslog | Redirects output to the system log file. Every record in system log will receive a header that contains the logical adapter number, adapter name, and the adapter's serial number. |
| -dmonitor | This option allows you to output additional trace information to the system log. See the example above. |
The adapter health monitor contained in the divactrl package allows you to control the operating status of the Diva Server adapter. This utility uses the Diva Server XLOG interface [19] to control that the adapter remains in the operating (active) state.
To start the adapter health monitor, execute: divactrl load -c X -CardMonitor -File Y, where X is the adapter number to be monitored and Y is the file provided by the user to be executed in case of adapter failure.
If the adapter fails, the adapter health monitor will write the appropriate information to the system log and exit. Optionally, it can execute a user provided application. The sample shell script card_monitor can be used to notify the system administrator via email.
You can modify card_monitor or create your own script or application that restarts the failed adapter and the adapter monitor. (You can restart the Diva Server adapter fully transparent to applications and without unloading the interface drivers - all active connections will receive a DISCONNECT.)
The following trace information is accessible via the XLOG interface:
D-channel traces
B-channel traces (first 24 bytes)
Layer 1 interface events
Layer 2 events
Debug information
You can access this information using the following commands:
| Command | Description |
|---|---|
| divactrl load -c <x> -ReadXlog | Reads XLOG information from adapter <x>, decodes it, and prints it to standard output. |
| divactrl load -c <x> -ReadXlog -File <y>.txt | Reads XLOG information from adapter <x>, decodes it, and writes it to file <y>.txt. |
| divactrl load -c <x> -FlushXlog | Reads XLOG information from adapter <x>, decodes it, and prints it to standard output. Exits after no more XLOG messages are available. |
| divactrl load -c <x> -FlushXlog -File <y>.txt | Reads XLOG information from adapter <x>, decodes it, and writes it to file <y>.txt. Exits after no more XLOG messages are available. |
If the adapter state is changed to trapped [20] and you cannot access the adapter's debug or trace information via XLOG (i.e. adapter firmware problem), you can create a core dump of the adapter memory. This file can be used by Eicon to extract debug information and analyze the adapter's state.
To generate a core dump of the Diva Server adapter <x> and store it to the file core.bin, execute: /usr/lib/eicon/divas/divactrl load -c <x> -CoreDump -File core.bin. [21]
The tty_test utility contains a test server, a test client, and a small terminal application. The test client calls the test server. When the connection is established, the client starts to generate test frames and to transmit these frames to the test server. The test server loops all received data back to the transmitter (client). The test client verifies all received frames based on sequence number and check sum, and generates link statistics. The tty_test utility is located in the /usr/lib/eicon/divas directory.
The test server can be started with the following commands:
| Command | Description |
|---|---|
| tty_test <tty_nr> s <protocol> [-l<frame_length> -s<rate>] | This command starts a test server on your console. You can see all messages from the TTY interface and all link statistics generated by the receiving side. |
| tty_test <tty_nr> sv <protocol> [-l<frame_length> -s<rate>]& | This command starts a test server in the background. In this mode, the test server detaches from your console and does not display any output. To get information about the test server started in the background, use the ps x command. To safely stop the test server running in the background, use the HUP signal (kill -HUP process_number or killall -HUP tty_test). |
Table 7-3. Parameters for the tty_test in server mode
| Parameter | Level | Description | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| tty_nr | Mandatory | Diva Server TTY number that should be used by this test server. It should range between 1 and N, where N is the sum of B-channels of all Diva adapters installed in the system. | ||||||||||||||
| protocol | Mandatory |
| ||||||||||||||
| -l<frame_length> | Optional | Length of the test frame. It is normally not used by the test server but it should be provided if the -s option follows. | ||||||||||||||
| -s<rate> | Optional | Speed adaptation rate. This parameter should be indicated if the v110 B-channel protocol is used without auto detection. It should range between 2 and 9 (5-9600, 9-56000). If this option is selected, the "-l" option should also be used. |
The test client can be started with the following commands:
| Command | Description |
|---|---|
| tty_test <tty_nr> <CPN> <protocol> [-l<frame_length> -s<rate>] [-a<at_command>] [-y] [-m<packets>] | This command starts a test client on your console. |
| tty_test <tty_nr> <CPN> <protocol> [-l<frame_length> -s<rate>] [-a<at_command>] [-mpackets] -x& | This command starts a test client in the background. In this mode, the test client detaches from your console and does not display any output. It generates a file named log.<tty_nr> in its working directory. The test client reports its link statistics to this file. You can monitor the link statistics by the command strings log.* | more. |
Please note that tty_test updates the log files after 64 KBytes of data have been transferred. Also, please be patient if you use the V.110 protocol with 9600 bps.
To get information about the test client started in the background, type: ps ax | grep tty_test.
To safely stop the test client running in the background, use the "HUP" signal (kill -HUP process_number or killall -HUP tty_test). The tty_test utility understands the commands HUP, TERM, ABRT and INT. All these commands terminate the tty_test utility.
Table 7-4. Parameters for the tty_test in client mode
| Parameter | Level | Description | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| tty_nr | Mandatory | Diva Server TTY number that should be used by this test client. It should range between 1 and N, where N is the sum of B-channels of all Diva Server adapters that are installed in the system. | ||||||||||||||
| CPN | Mandatory | Called Party Number (any number can be used in back-to-back mode) | ||||||||||||||
| protocol | Mandatory |
| ||||||||||||||
| -l<frame_length> | Optional | Test frame length. It is required if the -s option follows. Default setting is 512 bytes. | ||||||||||||||
| -s<rate> | Optional | Speed adaptation rate. It should be indicated if the v110 B-channel protocol is used without auto detection. It should range between 2 and 9 (5-9600, 9-56000). If this option is selected, the -l option should be used. | ||||||||||||||
| -a<at_command> | Optional | Allows to provide additional AT-command strings used for client initialization. | ||||||||||||||
| -y | Optional | Does not display any messages except call progress and data transfer status. | ||||||||||||||
| -m<packets> | Optional | Exits after "packets" data packets were sent. Displays the transfer status on the screen (standard out) and prints it to the log.<tty_nr> file. Error messages generated at dial time are additionally written to syslog. If the data packets have been successfully transferred, exit status is 20. Any other exit status indicates an error. This option allows you to create scripts that provide tests for multiple calls with different protocols. |
Example 7-2. Start tty_test server with protocol auto-detection
To start the test server at TTY number 10 and use protocol auto-detection execute: tty_test 10 s auto.
Example 7-3. Start the test server using the V.110 protocol
To start the test server at TTY number 21 using the V.110 protocol with 9600 bps in the background execute: tty_test 21 sv v110 -l2048 -s5&
Example 7-4. Start the test client using the X.75 protocol and specify the frame length
To start the test client at TTY 1 using the X.75 protocol, the called party number 800, and a test frame length of 514 bytes, execute: tty_test 1 800 x75 -l514.
Example 7-5. Start the test client using the V.110 protocol
To start the test client at TTY 1 running in the background using the V.110 protocol, called party number 800, a test frame length of 128 bytes, a rate adaptation speed of 9600 bps, and rate adaptation indication in the bearer capabilities, execute: tty_test 1 800 v110 -l128 -s5 -a+iu="<8890214800bb>" -x&
Example 7-6. Start 30 test server and 30 test client sessions
Start 30 test server and 30 test client sessions using this sample shell script. It uses B-channel protocol auto-detection on the server side and V.110 with 9600 bps on the client side.
#! /bin/sh #This "n_cons" value will start 30 server and 30 client sessions n_cons=30 # remove old log files rm -f log.* while [ $((n_cons)) -ge 1 ] do echo "Start $(($n_cons+30)) -> $((n_cons))" /usr/lib/eicon/divas/tty_test $((n_cons)) sv auto& sleep 1 /usr/lib/eicon/divas/tty_test $(($n_cons+30)) 800 v110 -l512 -a+ib5+iu="<8890214800bb>" -x& sleep 1 n_cons=$(($n_cons-1)) done # # Please note that tty_test updates log files after 64 KBytes # of data have been transferred. Also, please be patient if you # use v110 with 9600 bps. # To view tty_test processes, type "ps x". # To view the log files, use "cat log.* | more". # -------------------------------------------------------------- # END OF SCRIPT # --------------------------------------------------------------
tty_test includes a simple and easy to use terminal mode. To start tty_test in terminal mode, execute: /usr/lib/eicon/divas/tty_test <tty_nr> t
Table 7-5. Parameters for the tty_test in terminal mode
| Parameter | Level | Description |
|---|---|---|
| tty_test | Mandatory | Diva Server TTY number that should be used by this test. It should range between 1 and N, where N is the sum of B-channels of all Diva Server adapters installed in the system. |
Normally, <CR> is forwarded to TTY. If you wish to strip <CR> from your input (for example to test the +++ escape operation), enter ENTER "r" ENTER. tty_test will enter the "no CR" mode and will remove <CR> from your input before data is written to TTY. You can switch back to "normal" operation by entering ENTER "R" ENTER. If you are in "no CR" mode, ENTER "r" ENTER writes a <CR> to TTY.
In terminal mode, you can view the content of the virtual modem status
register if you enter ENTER show msr ENTER.
This will issue TIOCMGET ioctl on the TTY interface and print its
output to the terminal.
You can set or clear the DTR line in the virtual Line Control Register (LCR).
If you enter ENTER "DTR+" ENTER, the DTR line will be set.
If you enter ENTER "DTR-" ENTER, the DTR line will be cleared
(TIOCMBIS and TIOCMBIC ioctl codes).
To quit the tty_test terminal mode, enter ENTER "q" ENTER.
tty_test has been developed to test and control the Diva Server TTY interface. It always tries to open the /dev/ttyds[01 .... ] device node. With other operating systems, the name of the Diva Server TTY interface may be different. You can still use tty_test without any changes if you create a symbolic link: ln -s <your_real_tty_interface_device_node> /dev/ttydsXXX.
You can use the Diva WEB interface, accessible at port 10005, to gain access to adapter and system configuration, management interfaces of Diva Server adapters and drivers, generate statistics and reports, invoke troubleshooting procedures, create/view trace files and view/control the status of the hardware.
To access the Diva WEB interface you need a WEB browser with "Java Script" support. For instance to access the Diva WEB interface at local host, type in the address window of you browser "http://127.0.0.1:10005".
The Diva HTTP server is controlled by internet daemon and is running only during the time as request from the user while it is processed. This allows to save system resources.
The Diva Server HTTP server (diva_httpd) is started via inetd (or xinetd). The product installation procedure will modify /etc/services and add the "diva-cfg" entry to this file. Finally, the installation procedure will inform the internet daemon (if any running) about changes in the configuration file.
Before you can access the Diva Server HTTP server you need to set a password in the /usr/lib/eicon/divas/httpd/login/login file. The valid password should contain not less as seven characters and being accessible only by "root".
If you generally want to disable the Diva Server HTTP server, you can execute cd /usr/lib/eicon/divas && sh ./cfg_util.sh 4 and the configuration procedure will remove the "diva-cfg" entry from the /etc/services file and inform the internet daemon about changes in the configuration file.
You can use stunnel [22] Universal SSL tunnel to allow secure access to the Diva Server WEB server.
To access the Diva HTTP server at a different port, you need to change the port number associated with the "diva-cfg" entry in the /etc/services file and restart the internet daemon.
After the first access to the Diva HTTP server, the "login" page appears:

After a successfull login, the Diva HTTP server verifies the "Java Script" functionality. If the WEB browser cannot provide the requested functionality, a WEB page appears informing you about the cause of the failure:

The server will automatically log you off after 15 minutes of inactivity.
You can log off using the following link:

The names of most configuration parameters and commands, accessible via the Diva WEB server, are exposed as HTTP links (HTML links are underlined and the mouse cursor changes its form if you move it over the link). If you click on the link, a page appears with help for this parameter. For instance if you click on




After the successful login procedure the Diva WEB server presents you the main page:









You can navigate through the management interface of the selected Diva Server adapter or driver using the management interface browser:

The management interface browser allows you to navigate through the management interface directories, read, write, and execute management interface variables using the "Operation" buttons.











Some of the messages are displayed as HTML links (underlined). You can receive more information about messages if you activate the link:


The Silver trace messages (and HTML links) deal with AudioTap data. Audio taps are the audio data samples on the input (output) of the analog modem and fax DSP code combined with control information from the DSP code (events, EYE patterns). You can click on the silver HTML link to start the Audio Tap Analyser that includes numerous tools.
Moreover, it is possible to download an Audio Tap file in "WAV" file format.


The record file of the call is stored in ASCII format and can be downloaded to a local machine. To receive more details on the format of the call record file, please read about the divalogd accounting utility.









Link status (Layer 1 state, Layer 1 alarms, Layer 2 state).
Total amount of Layer1/Layer2 frames/bytes transferred over the D-channel.
Total amount of Layer1/Layer2 errors detected in the D-channel frames.
Total amount of Layer1/Layer2 frames/bytes transferred over the B-channels.
Total amount of Layer1/Layer2 errors detected in the B-channel frames.
Total amount of calls.
Total amount of successful calls.
Total amount of failed calls, sorted by cause (User Busy, Imcopatible destination, etc.).
Total amount of successful modem calls.
Total amount of failed modem calls, sorted by cause (Not a modem device, etc.).
Total amount of successful fax calls.
Total amount of failed fax calls, sorted by cause (Not a fax device, Forced by application, etc.).
Using the AgentX protocol Diva SNMPX extends an existing snmp master agent to provide runtime data of installed Diva Server adapters. It provides call and line statistics as well as status and errors. Supported OIDs include the MIB-II ifTable (RFC 1213/2233) which is standard in all known SNMP-management applications as well as subsets of DS1-MIB (RFC2495), ISDN-MIB (RFC2127) and DIALCONTROL-MIB (RFC2128) and interface/channel state traps (RFC2233).
Net-SNMP v5.0.6 or higher
SNMP agents are included in most Linux distributions. Most distributors bundle the UCD-SNMP or Net-SNMP packages. The required version is Net-SNMP v5.0.6 or higher. To check your version use the command snmpd -v and upgrade if necessary. It is vital that AgentX is fully supported by this master agent.
To download the newest version of Net-SNMP browse the Net-SNMP Project Homepage
To configure and secure the snmp master agent correctly, please read the corresponding documentation and FAQ. For the impatient a quickstart is provided below:
Configuration of SNMP master agent
The system wide snmpd configuration file can reside in arbitrary locations. Most commonly you can find it in /usr/[local/]share/snmp/snmpd.conf or /etc/snmpd.conf. It can be created and modified by using the command snmpconf -i, which presents a configuration menu for most of the possible options. To get a basicly working (and insecure) configuration, you have to configure at least the following items:
Access Control: Create a SNMPv1/v2c read only community, enter a community string, an IP range and a starting OID. For testing purposes, use e.g. "mycomm, (no restriction), (no restriction)".
Agent Operating Mode
"Should the agent operate as a master agent or not?" Enter "agentx".
"IP address and port number" Specify the listening address and port, e.g. localhost:161
Start SNMP master agent (or restart if it is already running).
Issue the command snmpwalk -c mycomm localhost interfaces. This will walk the interfaces MIB tree. You should (at least) see data for the loopback- and ethernet interfaces. If you get a timeout, please check the above configuration. If you still have no success, delete the configuration file and start from the beginning. Eicon cannot provide support for this part of the configuration, but there are many resources on the internet. A good starting point is the Net-SNMP Project Homepage.
You can activate Diva SNMP support using the WEB based "System configuration" or using the console based Config application.
You can activate the Diva SNMP extension manual by the following command: /usr/lib/eicon/divas/divasnmpx. If there is a master snmp agent running, divasnmpx attaches to its AgentX socket /var/agentx/master. On failure it retries to open the socket every 10 seconds. This also applies during shutdown/restart of the snmp master agent: Diva SNMPX automatically reattaches to the master socket as soon as it is available again.
Diva SNMPX automatically detects the start of new Diva adapters and the shotdown of existing adapters and uses interface state traps to indicate these events to the management application.
Command line options
-f do not fork into background. Error messages are logged to stdout instead of syslog. Exit with "q" or "CTRL-C".
-s no error logging. Disable logging of error messages to syslog or stdout, depending on operating mode.
-oN specify offset for ifIndex. Diva Server entries in MIB-II's interfaces.ifTable are indexed by a number starting from this offset + 1. Default value is "-o100".
-h command line help.
Table 9-1. OIDs provided by Diva SNMPX
| MIB-II (RFC 1213/2233) | Path | Description |
|---|---|---|
| MIB-II | interfaces.ifTable.ifEntry. | |
| ifIndex | Unique index of Diva Server interfaces starting with ifIndex-offset + 1 (see option -oN). First, all installed Diva Server adapters are listed, followed by the available B-channels. | |
| ifDescr | For adapters, the cardname and it's serial number are returned. For B-channels, the string "BRI + ifIndex_of_adapter + number_of_b-channel_on_adapter" is returned. | |
| ifType | The type of the interface according to IANA: PRI, BRI, ISDN. | |
| ifMTU | Since the concept of MTU is not applicable on Diva Server interfaces, they return always 0. | |
| ifSpeed | The maximum interface speed in bits/s. | |
| ifAdminStatus | Always up. | |
| ifOperStatus | The current operating status of the interface. | |
| ifInBytes, ifInPackets, ifInErrors, ifOutBytes, ifOutPackets, ifOutErrors | For adapters, the added values of the D- and B-channel interface counters are returned. divactrl mantool reports these values in the following paths "Statistics\\[D|B]-Layer2\\[R|X]-[Bytes|Frames|Errors]". For B-channels, the following values are reported: "State\\B[n]\\L2 Stats\\R-[Bytes|Frames|Errors]" | |
| ifPhysAddr | Returns vendor-id, PnP-id, serialnumber of adapters formatted as hex string. Returns nothing for B-channels. | |
| LinkUp/LinkDown Traps | For status changes of interfaces a trap is generated that includes the appropriate ifOperStatus varbind. Trap destinations and access parameters must be configured in the underlying master agent (trapsink, etc.). | |
| ISDN-MIB (RFC2127) | transmission.isdnMib.isdnMibObjects.isdnSignalingGroup | |
| isdnSignalingGetIndex | Number of possible D-channels (equals number of installed adapters) | |
| ISDN-MIB | transmission.isdnMib.isdnMibObjects.isdnBasicRateGroup.isdnBasicRateTable.isdnBasicRateEntry | BRI Adapters |
| isdnBasicRateIfType | isdns or isdnu (IANA-ifType 75, 76) | |
| isdnBasicRateLineTopology | pointToPoint or pointToMultipoint | |
| isdnBasicRateIfMode | TE mode or NT mode | |
| isdnBasicRateSignalMode | D-channel active or inactive | |
| ISDN-MIB | transmission.isdnMib.isdnMibObjects.isdnBearerGroup.isdnBearerTable.isdnBearerEntry | B-channels |
| isdnBearerChannelType | dialup or leased | |
| isdnBearerOperStatus | idle, active, unknown | |
| isdnBearerChannelIndex | Index of B-channel per adapter | |
| isdnBearerPeerAddress | Remote address | |
| isdnBearerPeerSubAddress | Remote sub address | |
| isdnBearerCallOrigin | Answer or originate | |
| isdnBearerInfoType | Info type as per Q.931 (unrestrictedDigital) | |
| isdnBearerCallConnectTime | Time measured from start of divasnmpx | |
| DIAL-CONTROL-MIB | transmission.dialControlMib.dialControlMibObjects.callActive.callActiveTable.callActiveEntry | |
| callActiveSetupTime | Timeticks at start of call, measured from start of divasnmpx. | |
| callActiveIndex | Unique index | |
| callActivePeerAddress | Address of remote partner | |
| callActivePeerSubAddress | Subaddress of remote partner | |
| callActivePeerId | Always 0 (unknown) | |
| callActivePeerIfIndex | Always 0 (unknown) | |
| callActiveLogicalIfIndex | Index of entry in ifTable for the interface used by this call | |
| callActiveConnectTime | 0 if the call was not connected, otherwise timeticks measured from start of divasnmpx. | |
| callActiveCallState | State of call | |
| callActiveCallOrigin | Direction of call: Answer or originate | |
| DIAL-CONTROL-MIB (RFC2128) | transmission.dialControlMib.dialControlMibObjects.callHistory | |
| callHistoryTableMaxLength | The maximum number of entries in the callHistoryTable (read/write). | |
| callHistoryRetainTimer | The minimum amount of time in minutes that a callHistoryEntry will be maintained before being deleted. | |
| DIAL-CONTROL-MIB | transmission.dialControlMib.dialControlMibObjects.callHistory.callHistoryTable.callHistoryEntry | |
| callHistoryPeerAddress | Address of remote partner | |
| callHistoryPeerSubAddress | Subaddress of remote partner. | |
| callHistoryPeerId | Always 0 | |
| callHistoryPeerIfIndex | Always 0 | |
| callHistoryLogicalIfIndex | Index of entry in ifTable for the interface used by this call. | |
| callHistoryDisconnectCause | Reason for disconnecting this call. | |
| callHistoryDisconnectText | emtpy | |
| callHistoryConnectTime | Timeticks measured from start of divasnmpx. | |
| callHistoryDisconnectTime | Timeticks measured from start of divasnmpx. | |
| callHistoryCallOrigin | Direction of call: Answer or originate. |
After installation, the MIB files for the ISDN-, DIAL-CONTROL-, and DS1-MIB can be found in the directory /usr/lib/eicon/divas/mibs. These definitions can be imported in any management application to decode the OIDs reported by divasnmpx. For net-snmp simply copy these files to the standard MIB path (usually /usr/local/share/snmp/mibs) and tell the snmp command line tools to use them by exporting/setting the environment variable "MIBS" with the names of the appropriate MIBs (or simply the keyword ALL). E.g. export MIBS=ALL.
The services provided by Diva Server adapters are accessible via system interfaces. All features may not be available on all the supported interfaces. The interfaces supported by Diva Server adapters are as follows:
Table 10-1. Supported interfaces
| Interface | Description |
|---|---|
| IDI (ISDN Direct Interface) | Supports all features and capabilities of Diva Server adapters. |
| COM Port (TTY interface) | For applications that require communications via a standard PC communications port. |
| CAPI 2.0 | Common ISDN Application Programming Interface. A standard interface for applications to interact with Diva Server adapters. |
The features of Diva Server ISDN adapters are listed in the tables below. For features of Diva Server Analog adapters see this table.
Table 10-2. B-channel related features
| Feature | IDI | TTY | CAPI 2.0 |
|---|---|---|---|
| Transparent HDLC, 64/56 kbps | Y | Y | Y |
| Transparent (Voice) (8 bit 8 kHz A-Law/u-Law) | Y | Y | Y |
| X.75 | Y | Y | Y |
| X.75/V.42bis | Y | Y | Y |
| T.70/T.90 (T-Online) | Y | Y | Y |
| V.110 (GSM) [a] | Y | Y | Y |
| V.120 64/56 kbps (CompuServe) | Y | Y | Y |
| V.120/V.42bis | Y | Y | Y |
| Digital (Central Office) V.90 modem[a] | Y | Y | Y |
| V.34+, V.90 analog modem[a] | Y | Y | Y |
| SMS modem ETSI V1,V2 and auto-detection[a] | Y | Y | Y |
| Diva FastSetup[a] | Y | Y | Y |
| SDLC | Y | Y | Y |
| V.42, V.42bis[a] | Y | Y | Y |
| Change of B-channel protocol | Y | N | Y |
| LAPD/B | Y | N | Y |
| X.25, X.31, ISO 8208 in the B-channel | Y | N | Y |
| PIAFS 1.0, 2.0, and 2.1 [b] | Y | Y | Y |
| Automatic call type and PPP frame type detection | N | Y | N |
| Async/sync conversion | N | Y | N |
| Fax Group 4 [c] | Y | N | Y |
| T.30 Fax Group 3 (analog) [a] | Y | Y | Y |
| FAX CLASS 1, 2 [a] | N | Y | N |
| Fax with Error Correction Mode (ECM) [a] | Y | Y | Y |
| Fax with MR (D2 coding) [a] | Y | Y | Y |
| Fax with MMR (T.6 coding) [a] | Y | Y | Y |
| Fax 33.6 kbps with MMR (T.6 coding) [a] | Y | Y | Y |
| Fax tone detection [a] | Y | Y | Y |
| Reversal of fax direction [a] | Y | N | Y |
| Fax polling / fax on demand [a] | Y | Y | Y |
| Fax speed and feature indication (polling and ECM) [a] | Y | Y | Y |
| Fax SEP/SUB/PWD[a] | Y | Y | Y |
| Fax NSF[a] | Y | N | Y |
| New fax header line [a] | Y | N | Y |
| Page formats: ISO A4, ISO B4, ISO A3 [a] [d] | Y | N | Y |
| Resolution: standard, fine, super-fine, ultra-fine [a] [d] | Y | N | Y |
| DTMF tone detection and transmission [a] | Y | N | Y |
| DTMF clamping [a] | Y | N | Y |
| Cross-board switching (via line interconnect) [d] | Y | N | Y |
| Media mode (unknown, interactive voice, automated voice) | Y | N | Y |
| Echo cancellation [a] [d] | N | N | Y |
| Real time protocol (RTP) [a] [d] | N | N | Y |
| Comfort noise generation (CNG) [a] [d] | N | N | Y |
| Voice activity detection (VAD) [a] [d] | N | N | Y |
| Dynamic anti-jitter buffer [a] [d] | N | N | Y |
| VoIP processing [a] [d] | N | N | Y |
| Notes: a. Features are not available with Diva Server PRI adapters without modules, Diva Server PRI-0M, T1/PRI, and PRI/E1/T1 adapters without additional DSPs. b. PIAFS support is not available with Diva Server 2FX adapters. c. Including T.90/ISO8208 and module mode detection. d. Features are not available with Diva Server BRI-2M (rev.1) adapters. | |||
For an overview of supplementary services supported by the different switch types, see the section Section 10.4.
Table 10-4. Supplementary services
| Feature | IDI | TTY | CAPI 2.0 |
|---|---|---|---|
| MSN (multiple subscriber number) | Y | Y | Y |
| DDI (direct dialing-in[a]) | Y | Y | Y |
| SUB (sub-addressing) | Y | Y | Y |
| CLIP (calling line identification presentation) | Y | Y | Y |
| CLIR (calling line identification restriction) | Y | N | Y |
| COLP (connected line identification presentation) | Y | N | Y |
| COLR (connected line identification restriction) | Y | N | Y |
| CCBS (call completion to busy subscriber) | Y | N | Y |
| CCNR (call completion on no reply) | Y | N | Y |
| KEY (keypad protocol) | Y | N | Y |
| TP (terminal portability) | Y | N | Y |
| Call forwarding unconditional | Y | N | Y |
| Call forwarding busy | Y | N | Y |
| Call forwarding no reply | Y | N | Y |
| Call deflection | Y | N | Y |
| CW (call waiting) | Y | N | Y |
| HOLD (hold and retrieve a call) | Y | N | Y |
| ECT (explicit call transfer) | Y | N | Y |
| AoC (advice of charge) | Y | N | Y |
| Three-party conference | Y | N | Y |
| Large conference [d] | Y | N | Y |
| User-to-user signaling | Y | N | Y |
The Diva Server for Linux software supports basic call services for all available switch types. In addition to this, it offers supplementary services for the following switch types:
Euro-ISDN (ETSI) BRI and PRI
5ESS Custom (AT&T)
5ESS NI (Lucent/Avaya)
DMS 100 (Nortel)
Q-Sig
The table below gives a detailed overview of the supplementary services supported by the switch types listed above. The availability of supplementary services also depends on your PBX. For detailed information on supplementary services supported by your PBX, contact the PBX manufacturer.
Table 10-5. Supplementary services of Diva Server ISDN adapters with switch type
| Supplementary services | Euro-ISDN (ETSI) PRI | Euro-ISDN (ETSI) BRI | QSig | 5ESS Custom, 5ESS NI, DMS 100 |
|---|---|---|---|---|
| MSN (multiple subscriber number) | Y | Y | Y | Y (incoming) |
| DDI (direct dialing-in [a]) | Y | Y | Y | N |
| SUB (sub-addressing) | Y | Y | Y | Y |
| CLIP (calling line identification presentation) | Y | Y | Y | Y |
| CLIR (calling line identification restriction) | Y | Y | Y | Y |
| COLP (connected line identification presentation) | Y | Y | Y | Y |
| COLR (connected line identification restriction) | Y | Y | Y | Y |
| KEY (keypad protocol) | Y | Y | Y[b] | Y |
| AoC (advice of charge) | Y | Y | Y | N |
| User-to-user signaling | Y | Y | Y | N |
| TP (terminal portability) | N | Y | N | Y |
| Call forwarding unconditional | N | Y | N | N |
| Call forwarding busy | N | Y | N | N |
| Call forwarding no reply | N | Y | N | N |
| Call deflection | N | Y | N | N |
| CW (call waiting) | N | Y | N | Y |
| HOLD (hold and retrieve a call) | Y[c] | Y | Y[d] | Y[e] |
| ECT (explicit call transfer) | N | Y | Y [f] | Y[e] |
| Path replacement | N | N | Y | N |
| Single-step call transfer (over CAPI deflection) | N | N | Y | N |
| Three-party conference | N | Y | N | Y[e] |
| Large conference | N | Y[e] | N | Y[e] |
| Drop conference | N | Y | N | Y[e] |
| Name identification services | N | N | Y [g] | Y [h] |
| Generic functional procedures (basis for supplementary services in Q-Sig environment) | N | N | Y | N |
| Common information | N | N | Y | N |
| Redirected number translation from Q-Sig to Q.931 | N | N | Y | N |
| Escape message types | N | N | N | Y[e] [i] |
| Call Appearance/Call Handling (CACH) plus configuration | N | N | N | Y[e] |
| Configurable feature activators | N | N | N | Y [e] [j] |
| Network display conversion/treatment | N | N | N | Y[e] |
| Message waiting | Y | Y | Y | Y[e] |
| Call completion to busy subscriber | N | Y | Y | N |
| Call completion on no reply | N | Y | Y | N |
| Notes: a. Please see legal notice at the front of this document b. In a Q-Sig environment, the feature is also called "Simple Dialog". c. HOLD is not a standard supplementary service for Euro-ISDN PRI, nevertheless some PBXs support call hold and retrieve. d. HOLD is not defined in Q-Sig but corresponding procedures are available. e. Features are not available with Diva Server BRI-2M (rev.1) adapters. f. Call transfer is only possible if path replacement works for one sub-PBX. g. presented by switch h. presented by network i. 5ESS custom only j. "5ESS NI" and DMS100 only | ||||
Diva Server Analog adapters offer the following feature set:
Pulse dialing
Tone (DTMF/MF) dialing
Busy tone detection
Ring back tone detection
Special Information Tone (SIT) detection
Fax/modem detection
Dial tone detection
Configurable Hold/Swap/Retrieve
Analog caller identification (via FSK and DTMF signaling)
Collection of DTMF post-dial digits
Configurable DTMF parsing
G.711 coding (a-law, µ-law selectable)
DTMF detection and generation
DTMF clamping and filtering
Generic tone detection and generation
Pulse tone detection
Full-duplex voice, "barge-in"
Voice activity detection
Silence detection
Human talker detection
Fax signal detection
G.168 echo cancellation, up to 128 ms tail length
Recording Automatic Gain Control (ACG)
Pitch control
Audio tap
G.711 voice codec (64 kb/s, µ-law, A-law)
G.726 voice codec (32 kb/s)
GSM voice codec (13 kb/s)
G.168 echo cancellation, up to 128 ms tail length
Adaptive jitter buffer
Voice activity detection (VAD)
Comfort noise generation (CNG)
Real Time Protocol (RTP framing)
Support for Fax class 1 and 2
Support for Fax Group 3, T.30
V.17, V.29, V.27ter, V.21, V.34 Modulation
Up to 33.600 bps with each channel (send and receive)
Fax compression MH, MR, MMR
Error Correction Mode (ECM)
Reversal of fax direction
Fax password
Fax sub addressing
New fax header line
Page formats: ISO A4, B4, A3
Standard, fine, super-fine and ultra-fine resolution
Color fax (JPEG-Format)
V.21, V.22, V.22bis, Bell 103, Bell 212A, V.32, V.32bis, V.34, V.42, V.42bis, V.90, MNP4, MNP5
Modem with extension: V.18, V.21, Bell 103, V.23, EDT, Baudot 45, Baudot 47, Baudot 50 incl. DTMF, V.42, V.42bis
The following drivers are available as source code under GPL license:
divadidd.o
divas.o
diva_mnt.o
diva_idi.o
kernelcapi.o
divacapi.o
capi.o
They can be compiled for a specific kernel using the source level package.
Build procedure
Install kernel sources.
Create the symbolic link /usr/src/linux that points to the kernel source code.
Apply all kernel patches (if necessary).
Install the Diva Server source level package (.rpm/.deb) available as download. Follow the instructions of the respective Installation Readme, which can be found on the download page.
Change to the directory /usr/lib/eicon/divas/src.
Invoke the command ./Build.
The automated build procedure will compile all necessary kernel modules and utilities. Please follow the instructions on screen.
After successful completion of the build procedure the drivers are installed and you can proceed configuration as with the binary drivers (see above).
The Diva Server TTY driver is provided only in binary form, and can only be recompiled for your own kernel using the source level package.
This section describes the usage of this driver with customized kernels if the before mentioned method is not applicable.
This description is provided in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or SUITABILITY FOR A PARTICULAR PURPOSE.
The Diva Server TTY interface relies only on the limited amount of exposed kernel services. If the appropriate services do not differ from the services the TTY driver was originally compiled for, then you can still use the driver with your customized kernel. Therefore, the TTY driver for single processor machines is always compiled without symbol version information. [23] and can be loaded in every kernel that exports all requested externals. If the driver cannot be loaded due to different kernel version/name, you can try the forced module load. [24].
The Linux kernel is "monolitic". The interface between the kernel and the loadable kernel modules, especially the layout of internal kernel structures can change depending on the current kernel configuration. It is clear that in case the kernel and the loadeable kernel module have different layout of shared structures you can still load the module, but it can lead to instabilities or Oops.
Another cause for Oops and instabilities is the different processor model. The loadeable kernel module which is optimized for PentiumPro CPU can cause problems if loaded in the kernel that was optimized for Pentium CPU.
In case your system will become instable after the Diva Server TTY driver was loaded you can follow the general rules described below. These rules allow you to create the customized kernel which will be compatible with the Diva Server TTY driver:
Select the Diva Server RPM package with the name (kernel version) that is closest to the name of the kernel you plan use and that is suited for the CPU that you plan to use (i.e. optimized for i386, i686, ATHLON). Verify that your kernel and the Diva Server module are compiled by same GCC compiler generation (GCC 2.XX or GCC 3.XX) [25].
View with the nm -u Divatty.o command the list of TTY driver kernel services (functions) used by Diva Server.
View the definition of structures that are directly used by functions the Diva Server TTY driver imports from the kernel. Additionally, view the layout of structures used by macros that contain some of these functions (some functions are used only from macros, especially "skb_xxx", "memcpy", "memset" and similiar functions and macros. [26].
Note that the kernel configuration options can change the layout of these structures.
Now you can compare the settings of these configuration options of your customized kernel and the kernel that the Diva Server TTY driver was compiled for. You can use include/linux/autoconf.h files for this purpose.
Use include/linux/autoconf.h to compare the configuration options that can affect the CPU model.
Change the configuration of your kernel now in order to meet the configuration of the kernel that the Diva Server TTY driver was compiled for and recompile your kernel.
The Diva Server utilities do not depend on the kernel version and can be used "as is".
Independent from this fact, all these utilities are available under GPL licence and can be recompiled to meet the user specific requirements. Before you can compile the utilities you have to install the kernel source code and apply the Eicon Diva common kernel path to it.
| [1] | The availability of supplementary services depends on your switch or PBX. |
| [2] | Some of the changes, for example, "Start driver on system boot" or "Debug mode for microcode load" do not affect the state of the currently running drivers and change only the driver behaviour at system or Diva Server adapter start. The Diva Server WEB Configuration Wizard ignores changes of these parameters and does not prompt you to restart the Diva Server drivers. |
| [3] | Restarting the adapter clears all active connections of this adapter. |
| [4] | Many other options, e.g. bearer protocol, packet size, rate adaptation, are available for the TTY test. Type /usr/lib/eicon/divas/tty_test for a full list or refer to the section "tty_test utility" in this document. |
| [5] | Many other options, e.g. packet size, CPN, SubAddress, and commands, e.g. receive file, send file, transfer directory list, are available. Type /usr/lib/eicon/divas/acopy2 for a full list. |
| [6] | Many other options, e.g. packet size, transmission speed, ECM, SEP/SUB/PWD, compression, fax ID, headline, and commands, e.g. polling, are available. Please call /usr/lib/eicon/divas/testfax for a full list. |
| [7] | It is possible to bind specific Diva Server TTY interfaces to specific Diva Server adapters. But it is not possible to bind specific Diva Server TTY interfaces to specific B-channel numbers due to the fact that B-channel resources are automatically assigned by the active signaling protocol. |
| [8] | Since all commands are built as ASCII strings and can be issued via the
|
| [9] | The return code is not valid for some kernels or distributions. Use ttydsctrl if you are facing problems. |
| [10] | The pre-uninstall script contained in the rpm package stops and unloads all drivers by means of /usr/lib/eicon/divas/divas_stop.rc. It also removes all symbolic links used to start the Diva drivers on system startup. If the divas_stop.rc configuration script detects that drivers are still in use (an application or driver still accesses one of the interfaces) and cannot be stopped, the uninstalling process is aborted before any changes are applied. |
| [11] | If you do not know which applications or drivers access interfaces of Diva Server drivers or you cannot stop these applications, proceed as follows:
|
| [12] | If you do not know the name of the installed RPM package, execute rpm -q -a | grep divas4linux to get the package name from the database maintained by RPM. |
| [13] | Based on the information from the management interface it is possible to clear calls that meet specific criteria (calling party number, fax ID, fax polling address, etc.). |
| [14] | The "-w" parameter can only be used with variables that have the "W" attribute. |
| [15] | The "-e" parameter can only be used with variables of the "MI_EXECUTE" type. |
| [16] | "-m", "-a", and "-g" parameters can be used in combination. |
| [17] | If you use the mantool from scripts (i.e. not interactively), add the "-b" option to turn the interactive mode off. |
| [18] | This directory contains either the currently used values or the last used values depending on whether the B-channel is active or not. |
| [19] | Whenever adapter health monitor is running, the XLOG interface is busy and cannot be used by other utilities. |
| [20] | To find out the state of logical adapter <x>, execute: /usr/lib/eicon/divas/divactrl load -c <x> -CardState. |
| [21] | Execute this command after the adapter is in a trapped state. |
| [22] | The stunnel is designed to work as SSL encryption wrapper between remote clients and local (inetd-startable) or remove servers. The concept is to have non-SSL aware daemons running on your system. You can easily set them up to communicate with clients over secure SSL channels. |
| [23] | Drivers for SMP (Multi-processor) systems are always compiled using the same symbol version information settings as set by the original kernel configuration |
| [24] | To do so, you can use the Diva Server configuration utility or the insmod -f Divatty.o command. |
| [25] | You can use the command objdump -s Divatty.o > info1.txt; objdump -s vmlinux > info2.txt and view the context of the ".comment" sections. |
| [26] | You can receive detailed information about all exported data structures, functions and the structures on which the exported functions depend on if you activate the symbol version information, change the kernel Makefile from "genksyms" to "genksyms -D" and execute make modules 2>info.txt && grep Export info.txt > exports.txt. |