home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 November / Chip_2004-11_cd1.bin / tema / fax / download / ventafax5 / vfvh5519i.exe / RCDATA / CABINET / Sample2.vfa < prev    next >
Text File  |  2003-07-03  |  7KB  |  255 lines

  1. ;**************************** beginning SAMPLE2.VFA ************************
  2. ;
  3. ; *************************************************************
  4. ; *      Answering Machine Remote Control Script Example      *
  5. ; *       (for the registered Home version of VentaFax)       *
  6. ; *************************************************************
  7. ;
  8. ; Line beginning with semicolon is a comment
  9. ;
  10. ;
  11. ; START SECTION BEGINS HERE
  12. ;
  13. [START]
  14. ;
  15. ;
  16. ; Set the DTMF sequence length (in this case - PIN code (password)
  17. ; to access the answering machine) to 4 characters.
  18. ; At the same time, cancellation symbol can be set.
  19. ; If a caller would press wrong key when entering a password,
  20. ; he or she can cancel dialing and start again by pressing "#".
  21. ;
  22. =mode 4/#
  23. ;
  24. ;
  25. ; Actions to be performed if undefined earlier DTMF sequence would 
  26. ; be received are described under "=default" group of commands.
  27. ; Parameter specifies, that after receiving the third invalid password 
  28. ; answering machine would hang up.
  29. ;
  30. =default 3
  31. ;
  32. ;
  33. ; If caller would enter an invalid password, ERRPSW.WAV file located in 
  34. ; \SERVICE folder would be played. If you do not want to play an
  35. ; invalid password announcement, comment the "play" line.
  36. ;
  37. play "errpsw.wav"
  38. ;
  39. ;
  40. ; Answering machine would await next command for 40 seconds. 
  41. ; After that answering machine would hang up.
  42. ;
  43. wait_cmd 40 0
  44. ;
  45. ;
  46. ; Now you can set DTMF sequences to be recognized by the 
  47. ; answering machine.
  48. ; In this example three different PIN codes would be used to 
  49. ; access different functions of the answering machine.
  50. ;
  51. ; After entering correct PIN code specified below a caller 
  52. ; should proceed to MENU_1 section to play the recorded messages 
  53. ; and perform some other operations on them.
  54. ;
  55. ; *** WARNING! Don't forget to replace "0001" with your PIN code! ***
  56. ;
  57. =0001
  58. goto "MENU_1"
  59. ;
  60. ; On reception PIN code specified below go to MENU_2 section,
  61. ; where caller can use speakerphone mode functions
  62. ; (if this mode is supported by the modem).
  63. ;
  64. ; *** WARNING! Don't forget to replace "0002" with your PIN code! ***
  65. ;
  66. =0002
  67. goto "MENU_2"
  68. ;
  69. ;
  70. ; On reception PIN code specified below go to MENU_3 section,
  71. ; where caller can play received voice messages or receive an awaiting fax.
  72. ;
  73. =0003
  74. goto "MENU_3"
  75. ;
  76. ;
  77. ; MENU_1 SECTION BEGINS HERE
  78. ;
  79. [MENU_1]
  80. ;
  81. ;
  82. ; Set the DTMF sequence length (in this case control command)
  83. ; to 1 character. Active in current section only.
  84. ;
  85. =mode 1
  86. ;
  87. ;
  88. ; Disconnect after five successive invalid commands or after waiting 
  89. ; for a command for 40 s. 
  90. ;
  91. =default 5
  92. wait_cmd 40 0
  93. ;
  94. ;
  95. ; On reception "1" command play information on new voice messages. 
  96. ; Disconnect if no new commands would be received during 40 s.
  97. ;
  98. =1
  99. play_rep_info 8
  100. wait_cmd 40 0
  101. ;
  102. ;
  103. ; On reception "2" command play new voice messages
  104. ; in first received - first played order. Also message reception time
  105. ; and Caller ID, if delivered, would be played. If caller would 
  106. ; press "2" key again during reproduction, answering machine would 
  107. ; play next message.
  108. ; Disconnect if no new commands would be received during 40 s.
  109. ;
  110. =2
  111. play_new 0 1
  112. wait_cmd 40
  113. ;
  114. ;
  115. ; On reception "3" play current message again. 
  116. ; Disconnect if no new commands would be received during 40 s.
  117. ;
  118. =3
  119. play_agn 1 1
  120. wait_cmd 40
  121. ;
  122. ;
  123. ; On reception "4" command play all messages received by the time of
  124. ; your call in reverse (last received - first played) order
  125. ; irrespective of whether the message has been played earlier.
  126. ; Disconnect if no new commands would be received during 40 s.
  127. ;
  128. =4
  129. play_back 0 1
  130. wait_cmd 40 100
  131. ;
  132. ;
  133. ; On reception "5" command play previous message (relative to the one
  134. ; being played or just played) irrespective of whether the message
  135. ; has been played earlier.
  136. ;
  137. =5
  138. play_prev 1 1
  139. wait_cmd 40 100
  140. ;
  141. ;
  142. ; On reception "6" command play next message (relative to the one
  143. ; being played or just played) irrespective of whether the message
  144. ; has been played earlier.
  145. ;
  146. =6
  147. play_next 1 1 
  148. wait_cmd 40 100
  149. ;
  150. ;
  151. ; MENU_2 SECTION BEGINS HERE
  152. ;
  153. [MENU_2]
  154. ;
  155. ;
  156. ; Set the DTMF sequence length (in this case control command)
  157. ; to 1 character. Active in current section only.
  158. ;
  159. =mode 1
  160. ;
  161. ;
  162. ; Disconnect after two successive invalid commands.
  163. ;
  164. =default 2
  165. ;
  166. ;
  167. ; On reception "1" command switch to speakerphone mode for 10 minutes 
  168. ; (600 seconds). You can talk to the person at the PC. 
  169. ; Maximum volume level is set. For some modems it is recommended to set
  170. ; third parameter to 0 to enable automatic gain control (AGC). 
  171. ; Disconnect after the time specified or at connection break 
  172. ; (short tones) detection.
  173. ;
  174. =1
  175. speakerphone 600 100 100
  176. ;
  177. ;
  178. ; On reception "1" command switch to speakerphone mode for 10 minutes 
  179. ; (600 seconds). You can just hear what is happening near the PC. 
  180. ; Maximum microphone sensitivity (at the modem end) level is set.
  181. ; For some modems it is recommended to set third parameter to 0
  182. ; to enable automatic gain control (AGC). 
  183. ; Disconnect after the time specified or at connection break 
  184. ; (short tones) detection.
  185. =2
  186. speakerphone 600 0 100
  187. ;
  188. ;
  189. ; MENU_3 SECTION BEGINS HERE
  190. ;
  191. [MENU_3]
  192. ;
  193. ;
  194. ; Set the DTMF sequence length (in this case control command)
  195. ; to 3 characters. Active in current section only.
  196. ;
  197. =mode 3
  198. ;
  199. ;
  200. ; Disconnect after two successive invalid commands.
  201. ;
  202. =default 2
  203. ;
  204. ;
  205. ; If caller would enter "001", "MESSAGE FOR RECIPIENT 1.WAV" sound file 
  206. ; located in \SERVICE folder would be played. Change filename as necessary.
  207. ;
  208. =001
  209. play "message for recipient 1.WAV"
  210. ;
  211. ;
  212. ; Say "Speak, please" to the caller. This phrase is recorded in RECVOI.WAV file
  213. ; located in \SERVICE folder.
  214. ;
  215. play "recvoi.wav"
  216. ;
  217. ;
  218. ; Record caller's answer for 30 seconds. Since "*" is used as a 
  219. ; message filename, it can be played in MENU_1 section.
  220. ;
  221. record * 30
  222. ;
  223. ;
  224. ; Inform caller on the end of recording. This phrase is recorded in STOP.WAV 
  225. ; file located in \SERVICE folder. After that, disconnect.
  226. ;
  227. play "stop.wav"
  228. ;
  229. ;
  230. ; If caller would enter "002", "MESSAGE FOR RECIPIENT 2.WAV" sound file 
  231. ; located in \SERVICE folder would be played. No answer recording
  232. ; would take place, and the connection would be terminated.
  233. ;
  234. =002
  235. play " message for recipient 2.wav"
  236. ;
  237. ;
  238. ; If caller would enter "003", he would be invited to receive a fax. 
  239. ; Invitation to fax reception is recorded in the "MESSAGE FOR RECIPIENT 3.WAV" 
  240. ; sound file located in \SERVICE folder; FAX.TIF file contains the facsimile 
  241. ; message itself. Change filenames with as necessary. After the fax is sent,
  242. ; connection would be terminated.
  243. ;
  244. =003
  245. play "message for recipient 3.wav"
  246. send "fax.tif"
  247. ;
  248. ; and so on. It is recommended to replace 001, 002, 003 codes. You can
  249. ; also change code length with mode command if this section.
  250. ;
  251. ; **************************** end SAMPLE2.VFA ************************
  252.