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

  1. ;**************************** beginning SAMPLE1.VFA ************************
  2. ;
  3. ; *************************************************************
  4. ; *      Answering Machine Remote Control Script Example      *
  5. ; *           (for unregistered 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 be received
  26. ; are described under "=default" group of commands. Parameter specifies,
  27. ; that after receiving the third invalid password answering machine
  28. ; 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 answering machine.
  47. ; Thus, after receiving the correct password it should go to MENU_1 section.
  48. ;
  49. ; *** WARNING! Don't forget to replace "0000" with your PIN code! ***
  50. ;
  51. =0000
  52. goto "MENU_1"
  53. ;
  54. ;
  55. ; MENU_1 SECTION BEGINS HERE
  56. ;
  57. [MENU_1]
  58. ;
  59. ;
  60. ; Set the DTMF sequence length (in this case control command)
  61. ; to 1 character.
  62. ;
  63. =mode 1
  64. ;
  65. ;
  66. ; Disconnect after five successive invalid commands or after waiting for
  67. ; a command for 40 s. 
  68. ;
  69. =default 5
  70. wait_cmd 40 0
  71. ;
  72. ;
  73. ; On reception "1" command play information on new voice messages. 
  74. ; Disconnect if no new commands would be received during 40 s.
  75. ;
  76. =1
  77. play_rep_info 8
  78. wait_cmd 40 0
  79. ;
  80. ;
  81. ; On reception "2" command play new voice messages
  82. ; in first received - first played order. Also message reception time
  83. ; and Caller ID, if delivered, would be played. If caller would press "2" key
  84. ; again during reproduction, answering machine would play next message.
  85. ; Disconnect if no new commands would be received during 40 s.
  86. ;
  87. =2
  88. play_new 0 1
  89. wait_cmd 40
  90. ;
  91. ;
  92. ; On reception "3" play current message again. 
  93. ; Disconnect if no new commands would be received during 40 s.
  94. ;
  95. =3
  96. play_agn 1 1
  97. wait_cmd 40
  98. ;
  99. ;
  100. ;**************************** end SAMPLE1.VFA ************************
  101.  
  102.