User guide
76 RealCT Direct API Developer Guide
Chapter 3: T1 Networking
Testing the T1 Setup
Testing the Installation
Use the samples that came with your software to test your
boards, drivers, and installation before you write your
application. You can use the provided source code to help
develop your application. The samples are located in
subdirectory \RHT\SAMP\T1.
The most useful samples are:
T1INIT Sets the clock, initializes carrier parameters and checks carrier
status.
Older code samples set the clock reference to be Trunk A, and
configured the carrier for D4 framing and AMI line coding. If
your installation requires different values, make sure to alter
the samples accordingly. Newer samples configure most
parameters using the command line. The defaults are the same
as earlier samples.
WAITRING [line] Waits for a call on the specified line (0 by default).
OFFHOOK [line] Answers an inbound call or initiates an outbound call on the
specified line (0 by default).
ONHOOK [line] Disconnects a call on the specified line (0 by default).
WAITANS [line] Waits for the remote end to answer on the specified line (0 by
default).
WAITOFF [line] Monitors for a disconnect on the specified line (0 by default).
LSB [line] Displays all relevant information about a line
(structure RTNI_lineStatus_s).
PLAYT [line] [file] Plays a file while monitoring for a disconnect on the line
(default: line 0, file test.vox).
DIAL [line] [digits] Dials digits while monitoring for a disconnect on the line. Both
command arguments are necessary.
BSTAT Queries carrier status.
BINFO Displays board and driver information.