User guide
130 RealCT Direct API Developer Guide
Chapter 4: E1 Networking
DIALR2 [line] [digits] Dials R2 digits while monitoring for a disconnect on the line
(0 by default).
BSTAT Queries carrier status.
BINFO Displays board and device information.
CONN Makes MVIP connections.
Usage:
Conn<output stream> <output timeslot>
<input stream> <input timeslot>
QUERY Queries MVIP connections.
Usage:
Query<output stream> <output timeslot>
DIGIT [line] In subdirectory \RHT\SAMP\STD. Reads digits sent by the
CO.
TWAIT [line] In subdirectory \RHT\SAMP\STD. Waits for digits. It must be
modified so that it monitors an E1 line for disconnect instead of
a LS line.
SETDM [line] In subdirectory \RHT\SAMP\STD. Selects the type of digits to
detect. Call this to enable R2 forward or R2 backward digits
before you call DIALR2.
Run these samples either individually or as a batch file. For
example, the following batch file initializes the E1 line, makes
the MVIP connection between line 0 and VP0, receives an
inbound call, plays a file, and then disconnects:
E1INIT
CONN 16 0 6 1
CONN 6 1 16 0
WAITRING 0
TWAIT 0
DIALR2 0
Repeat the above two steps until signaling is
complete
OFFHOOK 0
PLAYE 0 TEST.VOX
ONHOOK 0
In this example, TWAIT has to be modified to monitor an
E1 line rather than an LS line. Modify DIALR2 to handle
multiple digits instead of just one.