![Teltone TLE-A-01 Скачать руководство пользователя страница 53](http://html.mh-extra.com/html/teltone/tle-a-01/tle-a-01_user-manual_1084654053.webp)
Script Examples
40-400-00025, Rev. D
51
:0,TS_WAITOFFHOOK,TP_LINE4
;wait for on-hook on line 3
:0,TS_WAITONHOOK,TP_LINE3
;wait for on-hook on line 4
:0,TS_WAITONHOOK,TP_LINE4
;end of script
:0,TS_ENDDEF
This script does not have a SCRIPTRUN command; it will not automatically start after being downloaded. It
will wait for a SCRIPTRUN command sent manually.
Note 1
Note 1
Note 1
Note 1
Note 1 The TLE has only 2 DTMF detectors. Once these have been enabled for any 2 lines, no additional
assignments (enables) may be made until at least one of these has been disabled.
Note 2
Note 2
Note 2
Note 2
Note 2 If a restart condition is true the script will restart from the beginning.
Note 3
Note 3
Note 3
Note 3
Note 3 The system will wait here until the correct number is dialed. If the initial dial attempt is incorrect the
user can continue dialing with the correct sequence to obtain a match (e.g. for this number the
sequence 55412125551212 would be accepted.)
Example of a Quad Script:
Example of a Quad Script:
Example of a Quad Script:
Example of a Quad Script:
Example of a Quad Script:
Note that in a quad script the 1
st
script can only access line 1, the 2
nd
line 2, etc.
;send a quad script
:0,TS_SCRIPTMODE,TP_SCRIPT_QUAD
;start of script number 1
:0,TS_STARTDEF,1
;use configuration number 1 for line 1
:0,TS_EXECUTE,TC_SELECTCONFIG,1,TP_LINE1
wait for on-hook on line 1
:0,TS_WAITONHOOK,TP_LINE1
;wait for off-hook on line 1
:0,TS_WAITOFFHOOK,TP_LINE1
;wait for 2 seconds
:0,TS_DELAY,2000
;play audio message 1 on line 1
:0,TS_EXECUTE,TC_PLAYMESSAGE,1,TP_LINE1
;wait for on-hook on line 1
:0,TS_WAITONHOOK,TP_LINE1
;end of script
:0,TS_ENDDEF
;start of script number 2
:0,TS_STARTDEF,2
;use configuration number 1 for line 2
:0,TS_EXECUTE,TC_SELECTCONFIG,1,TP_LINE2
;wait for off-hook on line 2
:0,TS_WAITOFFHOOK,TP_LINE2
;play audio message 1 on line 2
:0,TS_EXECUTE,TC_PLAYMESSAGE,1,TP_LINE2
;wait for on-hook on line 2
:0,TS_WAITONHOOK,TP_LINE2
;end of script