home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 November
/
Chip_2004-11_cd1.bin
/
tema
/
fax
/
download
/
ventafax5
/
vfvh5519i.exe
/
RCDATA
/
CABINET
/
Sample3.vfa
< prev
next >
Wrap
Text File
|
2003-07-03
|
9KB
|
349 lines
;**************************** beginning sample3.vfa ************************
;
; *************************************************************
; * Answering Machine Remote Control Script Example *
; * (for the registered Business version of VentaFax) *
; * *
; * Fax-on-demand and voice mailbox creation example *
; *************************************************************
;
; Line beginning with semicolon is a comment
;
; To avoid frustrated callers, include directions in the answering machine
; announcement. To access fax-on-demand service, caller should press
; '1' key (in the tone mode).
;
;
; START SECTION BEGINS HERE
;
[START]
;
;
; Set the DTMF sequence length to access the answering machine to 1 character.
;
=mode 1
;
;
; On reception "1" command go to MENU_HELP fax-on-demand menu.
;
=1
goto "MENU_HELP"
;
;
; On reception "9" command go to MENU_VOICEMAIL voice mailbox menu.
;
=9
goto "MENU_VOICEMAIL"
;
;
; MENU_HELP FAX-ON-DEMAND SECTION BEGINS HERE
;
[MENU_HELP]
;
;
; Set the DTMF sequence length (in this case control command)
; to 1 character. Play "MENU DESCRIPTION.WAV" file located in \SERVICE folder.
; This file should contain information for caller on which digit to enter
; in order to receive a fax.
;
=mode 1 "menu description.wav"
;
; Below are the facsimile message names to be transmitted to caller
; upon entering the corresponding digit. These files should be located
; in \SERVICE folder.
;
=1
send "fax1.tif"
=2
send "fax2.tif"
=3
send "fax3.tif"
=4
send "fax4.tif"
=5
send "fax5.tif"
=6
send "fax6.tif"
=7
send "fax7.tif"
=8
send "fax8.tif"
=9
send "fax9.tif"
;
;
; VOICE MAILBOX SECTION BEGINS HERE
;
[MENU_VOICEMAIL]
;
;
; Set the DTMF sequence length (in this case - PIN code (password)
; to access the answering machine) to 5 characters.
; At the same time, cancellation symbol can be set.
; If a caller would press a wrong key when entering a password,
; he or she can cancel dialing and start again by pressing "#".
;
=mode 5/#
;
;
; Actions to be performed if undefined earlier DTMF sequence would be
; received are described under "=default" group of commands.
; Parameter specifies that after receiving the third invalid password
; answering machine would hang up.
;
=default 3
;
;
; If caller would enter an invalid password, ERRPSW.WAV file located in
; \SERVICE folder would be played. If you do not want to play an
; invalid password announcement, comment the "play" line.
;
play "errpsw.wav"
;
;
; Answering machine would await next command for 40 seconds.
; After that answering machine would hang up.
;
wait_cmd 40 0
;
;
;---------- Personal voice mailbox play access command group -----------
;--------- for users to play messages left for them remotely -----------
;
; After entering correct PIN code specified below a caller
; should proceed to MENU_1 section to play the recorded messages
; and perform some other operations on them.
;
; *** WARNING! Don't forget to replace "00001" with user 1 PIN code ***
;
=00001
;
;
; set_protected command parameter (1 in this case) is a user's
; identifier in MENU_1 section. It must be the same as the message recording
; identifier. Only the messages recorded with this id would be available
; to user 1.
;
set_protected 1
;
;
; Go to MENU_1 message playing section
;
goto "MENU_1"
;
;
; *** WARNING! Don't forget to replace "00002" with user 2 PIN code ***
;
=00002
;
;
; set_protected command parameter (2 in this case) is a user's
; identifier in MENU_1 section. It must be the same as the message recording
; identifier. Only the messages recorded with this id would be available
; to user 2.
;
set_protected 2
;
;
; Go to MENU_1 message playing section
;
goto "MENU_1"
;
;
; *** WARNING! Don't forget to replace "00003" with user 3 PIN code ***
;
=00003
;
;
; set_protected command parameter (3 in this case) is a user's
; identifier in MENU_1 section. It must be the same as the message recording
; identifier. Only the messages recorded with this id would be available
; to user 3.
;
set_protected 3
;
;
; Go to MENU_1 message playing section
;
goto "MENU_1"
;
;
;---------- Personal voice mailbox write access command group -----------
;--------------------- to leave messages for users ----------------------
;
; *** WARNING! Don't forget to replace "10001" ***
; *** with user 1 mailbox write access PIN code ***
;
=10001
;
;
; set_protected command parameter (1 in this case) is a user's
; identifier, whom the message is intended to.
;
set_protected 1
;
; After that, play pre-recorded RECVOI1.WAV file located in \SERVICE folder.
; This is an announcement like "Leave a message for Smith. You have
; 60 seconds to speak. Start after a tone signal."
;
play "recvoi1.wav"
;
;
; Record an up to 60 second long message. Recorded file name would be located in
; \IN folder with an unknown name.
;
record * 60
;
;
; Play pre-recorded STOP.WAV file located in \SERVICE folder.
; This is an announcement like "The end of recording. Thank you for
; your call. Good-bye."
;
play "stop.wav"
;
;
; *** WARNING! Don't forget to replace "10002" ***
; *** with user 2 mailbox write access PIN code ***
;
=10002
;
;
; set_protected command parameter (2 in this case) is a user's
; identifier, whom the message is intended to.
;
set_protected 2
;
; After that, play pre-recorded RECVOI2.WAV file located in \SERVICE folder.
; This is an announcement like "Leave a message for Johnson. You have
; 60 seconds to speak. Start after a tone signal."
;
play "recvoi2.wav"
;
;
; Record an up to 60 second long message. Recorded file name would be located in
; \IN folder with an unknown name.
;
record * 60
;
;
; Play pre-recorded STOP.WAV file located in \SERVICE folder.
; This is an announcement like "The end of recording. Thank you for
; your call. Good-bye."
;
play "stop.wav"
;
;
; *** WARNING! Don't forget to replace "10003" ***
; *** with user 3 mailbox write access PIN code ***
;
=10003
;
;
; set_protected command parameter (3 in this case) is a user's
; identifier, whom the message is intended to.
;
set_protected 3
;
; After that, play pre-recorded RECVOI3.WAV file located in \SERVICE folder.
; This is an announcement like "Leave a message for Johnson. You have
; 60 seconds to speak. Start after a tone signal."
;
play "recvoi3.wav"
;
;
; Record an up to 60 second long message. Recorded file name would be located in
; \IN folder with an unknown name.
;
record * 60
;
;
; Play pre-recorded STOP.WAV file located in \SERVICE folder.
; This is an announcement like "The end of recording. Thank you for
; your call. Good-bye."
;
play "stop.wav"
;
;
;-----------------------------------------------------------------------
;
; MESSAGE PLAYING SECTION BEGINS HERE
;
[MENU_1]
;
; Set the DTMF sequence length (in this case control command)
; to 1 character. Active in current section only.
; In mode command, you can specify sound file name to be played on
; entering this menu.
;
=mode 1
;
;
; Disconnect after five successive invalid commands or after waiting for
; a command for 40 s.
;
=default 5
wait_cmd 40 0
;
;
; On reception "1" command play information on new voice messages.
; Disconnect if no new commands would be received during 40 s.
;
=1
play_rep_info 8
wait_cmd 40 0
;
;
; On receiving "2" command play new voice messages
; in first received - first played order. Also message reception time
; and Caller ID, if delivered, would be played. If caller would press
; "2" key ; again during reproduction, answering machine would
; play next message. ; Disconnect if no new commands would be received
; during 40 s.
;
=2
play_new 0 1
wait_cmd 40 250
;
;
; On receiving "3" play current message again.
; Disconnect if no new commands would be received during 40 s.
;
=3
play_agn 1 1
wait_cmd 40 100
;
;
; On receiving "4" command play all messages received by the time of
; your call in reverse (last received - first played) order
; irrespective of whether the message has been played earlier.
; Disconnect if no new commands would be received during 40 s.
;
=4
play_back 0 1
wait_cmd 40 100
;
;
; On receiving "5" command play previous message (relative to the one
; being played or just played) irrespective of whether the message
; has been played earlier.
;
=5
play_prev 1 1
wait_cmd 40 100
;
;
;
; On receiving "6" command play next message (relative to the one
; being played or just played) irrespective of whether the message
; has been played earlier.
;
=6
play_next 1 1
wait_cmd 40 100
;
;
; **************************** end sample3.vfa ************************