Script Details
44
40-400-00025, Rev. D
TS_REST
TS_REST
TS_REST
TS_REST
TS_RESTAR
AR
AR
AR
ARTCONDITION
TCONDITION
TCONDITION
TCONDITION
TCONDITION
F
F
F
F
For
or
or
or
ormat
mat
mat
mat
mat
TS_RESTARTCONDITION,restartcondition,linenum
Descr
Descr
Descr
Descr
Description
iption
iption
iption
iption
Restarts the script if the defined condition is met at any point after this command.
Restartcondition:
TP_OFF
TP_OFFHOOK
TP_ONHOOK
TP_DIALDETECTED
Example
Example
Example
Example
Example
See TS_STARTDEF.
Note
Note
Note
Note
Note
Only one restart condition may be active in each script. Sending a new
TX_RESARTCONDITION command will replace any prior condition.
TS_SCRIPTMODE
TS_SCRIPTMODE
TS_SCRIPTMODE
TS_SCRIPTMODE
TS_SCRIPTMODE
Format
Format
Format
Format
Format
TS_SCRIPTMODE,scriptmode
Description
Description
Description
Description
Description
Defines how many scripts the user can run.
Scriptmode:
TP_SCRIPT_SINGLE
One script that can access all four lines.
TP_SCRIPT_DUAL
Two scripts. Script 1 accesses lines 1 and 2,
Script 2 accesses lines 3 and 4.
TP_SCRIPT_QUAD
Four scripts. Script 1 accesses line 1, script 2
accesses line 2, etc.
Example
Example
Example
Example
Example
See TS_STARTDEF.
Note
Note
Note
Note
Note
This command must be sent to the TLE before defining any scripts, and will return an error if
sent between a TS_STARTDEF and TS_ENDDEF. Setting scriptmode will clear all existing
scripts from the TLE.
See Also
See Also
See Also
See Also
See Also
TS_SCRIPTRUN, TS_STARTDEF, TS_ENDDEF
TS_SCRIPTR
TS_SCRIPTR
TS_SCRIPTR
TS_SCRIPTR
TS_SCRIPTRUN
UN
UN
UN
UN
F
F
F
F
For
or
or
or
ormat
mat
mat
mat
mat
TS_SCRIPTRUN,enable
Descr
Descr
Descr
Descr
Description
iption
iption
iption
iption
Starts and stops scripts from running. If a script is running, TP_ENABLE will restart the
script.
Enable:
TP_ENABLE
TP_DISABLE
Example
Example
Example
Example
Example
See TS_STARTDEF.
Note
Note
Note
Note
Note
When scripts are running, external TC_ commands are ignored. The TLE will continue to
send messages while scripts are running, including the command accepted (!8) and error (!9)
messages for each of the commands within the scripts. This command will return an error if
sent between a TS_STARTDEF and TS_ENDDEF.
See Also
See Also
See Also
See Also
See Also
TS_SCRIPTMODE, TS_STARTDEF, TS_ENDDEF