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 >
Text File  |  2003-07-03  |  9KB  |  349 lines

  1. ;**************************** beginning sample3.vfa ************************
  2. ;
  3. ; *************************************************************
  4. ; *      Answering Machine Remote Control Script Example      *
  5. ; *     (for the registered Business version of VentaFax)     *
  6. ; *                                                           *
  7. ; *     Fax-on-demand and voice mailbox creation example      *
  8. ; *************************************************************
  9. ;
  10. ; Line beginning with semicolon is a comment
  11. ;
  12. ; To avoid frustrated callers, include directions in the answering machine
  13. ; announcement. To access fax-on-demand service, caller should press
  14. ; '1' key (in the tone mode).
  15. ;
  16. ;
  17. ; START SECTION BEGINS HERE
  18. ;
  19. [START]
  20. ;
  21. ;
  22. ; Set the DTMF sequence length to access the answering machine to 1 character.
  23. ;
  24. =mode 1
  25. ;
  26. ;
  27. ; On reception "1" command go to MENU_HELP fax-on-demand menu.
  28. ;
  29. =1
  30. goto "MENU_HELP"
  31. ;
  32. ;
  33. ; On reception "9" command go to MENU_VOICEMAIL voice mailbox menu.
  34. ;
  35. =9
  36. goto "MENU_VOICEMAIL"
  37. ;
  38. ;
  39. ; MENU_HELP FAX-ON-DEMAND SECTION BEGINS HERE
  40. ;
  41. [MENU_HELP]
  42. ;
  43. ;
  44. ; Set the DTMF sequence length (in this case control command)
  45. ; to 1 character. Play "MENU DESCRIPTION.WAV" file located in \SERVICE folder.
  46. ; This file should contain information for caller on which digit to enter 
  47. ; in order to receive a fax.
  48. ;
  49. =mode 1 "menu description.wav"
  50. ;
  51. ; Below are the facsimile message names to be transmitted to caller 
  52. ; upon entering the corresponding digit. These files should be located 
  53. ; in \SERVICE folder.
  54. ;
  55. =1
  56. send "fax1.tif"
  57. =2
  58. send "fax2.tif"
  59. =3
  60. send "fax3.tif"
  61. =4
  62. send "fax4.tif"
  63. =5
  64. send "fax5.tif"
  65. =6
  66. send "fax6.tif"
  67. =7
  68. send "fax7.tif"
  69. =8
  70. send "fax8.tif"
  71. =9
  72. send "fax9.tif"
  73. ;
  74. ;
  75. ; VOICE MAILBOX SECTION BEGINS HERE 
  76. ;
  77. [MENU_VOICEMAIL]
  78. ;
  79. ;
  80. ; Set the DTMF sequence length (in this case - PIN code (password)
  81. ; to access the answering machine) to 5 characters.
  82. ; At the same time, cancellation symbol can be set.
  83. ; If a caller would press a wrong key when entering a password,
  84. ; he or she can cancel dialing and start again by pressing "#".
  85. ;
  86. =mode 5/#
  87. ;
  88. ;
  89. ; Actions to be performed if undefined earlier DTMF sequence would be 
  90. ; received are described under "=default" group of commands. 
  91. ; Parameter specifies that after receiving the third invalid password
  92. ; answering machine would hang up.
  93. ;
  94. =default 3
  95. ;
  96. ;
  97. ; If caller would enter an invalid password, ERRPSW.WAV file located in 
  98. ; \SERVICE folder would be played. If you do not want to play an
  99. ; invalid password announcement, comment the "play" line.
  100. ;
  101. play "errpsw.wav"
  102. ;
  103. ;
  104. ; Answering machine would await next command for 40 seconds. 
  105. ; After that answering machine would hang up.
  106. ;
  107. wait_cmd 40 0
  108. ;
  109. ;
  110. ;---------- Personal voice mailbox play access command group -----------
  111. ;--------- for users to play messages left for them remotely -----------
  112. ;
  113. ; After entering correct PIN code specified below a caller 
  114. ; should proceed to MENU_1 section to play the recorded messages 
  115. ; and perform some other operations on them.
  116. ;
  117. ; *** WARNING! Don't forget to replace "00001" with user 1 PIN code ***
  118. ;
  119. =00001
  120. ;
  121. ;
  122. ; set_protected command parameter (1 in this case) is a user's
  123. ; identifier in MENU_1 section. It must be the same as the message recording 
  124. ; identifier. Only the messages recorded with this id would be available
  125. ; to user 1.
  126. ;
  127. set_protected 1
  128. ;
  129. ;
  130. ; Go to MENU_1 message playing section
  131. ;
  132. goto "MENU_1"
  133. ;
  134. ;
  135. ; *** WARNING! Don't forget to replace "00002" with user 2 PIN code ***
  136. ;
  137. =00002
  138. ;
  139. ;
  140. ; set_protected command parameter (2 in this case) is a user's
  141. ; identifier in MENU_1 section. It must be the same as the message recording 
  142. ; identifier. Only the messages recorded with this id would be available
  143. ; to user 2.
  144. ;
  145. set_protected 2
  146. ;
  147. ;
  148. ; Go to MENU_1 message playing section
  149. ;
  150. goto "MENU_1"
  151. ;
  152. ;
  153. ; *** WARNING! Don't forget to replace "00003" with user 3 PIN code ***
  154. ;
  155. =00003
  156. ;
  157. ;
  158. ; set_protected command parameter (3 in this case) is a user's
  159. ; identifier in MENU_1 section. It must be the same as the message recording 
  160. ; identifier. Only the messages recorded with this id would be available
  161. ; to user 3.
  162. ;
  163. set_protected 3
  164. ;
  165. ;
  166. ; Go to MENU_1 message playing section
  167. ;
  168. goto "MENU_1"
  169. ;
  170. ;
  171. ;---------- Personal voice mailbox write access command group -----------
  172. ;--------------------- to leave messages for users ----------------------
  173. ;
  174. ; *** WARNING! Don't forget to replace "10001"  ***
  175. ; *** with user 1 mailbox write access PIN code ***
  176. ;
  177. =10001
  178. ;
  179. ;
  180. ; set_protected command parameter (1 in this case) is a user's
  181. ; identifier, whom the message is intended to.
  182. ;
  183. set_protected 1
  184. ;
  185. ; After that, play pre-recorded RECVOI1.WAV file located in \SERVICE folder. 
  186. ; This is an announcement like "Leave a message for Smith. You have 
  187. ; 60 seconds to speak. Start after a tone signal."
  188. ;
  189. play "recvoi1.wav"
  190. ;
  191. ;
  192. ; Record an up to 60 second long message. Recorded file name would be located in
  193. ; \IN folder with an unknown name.
  194. ;
  195. record * 60
  196. ;
  197. ;
  198. ; Play pre-recorded STOP.WAV file located in \SERVICE folder.
  199. ; This is an announcement like "The end of recording. Thank you for
  200. ; your call. Good-bye."
  201. ;
  202. play "stop.wav"
  203. ;
  204. ;
  205. ; *** WARNING! Don't forget to replace "10002"  ***
  206. ; *** with user 2 mailbox write access PIN code ***
  207. ;
  208. =10002
  209. ;
  210. ;
  211. ; set_protected command parameter (2 in this case) is a user's
  212. ; identifier, whom the message is intended to.
  213. ;
  214. set_protected 2
  215. ;
  216. ; After that, play pre-recorded RECVOI2.WAV file located in \SERVICE folder. 
  217. ; This is an announcement like "Leave a message for Johnson. You have 
  218. ; 60 seconds to speak. Start after a tone signal."
  219. ;
  220. play "recvoi2.wav"
  221. ;
  222. ;
  223. ; Record an up to 60 second long message. Recorded file name would be located in
  224. ; \IN folder with an unknown name.
  225. ;
  226. record * 60
  227. ;
  228. ;
  229. ; Play pre-recorded STOP.WAV file located in \SERVICE folder.
  230. ; This is an announcement like "The end of recording. Thank you for
  231. ; your call. Good-bye."
  232. ;
  233. play "stop.wav"
  234. ;
  235. ;
  236. ; *** WARNING! Don't forget to replace "10003"  ***
  237. ; *** with user 3 mailbox write access PIN code ***
  238. ;
  239. =10003
  240. ;
  241. ;
  242. ; set_protected command parameter (3 in this case) is a user's
  243. ; identifier, whom the message is intended to.
  244. ;
  245. set_protected 3
  246. ;
  247. ; After that, play pre-recorded RECVOI3.WAV file located in \SERVICE folder. 
  248. ; This is an announcement like "Leave a message for Johnson. You have 
  249. ; 60 seconds to speak. Start after a tone signal."
  250. ;
  251. play "recvoi3.wav"
  252. ;
  253. ;
  254. ; Record an up to 60 second long message. Recorded file name would be located in
  255. ; \IN folder with an unknown name.
  256. ;
  257. record * 60
  258. ;
  259. ;
  260. ; Play pre-recorded STOP.WAV file located in \SERVICE folder.
  261. ; This is an announcement like "The end of recording. Thank you for
  262. ; your call. Good-bye."
  263. ;
  264. play "stop.wav"
  265. ;
  266. ;
  267. ;-----------------------------------------------------------------------
  268. ;
  269. ; MESSAGE PLAYING SECTION BEGINS HERE
  270. ;
  271. [MENU_1]
  272. ;
  273. ; Set the DTMF sequence length (in this case control command)
  274. ; to 1 character. Active in current section only.
  275. ; In mode command, you can specify sound file name to be played on 
  276. ; entering this menu.
  277. ;
  278. =mode 1
  279. ;
  280. ;
  281. ; Disconnect after five successive invalid commands or after waiting for
  282. ; a command for 40 s. 
  283. ;
  284. =default 5
  285. wait_cmd 40 0
  286. ;
  287. ;
  288. ; On reception "1" command play information on new voice messages. 
  289. ; Disconnect if no new commands would be received during 40 s.
  290. ;
  291. =1
  292. play_rep_info 8
  293. wait_cmd 40 0
  294. ;
  295. ;
  296. ; On receiving "2" command play new voice messages
  297. ; in first received - first played order. Also message reception time
  298. ; and Caller ID, if delivered, would be played. If caller would press 
  299. ; "2" key ; again during reproduction, answering machine would
  300. ; play next message. ; Disconnect if no new commands would be received
  301. ; during 40 s.
  302. ;
  303. =2
  304. play_new 0 1
  305. wait_cmd 40 250
  306. ;
  307. ;
  308. ; On receiving "3" play current message again. 
  309. ; Disconnect if no new commands would be received during 40 s.
  310. ;
  311. =3
  312. play_agn 1 1
  313. wait_cmd 40 100
  314. ;
  315. ;
  316. ; On receiving "4" command play all messages received by the time of
  317. ; your call in reverse (last received - first played) order
  318. ; irrespective of whether the message has been played earlier.
  319. ; Disconnect if no new commands would be received during 40 s.
  320. ;
  321. =4
  322. play_back 0 1
  323. wait_cmd 40 100
  324. ;
  325. ;
  326. ; On receiving "5" command play previous message (relative to the one
  327. ; being played or just played) irrespective of whether the message
  328. ; has been played earlier.
  329. ;
  330. =5
  331. play_prev 1 1
  332. wait_cmd 40 100
  333. ;
  334. ;
  335. ;
  336. ; On receiving "6" command play next message (relative to the one
  337. ; being played or just played) irrespective of whether the message
  338. ; has been played earlier.
  339. ;
  340. =6
  341. play_next 1 1 
  342. wait_cmd 40 100
  343. ;
  344. ;
  345. ; **************************** end sample3.vfa ************************
  346.  
  347.  
  348.  
  349.