home *** CD-ROM | disk | FTP | other *** search
- ;**************************** beginning SAMPLE2.VFA ************************
- ;
- ; *************************************************************
- ; * Answering Machine Remote Control Script Example *
- ; * (for the registered Home version of VentaFax) *
- ; *************************************************************
- ;
- ; Line beginning with semicolon is a comment
- ;
- ;
- ; START SECTION BEGINS HERE
- ;
- [START]
- ;
- ;
- ; Set the DTMF sequence length (in this case - PIN code (password)
- ; to access the answering machine) to 4 characters.
- ; At the same time, cancellation symbol can be set.
- ; If a caller would press wrong key when entering a password,
- ; he or she can cancel dialing and start again by pressing "#".
- ;
- =mode 4/#
- ;
- ;
- ; 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
- ;
- ;
- ; Now you can set DTMF sequences to be recognized by the
- ; answering machine.
- ;
- ; In this example three different PIN codes would be used to
- ; access different functions of the answering machine.
- ;
- ; 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 "0001" with your PIN code! ***
- ;
- =0001
- goto "MENU_1"
- ;
- ;
- ; On reception PIN code specified below go to MENU_2 section,
- ; where caller can use speakerphone mode functions
- ; (if this mode is supported by the modem).
- ;
- ; *** WARNING! Don't forget to replace "0002" with your PIN code! ***
- ;
- =0002
- goto "MENU_2"
- ;
- ;
- ; On reception PIN code specified below go to MENU_3 section,
- ; where caller can play received voice messages or receive an awaiting fax.
- ;
- =0003
- goto "MENU_3"
- ;
- ;
- ; MENU_1 SECTION BEGINS HERE
- ;
- [MENU_1]
- ;
- ;
- ; Set the DTMF sequence length (in this case control command)
- ; to 1 character. Active in current section only.
- ;
- =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 reception "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
- ;
- ;
- ; On reception "3" play current message again.
- ; Disconnect if no new commands would be received during 40 s.
- ;
- =3
- play_agn 1 1
- wait_cmd 40
- ;
- ;
- ; On reception "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 reception "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 reception "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
- ;
- ;
- ; MENU_2 SECTION BEGINS HERE
- ;
- [MENU_2]
- ;
- ;
- ; Set the DTMF sequence length (in this case control command)
- ; to 1 character. Active in current section only.
- ;
- =mode 1
- ;
- ;
- ; Disconnect after two successive invalid commands.
- ;
- =default 2
- ;
- ;
- ; On reception "1" command switch to speakerphone mode for 10 minutes
- ; (600 seconds). You can talk to the person at the PC.
- ; Maximum volume level is set. For some modems it is recommended to set
- ; third parameter to 0 to enable automatic gain control (AGC).
- ; Disconnect after the time specified or at connection break
- ; (short tones) detection.
- ;
- =1
- speakerphone 600 100 100
- ;
- ;
- ; On reception "1" command switch to speakerphone mode for 10 minutes
- ; (600 seconds). You can just hear what is happening near the PC.
- ; Maximum microphone sensitivity (at the modem end) level is set.
- ; For some modems it is recommended to set third parameter to 0
- ; to enable automatic gain control (AGC).
- ; Disconnect after the time specified or at connection break
- ; (short tones) detection.
- ;
- =2
- speakerphone 600 0 100
- ;
- ;
- ; MENU_3 SECTION BEGINS HERE
- ;
- [MENU_3]
- ;
- ;
- ; Set the DTMF sequence length (in this case control command)
- ; to 3 characters. Active in current section only.
- ;
- =mode 3
- ;
- ;
- ; Disconnect after two successive invalid commands.
- ;
- =default 2
- ;
- ;
- ; If caller would enter "001", "MESSAGE FOR RECIPIENT 1.WAV" sound file
- ; located in \SERVICE folder would be played. Change filename as necessary.
- ;
- =001
- play "message for recipient 1.WAV"
- ;
- ;
- ; Say "Speak, please" to the caller. This phrase is recorded in RECVOI.WAV file
- ; located in \SERVICE folder.
- ;
- play "recvoi.wav"
- ;
- ;
- ; Record caller's answer for 30 seconds. Since "*" is used as a
- ; message filename, it can be played in MENU_1 section.
- ;
- record * 30
- ;
- ;
- ; Inform caller on the end of recording. This phrase is recorded in STOP.WAV
- ; file located in \SERVICE folder. After that, disconnect.
- ;
- play "stop.wav"
- ;
- ;
- ; If caller would enter "002", "MESSAGE FOR RECIPIENT 2.WAV" sound file
- ; located in \SERVICE folder would be played. No answer recording
- ; would take place, and the connection would be terminated.
- ;
- =002
- play " message for recipient 2.wav"
- ;
- ;
- ; If caller would enter "003", he would be invited to receive a fax.
- ; Invitation to fax reception is recorded in the "MESSAGE FOR RECIPIENT 3.WAV"
- ; sound file located in \SERVICE folder; FAX.TIF file contains the facsimile
- ; message itself. Change filenames with as necessary. After the fax is sent,
- ; connection would be terminated.
- ;
- =003
- play "message for recipient 3.wav"
- send "fax.tif"
- ;
- ; and so on. It is recommended to replace 001, 002, 003 codes. You can
- ; also change code length with mode command if this section.
- ;
- ; **************************** end SAMPLE2.VFA ************************
-