Teltone is a registered trademark of Teltone Corporation.
Windows is a registered trademark of Microsoft Corporation.
Other company and product names may be trademarks or
registered trademarks of their respective owners.
Teltone Corporation
Bothell, Washington 98021 USA
Customer Service: 425-951-3388
Technical Support: 425-951-3390
Fax: 425-487-2288
Email: info@teltone.com
Website: www.teltone.com
New Features ...................................................................................................................4
Getting Started ........................................................................................................................................5
What’s on the API disk .....................................................................................................5
Serial Port.........................................................................................................................5
API Overview ..........................................................................................................................................6
API Command Summary ...............................................................................................57
Script Function Summary...............................................................................................58
TLE Command Parameter Summary.............................................................................59
TLE Messages (TM_).....................................................................................................61
Line Messages ..............................................................................................................61
Multiple Message Format Call Setup Parameter Types ................................................62
Set Caller ID Mode Command Parameter Definitions (TC_SETCALLERID_MODE) ...63
2
40-400-00025, Rev. D
Overview
Overview
The Automated Test module allows the user to control the Telephone Line Emulator
(TLE) to perform specific tests that may be required in a development or production
environment. Users have access to all features in the TLE-BASE, TLE-ADV and the
TLE-INTL software. For example, the user may wish to test the ring detect threshold
for a particular CPE device. Commands could be sent to the TLE to perform the
following operations:
•Set ring frequency and amplitude for line 1.
•Start ringing on line1.
•Verify that ringing has been detected. (External to the TLE.)
•Stop ringing on line 1 if device goes off-hook or times out.
•Change ring frequency and/or amplitude for line 1.
•Repeat ring test.
Alternately, the user may wish to configure the TLE to perform a particular test
without a PC being connected. In this scenario, after the user has developed and
downloaded a script, the PC may be disconnected and the unit will perform whatever
action specified by that script. For example a production test user could verify that a
CPE device meets minimum ring detect requirements by programming a script to
perform the following :
•Set ring frequency and amplitude for minimum detect threshold at line .
•When off-hook is seen on line 2, start ringing on line 1.
•When off-hook is seen on line 1, stop ringing.
•When on-hook is seen on line 2, restart script.
The Automated Test features of the TLE allow the user to control the operation of the
TLE through the serial interface. To facilitate writing programs to control the TLE, an
Application Programming Interface (API) is provided which consists of definitions of
all commands and parameters which the TLE recognizes (in both Visual Basic and C
formats).
When the TLE is configured with the Automated Test software, it will not operate as a
stand alone TLE. All operation will be under control of the PC or user downloaded
scripts. The TLE will still accept programming commands from the standard TLE PC
software to allow for the user to pre-configure the stored TLE settings. The user
generated script(s) will have commands that select which stored configurations are
used by the TLE during the operation of the script. It is recommended that during
initialization of any script to select a configuration using TC_SELECTCONFIG to
load a configuration for each line.
NoteNote
Note: ANY changes made by the API are
NoteNote
configuration loaded at power up or during TC_SELECTCONFIG. Changes made
during the running of an external or internal script are overwritten whenever
TC_SELECTCONFIG is used or when the TLE is reset.
temporarily stored in a copy of the default
40-400-00025, Rev. D3
Overview
NeNe
w Fw F
w F
w Fw F
eatureseatures
eatures
eatureseatures
Ne
NeNe
These new features were added to the TLE with the release of the TLE-TEST software.
CompleComple
Comple
CompleComple
Added to the TLE
Germany, and the United Kingdom. These parameters are loaded into the programmable SLIC used in the TLE. The details include:
Australia220Ω + (820Ω || 120nF)
Germany (See Note)220Ω + (820Ω || 310nF)
United Kingdom370Ω + (620Ω || 310nF)
Under the TLE
Upon selecting this option, a window appears with the following options.
DTMF GenerationDTMF Generation
DTMF Generation
DTMF GenerationDTMF Generation
The DTMF Generation feature allows for the setting of the frequency, signal level,
and On/Off timing for the Row and Column tones generated by a DTMF keypad.
These tone pairs include 1-9,0,#,*,A,B,C, and D. The TLE-Test module allows for the
user to send a DTMF string to a Line by using command TC_SENDDTMF,dtmfstring,
linenum
SwSw
Sw
SwSw
The Sweep Tone feature is an additional Test Tone similar to the ones seen in
NumbersNumbers
Numbers screen and allows for the setting of the Start Frequency, Range, Level, and
NumbersNumbers
Time. The TLE-TEST software allows for the user to send a Sweep Tone to a Line
using command TC_SENDTONE,tonename,linenum[,fromline]
x Impedancesx Impedances
x Impedances
x Impedancesx Impedances
eep eep
TT
oneone
eep
T
one
eep eep
TT
oneone
Loop PLoop P
Loop P
Loop PLoop P
ScreensScreens
Screens menu, there is a new sub menu called
ScreensScreens
arar
ameters ameters
ar
ameters are the complex impedances for Australia,
arar
ameters ameters
AA
utomated utomated
A
utomated
AA
utomated utomated
TT
estest
T
est.
TT
estest
PhonePhone
Phone
PhonePhone
Note:Note:
Note: This complex impedance is also used in Switzerland
Note:Note:
International Caller ID CommandsInternational Caller ID Commands
International Caller ID Commands
International Caller ID CommandsInternational Caller ID Commands
The purchase of the International (TLE-INTL) software and International Caller ID
(TLE-ICID) software will enable the TLE to execute International Caller ID commands
with the TLE in test mode.
440-400-00025, Rev. D
Getting Started
Getting Started
What’What’
What’
What’What’
The API consists of source code to assist in creation of programs to talk to the TLE.
This code includes definitions of all of the TLE commands, parameters and messages, plus the source code to the functions outlined in this manual.
The API disk contains the following (uppercase are directories, lowercase are files):
TLEAPI
s on the API disks on the API disk
s on the API disk
s on the API disks on the API disk
C_API
auto.hDefinitions of all TLE commands, parameters, and
auto.cppSource code for supported functions (see FUNC -
VB_API
auto.basDefinitions of all TLE commands, parameters, and
SAMPLE
readme.txtText file with details about the sample code and
DATA
tfloopc.000Data file used by TfLoopCurrent function.
tfloopi.00Data file used by TfLoopImpedance function.
tfloopi.01Data file used by TfLoopImpedance function.
tfloopi.02Data file used by TfLoopImpedance function.
tfloopi.03Data file used by TfLoopImpedance function.
tfloopi.04Data file used by TfLoopImpedance function.
tfmeter.000Data file used by TfMeterConfig function.
tfring.000Data file used by TfRingConfig function.
messages
TION DETAILS section of this manual) in C format.
messages, plus source code for supported functions
in Visual Basic format.
operation of the sample program. Read this file for
information about the full contents of this directory.
The C files were created using Microsoft Visual C++. The VB files and sample
program were created with Microsoft Visual Basic 3.0.
The data files are binary files used by the designated functions, and must be distributed with any programs written to talk to the TLE. The function routines provided
expect to find these files in the execution directory of the application.
SerSer
ial Pial P
Ser
ial P
SerSer
ial Pial P
The serial port on the TLE is configured as follows:
The TLE does not echo characters back to the user.
oror
tt
or
t
oror
tt
Baud Rate9600
Data bits8
ParityNone
Stop Bits1
Flow ControlHardware (RTS/CTS)
40-400-00025, Rev. D5
API Overview
API Overview
The TLE PC software program edits the stored configurations (non-volatile) in the
TLE and the API edits and uses a copy of the stored configuration(s) that is lost
when power is turned off. External and internal scripts should initially use
TC_SELECTCONFIG to load a copy of the appropriate stored configuration for each
line of the TLE. User scripts ARE saved in the TLE non-volatile memory.
Each line may use a separate configuration from the stored configurations for its
default values. Some parameters, however, are global and may not be changed on a
per-line basis. These global parameters will always use the configuration selected for
line 1. The global parameters are those associated with TC_SET commands which
do not include a “linenum” parameter.
DefinitionsDefinitions
Definitions
DefinitionsDefinitions
The API will contain definitions for all automated test commands and parameters.
Definitions fall into four categories:
TT
TC_
TP_
TM_
TS_
CC
TLE
CommandsCommands sent to the TLE.
TT
CC
TT
PP
TLE
ParametersParameters to be sent with commands.
TT
PP
TT
MM
TLE
MessagesMessages sent from the TLE.
TT
MM
TT
SS
TLE
Script operationsOperations to be entered into a script within
TT
SS
the TLE.
Command String Format.Command String Format.
Command String Format.
Command String Format.Command String Format.
All commands sent to the TLE consist of numeric values, preceeded by a colon “:”
followed by the appropriate unit number. Programs should wait for a response to a
command before sending the next command to the TLE.
Each programming and operational command string sent to the TLE will follow a
structure as follows:
1-255Only those TLE’s with matching ID’s will respond
Commandnumber: Command number provided by API for each TLE command.
Parameter_1…parameter_n: Command parameters. See individual commands for
details.
The TLE will work correctly with Carriage Return or Line Feed or both as a terminator. When the TLE receives a command, it will return either a Command Acknowledge, Invalid or Error message. The TLE will not respond to any command string that
does not begin with a colon “:”, followed by the appropriate unit number. Programs
should wait for a response to a command before sending the next command to the
TLE.
NoteNote
Note: While most commands return the confirmation, error or invalid response
NoteNote
immediately, a few commands will delay the confirmation until completed. These are
noted in the command details section.
640-400-00025, Rev. D
API Overview
Example:
In Visual Basic, the user would create a command string as follows, using the defined
constants.
This would compile to a command string that would be sent to the TLE as shown
below.
command_string =
:0,13,16,1<ret>
MessagesMessages
Messages
MessagesMessages
The TLE sends system and line messages to the PC to inform the user of specific
events which have occurred. These events include such things as on-hook, off-hook,
flash detected, dialed digits, etc. The TLE also responds to commands with an
appropriate command response message.
All messages sent by the TLE consist of numeric values preceeded by an exclamation “!” and terminated with a <cr> and <lf>. To assist in program development, the
API contains constants defined for all messages, and a function (TfMessage) for
converting System and Line messages to readable text.
The TLE will send messages to the user through the serial port. Messages are sent
as numbers, which the user can convert to text strings using the TfMessage function.
System MessagesSystem Messages
System Messages
System MessagesSystem Messages
System messages provide information about the operation of the TLE, and follow the
following format:
!unitnumber,messagetype,Y,P<cr><lf>.
Unitnumber: Unique ID given to TLE by the user.
0,1-255 If no unit number is assigned, TLE returns 0.
messagetype: 0 for system messages
Y: message number (up to 3 digits)
P: variable length parameter string (see individual messages for details)
Line messagesLine messages
Line messages
Line messagesLine messages
Line messages provide information about events that pertain to individual lines, and
follow this format:
!unitnumber,messagetype,Y,P<cr><lf>.
Unitnumber: Unique ID given to TLE by the user.
0,1-25: If no unit number is assigned, TLE returns 0.
messagetype: the line number 1 - 4
Y: message number (up to 3 digits)
P: variable length parameter string (see individual messages for details)
40-400-00025, Rev. D7
API Overview
Command responsesCommand responses
Command responses
Command responsesCommand responses
The command response messages give the user feedback about the last command
that was executed by the TLE. These messages use the following format:
!unitnumber,messagetype,X,Y<cr><lf>
Unitnumber: Unique ID given to TLE by the user.
0,1-255 If no unit number is assigned, TLE returns 0.
messagetype:
7 Invalid state. The line the command was directed at was in a
state that was invalid for the function (ie: trying to send
ringing to an off-hook line, no dial receiver available,etc.) or
the command can not be run at this time (script commands
while scripts not running, etc).
8 Command accepted
9 Error
X: 0 if under PC control:
Script number (1-4) if running from a script
Y: Command number (up to 3 digits)
Note:Note:
Note: The Tfmessage function does not interpret command response messages.
Note:Note:
User ScrUser Scr
User Scr
User ScrUser Scr
The TLE supports downloadable scripts for custom standalone operation. Three
scripting modes are available; a single script mode, which allows only one script that
can access all four lines, a dual script mode which allows two scripts that each
accesses two lines, and a quad script mode where there is a separate script for each
line. These scripts are saved in the TLE non-volatile memory. If TS_SCRIPTRUN has
been enabled, the scripts will automatically start when power is applied to the TLE.
When a running script reaches its end, it will automatically restart.
Before entering any scripts into the TLE, a TS_SCRIPTMODE command must be
sent to select single, dual, or quad script mode. To enter the actual scripts, a
TS_STARTDEF is sent first, followed by the desired script functions, and ending with
a TS_ENDDEF. All commands between the TS_STARTDEF and TS_ENDDEF must
be script functions. To include any of the other TLE commands as part of a script, it is
included as a parameter to the TS_EXECUTE script function.
Once all of the scripts are entered into the TLE, the TS_SCRIPTRUN is used to start
and stop the scripts. While scripts are running, the TS_SCRIPTRUN is the ONLY
command which is recognized by the TLE (to allow the user to stop the script). If the
user has started the scripts and then removed power from the TLE, the scripts will
automatically restart when power is re-applied.
See Script Examples section for more information.
iptsipts
ipts
iptsipts
ImporImpor
tant:tant:
Impor
tant:
ImporImpor
tant:tant:
scripts. A "System Offhook" message is given if not in the correct mode.
840-400-00025, Rev. D
The TLE must be in Automated Test mode before entering commands or
API Overview
Dial receiversDial receivers
Dial receivers
Dial receiversDial receivers
The TLE can only detect DTMF digits on two lines at any time. The DTMF receivers
will be assigned on a first-come first-served basis. The DTMF receiver will remain
assigned until released by the user except under the following conditions:
If Caller ID with Call Waiting is sent, a DTMF receiver is automatically assigned to the
line, and is then released when completed.
If an ADSI script is sent, a DTMF receiver is automatically assigned to the line, and is
then released when completed. If no receiver is available, the TLE will respond with
an INVALID command response.
See the TC_DIALDETECT command for the format of the assign command.
Reset ButtonReset Button
Reset Button
Reset ButtonReset Button
The front panel reset button will set all configurations to factory defaults, and will
clear the unit ID and all scripts.
40-400-00025, Rev. D9
API Commands
API Commands
TC_CONNECTTC_CONNECT
TC_CONNECT
TC_CONNECTTC_CONNECT
FormatFormat
FormatTC_CONNECT,linenum,tolinenum
FormatFormat
DescriptionDescription
DescriptionConnects the audio path between line linenum and line tolinenum. If line linenum is already
DescriptionDescription
connected to another line, linenum will be added to that connection.
PP
arar
ameterameter
P
ar
ameterLinenum: line to connect
PP
arar
ameterameter
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
Tolinenum: line to connect to
TP_OFF
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
ExampleExample
ExampleThis example connects line 1 to line 2:
ExampleExample
TC_CONNECT,TP_LINE1,TP_LINE2
This adds line 3 to the connection:
TC_CONNECT,TP_LINE3,TP_LINE2
This disconnects line 2, leaving the connection between lines 1 and 3:
TC_CONNECT,TP_LINE2,TP_OFF
NoteNote
NoteEstablishing a connection from an off-hook line to multiple on-hook lines may result in exces-
NoteNote
sive feedback (noise) being heard at the off-hook line. The PC control program should
monitor the line hook states and disconnect lines which have gone on-hook. Alternately, if
the line-to-line attenuation is increased, this condition will not occur.
TC_CONNECTTC_CONNECT
TC_CONNECT
TC_CONNECTTC_CONNECT
FormatFormat
FormatTC_CONNECTAUDIOPORT,linenum
FormatFormat
DescriptionDescription
DescriptionConnects a line to the audio output port.
DescriptionDescription
PP
arar
ameterameter
P
ar
ameterLinenum: line number
PP
arar
ameterameter
AA
UDIOPORUDIOPOR
A
UDIOPOR
AA
UDIOPORUDIOPOR
TP_OFF
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
TT
T
TT
ExampleExample
ExampleThis example connects line 1 to the audio port:
ExampleExample
TC_SETAUDIOPORT,TP_LINE1
This disconnects line 1 and connects line 2 to the audio port:
TC_SETAUDIOPORT,TP_LINE2
This disconnects line from audio port:
TC_SETAUDIOPORT,TP_OFF
1040-400-00025, Rev. D
TC_DCSIGNALTC_DCSIGNAL
TC_DCSIGNAL
TC_DCSIGNALTC_DCSIGNAL
FF
oror
matmat
F
or
matTC_SIGNAL,signaltype,linenum
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionSets the DC loop state. The forced disconnect is momentary depending upon the pro-
DescrDescr
iptioniption
grammed timings for forced disconnect. All others are permanent states. The forced disconnect command will only be accepted if the line is in the off-hook state.
PP
arar
ameterameter
P
ar
ameterSignaltype: DC loop state
PP
arar
ameterameter
TP_FORCEDDISCONNECT
TP_OPEN
TP_REVERSE
TP_NORMAL
Linenum: line number
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
ExampleExample
ExampleThis example sets reversed polarity on line 2:
ExampleExample
TC_DCSIGNAL,TP_REVERSE,TP_LINE2
NoteNote
NoteThe confirmation for this command is sent immediately for all signal types except
NoteNote
TP_FORCEDDISCONNECT. For TP_FORCEDDISCONNECT the confirmation is sent at the
completion of the forced disconnect pulse.
API Commands
See AlsoSee Also
See Also TC_SETFORCEDDISCONNECT
See AlsoSee Also
TC_DIALDETECTTC_DIALDETECT
TC_DIALDETECT
TC_DIALDETECTTC_DIALDETECT
FormatFormat
FormatTC_DIALDETECT,linenum,enable
FormatFormat
DescriptionDescription
DescriptionAssigns DTMF and rotary dial receivers to specified line. Note: only two dial receivers are
DescriptionDescription
available within the TLE. If a dial receiver is not available, this command will return an INVALID response.
PP
arar
ameterameter
P
ar
ameterLinenum: line number
PP
arar
ameterameter
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
Enable:
TP_DISABLE
TP_ENABLE
ExampleExample
ExampleThis example enables a DTMF detector on line 1:
ExampleExample
TC_DIALDETECT,TP_LINE1,TP_ENABLE
NoteNote
NoteBoth DTMF and Rotary dialed digits cannot be detected during the same call. As soon as
NoteNote
one type is detected, the other is blocked from detection. The receiver remains in this mode
until a new call is originated.
40-400-00025, Rev. D11
API Commands
TC_DISPLATC_DISPLA
TC_DISPLA
TC_DISPLATC_DISPLA
FF
oror
matmat
F
or
matTC_DISPLAY,type,message
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionDisplays a message on the TLE front-panel display. If type is TP_SYSTEM, the message is
DescrDescr
iptioniption
PP
arar
ameterameter
P
ar
ameterType: type of message
PP
arar
ameterameter
NoteNote
NoteThe TLE Display message type is broken into 2 types, TLE status messages (Onhook,
NoteNote
YY
Y
YY
displayed starting at the upper left and uses the entire display. If type is TP_LINE1-TPLINE4,
the message is displayed in the appropriate quadrant of the display for the selected line.
System messages are displayed for 1 second, then the display reverts to the individual line
messages. Line messages are displayed until replaced by new line messages.
TP_SYSTEM
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
Message: message to display
If type is TP_SYSTEM, 0-40 characters, else 0-10 characters
Offhook, Ringing, etc..), and User generated messages, of which there are two types. User
generated Line Messages broken into four 10 character sets (which remain in the display
until updated), and a User generated System Message, a 40 character set that is displayed
for 1 second. The TLE remembers what message type (status vs. user) was in the Display
when a TP_SYSTEM message is displayed for 1 second, and returns that message after the
TP_SYSTEM message is complete. However, if a user generated message (e.g. TP_LINE1)
was in the TLE Display when a TP_SYSTEM message is sent, then the TLE remembers and
displays the user specified portion of the TP_SYSTEM message in the 10 character quadrant
until updated. Confused? Let’s look at the examples for clarification.
ExampleExample
ExampleCurrent message in display window for all four 10 character sets is “Onhook”.
ExampleExample
This command displays any text entered for one second:
TC_DISPLAY,TP_SYSTEM,Teltone Corporation Bothell, Washington
Teltone Corporation Bothell, Washington
and then the display returns to:
Onhook Onhook
Onhook Onhook
This command places “Hello” in the lower right quadrant left justified in the 10 character
set:
TC_DISPLAY,TP_LINE3,Hello
Now if we repeat the TP_SYSTEM message as shown above, the TLE Display will show:
Teltone Corporation Bothell, Washington
Then after 1 second:
Onhook Onhook
Onhook Ohook
After a device connected to Line 3 goes off-hook, the display is updated and displays:
Onhook Onhook
Onhook Offhook
1240-400-00025, Rev. D
API Commands
TC_PLATC_PLA
TC_PLA
TC_PLATC_PLA
FF
oror
matmat
F
or
matTC_PLAYMESSAGE,message,linenum
FF
oror
matmat
DescrDescr
Descr
DescrDescr
PP
arar
ameterameter
P
ar
ameterMessage: message number
PP
arar
ameterameter
ExamplesExamples
ExamplesThis example begins playback of message 1 on line 3:
ExamplesExamples
YMESSAYMESSA
YMESSA
YMESSAYMESSA
iptioniption
iptionPlays a pre-programmed voice message. The message will stop automatically when com-
iptioniption
pleted. TP_OFF allows the user to stop playback before the end of the message. This
command will return an INVALID response if the line is not in the off-hook state.
DescriptionRequests a signal level measurement from the specified line. The returned value must be
DescriptionDescription
processed through the TfSigLevel function.
PP
arar
ameterameter
P
ar
ameterLinenum: line number
PP
arar
ameterameter
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
ReturnsReturns
ReturnsTM_SIGLEVEL message, including a value from 0-4294967295 that must then be processed
ReturnsReturns
through the TfSigLevel function to yield either a voltage or dB value.
ExampleExample
ExampleThis example requests a signal level measurement from line 4:
ExampleExample
TC_REQLEVEL,TP_LINE4
See AlsoSee Also
See AlsoTM_SIGLEVEL, TfSigLevel
See AlsoSee Also
40-400-00025, Rev. D13
API Commands
TC_REQLINESTTC_REQLINEST
TC_REQLINEST
TC_REQLINESTTC_REQLINEST
FF
oror
matmat
F
or
matTC_REQLINESTATE,linenum
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionRequests the current on/off-hook state of the line.
DescrDescr
iptioniption
PP
arar
ameterameter
P
ar
ameterLinenum: line number
PP
arar
ameterameter
ReturnsReturns
ReturnsTM_OFFHOOK
ReturnsReturns
ExampleExample
ExampleThis example requests the current state of line 1:
ExampleExample
See AlsoSee Also
See AlsoTC_SETHOOKTIMING, TC_SETLOOPCURRENT, TC_DCSIGNAL, TM_OFFHOOK,
See AlsoSee Also
TM_ONHK
TC_REQVERSIONTC_REQVERSION
TC_REQVERSION
TC_REQVERSIONTC_REQVERSION
FormatFormat
FormatTC_REQVERSION
FormatFormat
AA
TETE
A
TE
AA
TETE
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
TM_ONHK
TC_REQLINESTATE,TP_LINE1
DescriptionDescription
DescriptionRequests the firmware version number string from the TLE.
DescriptionDescription
ReturnsReturns
ReturnsTM_VERSION
ReturnsReturns
ExampleExample
ExampleThis example requests the version numbers of the boot code, microcontroller code and DSP
ExampleExample
code:
TC_REQVERSION
See AlsoSee Also
See AlsoTM_VERSION
See AlsoSee Also
1440-400-00025, Rev. D
TC_RINGTC_RING
TC_RING
TC_RINGTC_RING
FF
oror
matmat
F
or
matTC_RING,ringtype,linenum,fromline
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionSends ringing to the line with pre-programmed voltage, frequency, and cadence. This com-
DescrDescr
iptioniption
mand will only be accepted if the line is in the on-hook state. Also sends Caller ID after the
first ring by default, or after every ring if enabled by TC_SETCALLERID_EVERYRING.
ExampleThis example sends ringing at group 2 cadence to line 3 from line 4:
ExampleExample
TC_RING,TP_RING_GROUP2,TP_LINE3,TP_LINE4
This stops ringing on line 3:
TC_RING,TP_OFF,TP_LINE3,TP_LINE4
See AlsoSee Also
See AlsoTC_SETTIME_RING, TC_SETRING, TC_SETTONE, TC_SENDTONE,
See AlsoSee Also
TC_SETCALLERID_EVERYRING
TC_SELECTCONFIGTC_SELECTCONFIG
TC_SELECTCONFIG
TC_SELECTCONFIGTC_SELECTCONFIG
FormatFormat
FormatTC_SELECTCONFIG,config,linenum
FormatFormat
DescriptionDescription
DescriptionSelects pre-programmed configuration to use for default values.
DescriptionDescription
PP
arar
ameterameter
P
ar
ameterConfig: configuration
PP
arar
ameterameter
1-16
Linenum: line to set configuration for
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
ExampleExample
ExampleSets the configuration for line 1 to configuration 1:
ExampleExample
TC_SELECTCONFIG,1,TP_LINE1
NoteNote
NoteThe TLE-ICID parameters set for line 1 for the configuration selected will be the same for all
NoteNote
the lines. For example, selecting a different configuration for line 2 will change all parameters
except for the TLE-ICID parameters; they will be identical to line 1.
40-400-00025, Rev. D15
API Commands
TC_SENDTC_SEND
TC_SEND
TC_SENDTC_SEND
FormatFormat
FormatTC_SENDADSI,linenum
FormatFormat
DescriptionDescription
DescriptionSends an ADSI script to the selected line. This command will only be accepted if the line is in
DescriptionDescription
PP
arar
ameterameter
P
ar
ameterLinenum: line number
PP
arar
ameterameter
ExampleExample
ExampleThis example sends an ADSI script to line 2:
ExampleExample
NoteNote
NoteThe phone must be off-hook for an ADSI script to be sent. The confirmation for this com-
NoteNote
TC_SENDCALLERIDTC_SENDCALLERID
TC_SENDCALLERID
TC_SENDCALLERIDTC_SENDCALLERID
FormatFormat
FormatTC_SENDCALLERID,linenum,fromline
FormatFormat
DescriptionDescription
DescriptionSends a pre-programmed Caller ID sequence.
DescriptionDescription
ADSIADSI
ADSI
ADSIADSI
the off-hook state.
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
TC_SENDADSI,TP_LINE2
mand is sent after the ADSI script has been sent to the line.
PP
arar
ameterameter
P
ar
ameterLinenum: line number
PP
arar
ameterameter
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
Fromline: line whose Caller ID is being sent
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
ExampleExample
ExampleThis example sends line 4’s Caller ID to line 3:
ExampleExample
TC_SENDCALLERID,TP_LINE3,TP_LINE4
NoteNote
NoteThe confirmation for this command is sent after the Caller ID has been sent to the line.
NoteNote
See AlsoSee Also
See AlsoTC_RING, TC_SETCALLERID_EVERYRING, TC_SETCALLERID_MODE,
ameterCallwaittype: Selects which Call Waiting cadence to send.
PP
arar
ameterameter
Linenum: line number
Fromline: line whose Caller ID is being sent
ExampleExample
ExampleThis example sends Distinctive Call Waiting to line 4:
ExampleExample
NoteNote
NoteThe confirmation for this command is sent after the Call Waiting sequence has been sent to
NoteNote
the line.
WW
AITINGAITING
W
AITING
WW
AITINGAITING
TP_CWNORMAL
TP_CWDISTINCTIVE
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
TC_SENDCALLWAITING,TP_CWDISTINCTIVE,TP_LINE4
See AlsoSee Also
See AlsoTC_SETTONE, TC_SETTIME_CALLWAIT
See AlsoSee Also
TC_SENDDTMFTC_SENDDTMF
TC_SENDDTMF
TC_SENDDTMFTC_SENDDTMF
FormatFormat
FormatTC_SENDDTMF,dtmfstring,linenum
FormatFormat
DescriptionDescription
DescriptionSends a string of DTMF digits. This command will only be accepted if the line is in the
DescriptionDescription
off-hook state.
PP
arar
ametersameters
P
ar
ametersDTMFstring: digit string to send
PP
arar
ametersameters
1-16 digits (0-9,*,#,ABCD)
Linenum: line number
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
ExampleExample
ExampleThis example sends 5551212 to line 4:
ExampleExample
TC_SENDDTMF,5551212,TP_LINE4
NoteNote
NoteThe confirmation for this command is sent after the DTMF has been sent to the line.
NoteNote
See AlsoSee Also
See AlsoTC_SETDTMFCADENCE,TC_SETDTMFTONES.
See AlsoSee Also
40-400-00025, Rev. D17
API Commands
TC_SENDTTC_SENDT
TC_SENDT
TC_SENDTTC_SENDT
FF
oror
matmat
F
or
matTC_SENDTONE,tonename,linenum[,fromline]
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionSends specified tones to the line. Tones are sent with programmed cadences. Dial tone will
DescrDescr
iptioniption
PP
arar
ametersameters
P
ar
ametersTonename: tone to send
PP
arar
ametersameters
ONEONE
ONE
ONEONE
turn off automatically upon detection of valid DTMF or rotary dialing (if a receiver was assigned). A SIT sequence is sent once, all others will continue until superceded by a new
TC_SENDTONE command or until the hook state transitions from off-hook to on-hook. All
tones are sent whether the line is currently off-hook or on-hook, except those with the
_ATOFFHOOK suffix, which are sent after the defined dial tone delay when off-hook is
detected.