home *** CD-ROM | disk | FTP | other *** search
/ PC97 Software / SOFTWARE_97.iso / WINFAX8.01 / STDCTR2.VM_ / STDCTR2.VM
Text File  |  1997-02-11  |  9KB  |  569 lines

  1. ;
  2. ;   $header:    $
  3. ;
  4. ; STDCTR2.VMU
  5. ; STDCTR2.VMU is the successor to STDCTR.VMU
  6. ;
  7. ;
  8. ; This routine has 2 parameters. 
  9. ;     $1 - A mailbox ID
  10. ;     $2 - A greeting.        
  11.  
  12. ; Notify user to start recording now
  13.  
  14. [PlayGreeting]
  15. Action=Play
  16. Prompt=$2
  17. Menu14=Password
  18. Superuser=Password
  19. Menu15=record
  20. ;Stop playing the greeting if the downline phone is picked up
  21. Handsetup=Goodbye_body
  22. ;Dialtone=Goodbye_body
  23. ; this will play start recording now....
  24. ;Default=PlayGreeting2
  25. ; this will skip it
  26. Default=record
  27. Delay=0
  28. Button=SOFTABORT
  29.  
  30. [PlayGreeting2]
  31. Action=Play
  32. Prompt=V\STARTMSG.
  33. Menu14=Password
  34. Dialtone=Goodbye_body
  35. Handsetup=Goodbye_body
  36. Superuser=Password
  37. Default=Record
  38. Delay=0
  39. Button=SOFTABORT
  40.  
  41. ; Prompt user to restart, change password, re-record spoken name, or exit
  42. [EndOpt]
  43. Action=Play
  44. Prompt=$STD_EndOpt_Prompt
  45. Menu01=StartUpCheck
  46. Menu06=StartUpCheck
  47. Menu07=NewPass
  48. ;;;;;; Keep the superuser mode when returning...
  49. ;;;;;;Menu14=ResetSuper
  50. Menu14=Return
  51. Menu15=GoodBye
  52. Default=EndOpt
  53. Retries=2
  54. Delay=0
  55. Button=SOFTABORT
  56. Dialtone=Goodbye_body
  57.  
  58. ;
  59. ; Begin common with msgctr2
  60. ;
  61.  
  62. ; assign the mailbox number
  63. [Startup]
  64. Action=boxid
  65. Prompt=$1
  66. Delay=0
  67. Button=SOFTABORT
  68. Default=checksuper
  69. Version=2.0
  70.  
  71. ; Determine if leave msg or retrieve msg mode
  72. [checksuper]
  73. Prompt=
  74. Action=noaction
  75. Menu14=Password
  76. Superuser=Password
  77. Delay=0
  78. Default=PlayGreeting
  79.  
  80. ; Record the message
  81. [Record]
  82. Prompt=$message
  83. Action=record
  84. Error=DiskFull
  85. Dialtone=Goodbye_body
  86. Silence=Goodbye_body
  87. Handsetup=Goodbye_body
  88. Default=EndRec
  89. Menu15=EndRec
  90. Button=SOFTABORT
  91. Delay=0
  92.  
  93. ; Play - 'recording stopped'
  94. [EndRec]
  95. Action=Play
  96. Prompt=V\ENDREC.
  97. Menu01=Playback
  98. Menu02=Record
  99. Menu14=Return
  100. Menu15=GoodBye
  101. Dialtone=Goodbye_body
  102. Handsetup=Goodbye_body
  103. Default=UserMenu
  104. Retries=3
  105. Button=SOFTABORT
  106. Delay=0
  107.  
  108. ; Play - 'mailbox full'
  109. [DiskFull]
  110. Action=Play
  111. Prompt=$DiskFull_Prompt
  112. Menu01=Playback
  113. Menu14=Return
  114. Menu15=GoodBye
  115. Default=UserMenu
  116. Handsetup=Goodbye_body
  117. Retries=3
  118. Delay=0
  119.  
  120. ; Allow user to hear instructions for playing back the message etc.
  121. [UserMenu]
  122. Action=Play
  123. Prompt=V\CALLMENU.
  124. Menu01=Playback
  125. Menu02=Record
  126. Menu14=Return
  127. Menu15=GoodBye
  128. Default=GoodBye
  129. Dialtone=Goodbye_body
  130. Handsetup=Goodbye_body
  131. Button=SOFTABORT
  132. Retries=2
  133. Delay=3
  134.  
  135. ; Play the message
  136. [Playback]
  137. Action=Play
  138. Prompt=$message
  139. Menu14=Return
  140. Menu15=UserMenu
  141. Handsetup=Goodbye_body
  142. Default=UserMenu
  143. Button=SOFTABORT
  144. Delay=0
  145.  
  146. ;
  147. ; Begin common with annctr2
  148. ;
  149.  
  150. ; Save message & exit
  151. [Return]
  152. Action=SetUser
  153. Menu00=
  154. Prompt=Reseting user privilege
  155. Default=MainMenu
  156.  
  157. [MainMenu]
  158. Action=ReturnMenu
  159. Menu00=
  160. Prompt=Save
  161. Default=
  162.  
  163. ; Request user to enter password (limited to 8 digits)
  164. [Password]
  165. Prompt=V\PASSWRDQ.
  166. Action=capturedigits
  167. value=9
  168. Menu00=MatchSpecial
  169. Menu15=MatchSpecial
  170. Default=Goodbye
  171. Retries=3
  172. ; Set Retries in MatchDigs
  173. Button=SOFTABORT
  174. Delay=10
  175.  
  176. ; Data discrimination
  177. [MatchSpecial]
  178. Action=matchdigits
  179. Prompt=9*
  180. Menu00=datadisc
  181. ;Retry disabled in this menu
  182. Retries=0
  183. Error=GoodBye
  184. Default=ChkFaxMode
  185. Delay=0
  186. ;
  187.  
  188. ; Go to Fax mode
  189. [ChkFaxMode]
  190. Action=matchdigits
  191. Prompt=8*
  192. Menu00=Faxmode
  193. ;Retry disabled in this menu
  194. Retries=0
  195. Error=return
  196. Default=MatchDigs
  197. Delay=0
  198. ;
  199.  
  200. [FaxMode]
  201. Action=Faxmode
  202. Prompt=
  203. Default=
  204. Delay=0
  205.  
  206. [DataDisc]
  207. Action=datarecv
  208. Prompt=
  209. Menu00=
  210. Error=
  211. Default=
  212. ;
  213.  
  214. [MatchDigs]
  215. Action=matchdigits
  216. Prompt=$password
  217. Menu00=setsuper
  218. ;Retries used in this menu to set limit on
  219. ;number of times MatchDig can be called
  220. retries=3
  221. Error=GoodBye
  222. Default=Password
  223. Delay=0
  224.  
  225. ;
  226. [setsuper]
  227. Action=setsuperuser
  228. Prompt=
  229. Default=EndOpt
  230.  
  231. ; Check for new messages
  232. [StartupCheck]
  233. Action=SetList
  234. Prompt=$newlist
  235. EmptyList=NoNew
  236. Default=NewInfo
  237. Retries=0
  238. Delay=0
  239.  
  240. ; Notify user no new messages
  241. [NoNew]
  242. Action=Play
  243. Prompt=V\NONEWMSG.
  244. Menu14=EndOpt
  245. Menu15=GoodBye
  246. Default=CheckOldList
  247. Retries=1
  248. Delay=0
  249. Button=SOFTABORT
  250. Dialtone=Goodbye_body
  251.  
  252. ; Check for old messages
  253. [CheckOldList]
  254. Action=SetList
  255. Prompt=$OldList
  256. EmptyList=NoOld
  257. Default=OldInfo
  258. Retries=0
  259. Delay=0
  260. Button=SOFTABORT
  261.  
  262. ; Notify user no old messages
  263. [NoOld]
  264. Action=Play
  265. Prompt=V\NOOLDMSG.
  266. Menu14=EndOpt
  267. Menu15=GoodBye
  268. Default=EndOpt
  269. Retries=2
  270. Delay=0
  271. Button=SOFTABORT
  272. Dialtone=Goodbye_body
  273.  
  274. ; Notify user count of new voice and fax messages
  275. [NewInfo]
  276. Action=Play
  277. Prompt=$NewInfo_Prompt
  278. Menu01=GetFirst
  279. Menu06=GetFirst
  280. Menu14=EndOpt
  281. Menu15=GoodBye
  282. Default=GetFirst
  283. Retries=1
  284. Delay=0
  285. Button=SOFTABORT
  286. Dialtone=Goodbye_body
  287.  
  288. ; Notify user count of old voice and fax messages
  289. [OldInfo]
  290. Action=Play
  291. Prompt=$OldInfo_Prompt
  292. Menu01=GetFirst
  293. Menu06=GetFirst
  294. Menu14=EndOpt
  295. Menu15=GoodBye
  296. Default=GetFirst
  297. Retries=1
  298. Delay=0
  299. Button=SOFTABORT
  300. Dialtone=Goodbye_body
  301.  
  302. ; Get first message
  303. [GetFirst]
  304. Action=GetMsg
  305. Prompt=$firstmsg
  306. Default=PlayMsg
  307. Retries=0
  308. Delay=0
  309. Button=SOFTABORT
  310.  
  311. ; Play current message
  312. [PlayMsg]
  313. Action=Play
  314. Prompt=$PlayMsg_Prompt
  315. Menu01=PlayMsgAgain
  316. Menu02=MarkOld
  317. Menu03=RemMsg
  318. Menu04=FaxBack
  319. Menu05=GetPrev
  320. Menu06=GetNext
  321. Menu14=EndOpt
  322. Menu15=EndPlay
  323. Default=EndPlay
  324. Retries=3
  325. Delay=0
  326. Button=SOFTABORT
  327.  
  328. ; Play current message
  329. [PlayMsgAgain]
  330. Action=Play
  331. Prompt=$PlayMsgAgain_Prompt
  332. Menu01=PlayMsgAgain
  333. Menu02=MarkOld
  334. Menu03=RemMsg
  335. Menu04=FaxBack
  336. Menu05=GetPrev
  337. Menu06=GetNext
  338. Menu14=EndOpt
  339. Menu15=EndPlay
  340. Default=EndPlay
  341. Retries=3
  342. Delay=0
  343. Button=SOFTABORT
  344.  
  345. ; Prompt user to replay message,mark old,remove,get next message,or end
  346. [EndPlay]
  347. Action=Play
  348. Prompt=$EndPlay_Prompt
  349. Menu01=PlayMsgAgain
  350. Menu02=MarkOld
  351. Menu03=RemMsg
  352. Menu04=FaxBack
  353. Menu05=GetPrev
  354. Menu06=GetNext
  355. Menu14=EndOpt
  356. Menu15=GoodBye
  357. Default=EndPlay
  358. Delay=1
  359. Button=SOFTABORT
  360. Retries=2
  361. Dialtone=Goodbye_body
  362.  
  363. ; Get next message
  364. [GetNext]
  365. Action=GetMsg
  366. Prompt=$nextmsg
  367. Default=PlayMsg
  368. EndOfList=EndNew,EndOld
  369. Button=SOFTABORT
  370.  
  371. ; tell the user that this is the end of the new msg list
  372. [EndNew]
  373. Action=play
  374. Prompt=V\ENDNEW.
  375. Menu06=CheckOldList
  376. Menu14=EndOpt
  377. Menu15=GoodBye
  378. Default=CheckOldList
  379. Delay=1
  380. Retries=1 
  381. Button=SOFTABORT
  382. Dialtone=Goodbye_body
  383.  
  384. ; Get previous message
  385. [GetPrev]
  386. Action=GetMsg
  387. Prompt=$prevmsg
  388. Default=PlayMsg
  389. Button=SOFTABORT
  390.  
  391. ; Fax back the fax message
  392. [FaxBack]
  393. Action=Faxback
  394. Prompt=$altmessage
  395. Default=FaxDone
  396. Error=EndPlay
  397. Delay=0
  398. Button=SOFTABORT
  399.  
  400. ; Notify user that fax message is queued for sending
  401. [FaxDone]
  402. Action=Play
  403. Prompt=V\FAXSEND.
  404. Menu06=FaxRead
  405. Menu14=Return
  406. Menu15=GoodBye
  407. Default=FaxRead
  408. Delay=1
  409. Button=SOFTABORT
  410. Dialtone=Goodbye_body
  411.  
  412. ; Mark fax message as read
  413. [FaxRead]
  414. Action=UpdateMsg
  415. Prompt=$markread
  416. Default=GetNext
  417. Button=SOFTABORT
  418.  
  419. ; Mark message as old
  420. [MarkOld]
  421. Action=UpdateMsg
  422. Prompt=$markread
  423. Default=PlayOld
  424. Button=SOFTABORT
  425.  
  426. ; Notify user message marked as old
  427. [PlayOld]
  428. Action=Play
  429. Prompt=V\MARKOLD.
  430. Menu05=GetPrev
  431. Menu06=GetNext
  432. Menu14=EndOpt
  433. Menu15=GoodBye
  434. Default=GetNext
  435. Retries=1
  436. Delay=0
  437. Button=SOFTABORT
  438. Dialtone=Goodbye_body
  439.  
  440. ; Remove message
  441. [RemMsg]
  442. Action=UpdateMsg
  443. Prompt=$remove
  444. Default=PlayRem
  445. Button=SOFTABORT
  446.  
  447. ; Notify user that message removed
  448. [PlayRem]
  449. Action=Play
  450. Prompt=V\REMOVED.
  451. Menu06=GetNext
  452. Menu14=EndOpt
  453. Menu15=GoodBye
  454. Default=GetNext
  455. Retries=1
  456. Delay=0
  457. Button=SOFTABORT
  458. Dialtone=Goodbye_body
  459.  
  460. ; Tell the users that this is the end of the old message list
  461. [EndOld]
  462. Action=play
  463. Prompt=V\ENDSAVED.
  464. Menu14=EndOpt
  465. Menu15=GoodBye
  466. Default=EndOpt
  467. Delay=0
  468. Retries=1
  469. Button=SOFTABORT
  470. Dialtone=Goodbye_body
  471.  
  472. [ResetSuper]
  473. Action=SetUser
  474. Prompt=
  475. Menu00=
  476. Default=Return
  477.  
  478. ; password change 1/6. Ask for the new password (limited to 8 digits)
  479. [NewPass]
  480. Prompt=$NewPass_Prompt
  481. Action=password
  482. value=9
  483. Menu00=AgainDigs
  484. Menu14=AgainDigs
  485. Menu15=AgainDigs
  486. Default=AgainDigs
  487. Delay=10
  488. Button=SOFTABORT
  489.  
  490. ; password change 2/6. Ask for it again (limited to 8 digits)
  491. [AgainDigs]
  492. Prompt=$AgainDigs_Prompt
  493. Action=capturedigits
  494. value=9
  495. Menu00=CheckPass
  496. Menu14=CheckPass
  497. Menu15=CheckPass
  498. Default=CheckPass
  499. Delay=10
  500. Button=SOFTABORT
  501.  
  502. ; password change 3/6. compare the 2
  503. [CheckPass]
  504. Action=matchdigits
  505. Prompt=$password
  506. Menu00=WritePass
  507. Default=BadPass
  508. Delay=0
  509. Button=SOFTABORT
  510.  
  511. ; password change 4/6. Notify User that password change failed
  512. [BadPass]
  513. Action=Play
  514. Prompt=V\BADPASS.
  515. Delay=3
  516. Menu15=GoodBye
  517. Default=EndOpt
  518. Button=SOFTABORT
  519.  
  520. ; password change 5/6. Update the ini file with new password
  521. [WritePass]
  522. Action=WriteIniFile
  523. Prompt=$mailbox
  524. Default=WriteDone
  525. Delay=0
  526. Button=SOFTABORT
  527.  
  528. ; password change 6/6. Play 'DONE'
  529. [WriteDone]
  530. Action=Play
  531. Prompt=V\DONE.
  532. Menu14=EndOpt
  533. Menu15=GoodBye
  534. Default=EndOpt
  535. Delay=1
  536. Button=SOFTABORT
  537.  
  538. [SOFTABORT]
  539. Prompt=
  540. Action=exit
  541. Default=
  542. Delay=0
  543.  
  544. [GOODBYE]
  545. Prompt=
  546. Action=faxsend
  547. Default=WAVE_BYE
  548. Delay=0
  549. Menu00=FODFAXBACK
  550.  
  551. [FODFAXBACK]
  552. Prompt=FAXBACK2.VMU,EITHERLINE,NORTHAMERICA
  553. Action=callmenu
  554. Default=WAVE_BYE
  555. Delay=0
  556.  
  557. [WAVE_BYE]
  558. Prompt=V\GOODBYE.
  559. Action=play
  560. Default=GOODBYE_BODY
  561. Delay=0
  562.  
  563. [GOODBYE_BODY]
  564. Prompt=
  565. Action=hangup
  566. Default=
  567. Delay=0
  568.