home *** CD-ROM | disk | FTP | other *** search
/ NetComm Communications 5 / NetComm.iso / winfax / winfax80 / stdctr2.vm_ / stdctr2.vm
Encoding:
Text File  |  1997-07-16  |  9.1 KB  |  571 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. ; Do not allow message to be deleted during playback in case tones are embedded in msg. 
  313. ;  
  314. [PlayMsg]
  315. Action=Play
  316. Prompt=$PlayMsg_Prompt
  317. Menu01=PlayMsgAgain
  318. Menu02=MarkOld
  319. ; Menu03=RemMsg
  320. Menu04=FaxBack
  321. Menu05=GetPrev
  322. Menu06=GetNext
  323. Menu14=EndOpt
  324. Menu15=EndPlay
  325. Default=EndPlay
  326. Retries=3
  327. Delay=0
  328. Button=SOFTABORT
  329.  
  330. ; Play current message
  331. [PlayMsgAgain]
  332. Action=Play
  333. Prompt=$PlayMsgAgain_Prompt
  334. Menu01=PlayMsgAgain
  335. Menu02=MarkOld
  336. Menu03=RemMsg
  337. Menu04=FaxBack
  338. Menu05=GetPrev
  339. Menu06=GetNext
  340. Menu14=EndOpt
  341. Menu15=EndPlay
  342. Default=EndPlay
  343. Retries=3
  344. Delay=0
  345. Button=SOFTABORT
  346.  
  347. ; Prompt user to replay message,mark old,remove,get next message,or end
  348. [EndPlay]
  349. Action=Play
  350. Prompt=$EndPlay_Prompt
  351. Menu01=PlayMsgAgain
  352. Menu02=MarkOld
  353. Menu03=RemMsg
  354. Menu04=FaxBack
  355. Menu05=GetPrev
  356. Menu06=GetNext
  357. Menu14=EndOpt
  358. Menu15=GoodBye
  359. Default=EndPlay
  360. Delay=1
  361. Button=SOFTABORT
  362. Retries=2
  363. Dialtone=Goodbye_body
  364.  
  365. ; Get next message
  366. [GetNext]
  367. Action=GetMsg
  368. Prompt=$nextmsg
  369. Default=PlayMsg
  370. EndOfList=EndNew,EndOld
  371. Button=SOFTABORT
  372.  
  373. ; tell the user that this is the end of the new msg list
  374. [EndNew]
  375. Action=play
  376. Prompt=V\ENDNEW.
  377. Menu06=CheckOldList
  378. Menu14=EndOpt
  379. Menu15=GoodBye
  380. Default=CheckOldList
  381. Delay=1
  382. Retries=1 
  383. Button=SOFTABORT
  384. Dialtone=Goodbye_body
  385.  
  386. ; Get previous message
  387. [GetPrev]
  388. Action=GetMsg
  389. Prompt=$prevmsg
  390. Default=PlayMsg
  391. Button=SOFTABORT
  392.  
  393. ; Fax back the fax message
  394. [FaxBack]
  395. Action=Faxback
  396. Prompt=$altmessage
  397. Default=FaxDone
  398. Error=EndPlay
  399. Delay=0
  400. Button=SOFTABORT
  401.  
  402. ; Notify user that fax message is queued for sending
  403. [FaxDone]
  404. Action=Play
  405. Prompt=V\FAXSEND.
  406. Menu06=FaxRead
  407. Menu14=Return
  408. Menu15=GoodBye
  409. Default=FaxRead
  410. Delay=1
  411. Button=SOFTABORT
  412. Dialtone=Goodbye_body
  413.  
  414. ; Mark fax message as read
  415. [FaxRead]
  416. Action=UpdateMsg
  417. Prompt=$markread
  418. Default=GetNext
  419. Button=SOFTABORT
  420.  
  421. ; Mark message as old
  422. [MarkOld]
  423. Action=UpdateMsg
  424. Prompt=$markread
  425. Default=PlayOld
  426. Button=SOFTABORT
  427.  
  428. ; Notify user message marked as old
  429. [PlayOld]
  430. Action=Play
  431. Prompt=V\MARKOLD.
  432. Menu05=GetPrev
  433. Menu06=GetNext
  434. Menu14=EndOpt
  435. Menu15=GoodBye
  436. Default=GetNext
  437. Retries=1
  438. Delay=0
  439. Button=SOFTABORT
  440. Dialtone=Goodbye_body
  441.  
  442. ; Remove message
  443. [RemMsg]
  444. Action=UpdateMsg
  445. Prompt=$remove
  446. Default=PlayRem
  447. Button=SOFTABORT
  448.  
  449. ; Notify user that message removed
  450. [PlayRem]
  451. Action=Play
  452. Prompt=V\REMOVED.
  453. Menu06=GetNext
  454. Menu14=EndOpt
  455. Menu15=GoodBye
  456. Default=GetNext
  457. Retries=1
  458. Delay=0
  459. Button=SOFTABORT
  460. Dialtone=Goodbye_body
  461.  
  462. ; Tell the users that this is the end of the old message list
  463. [EndOld]
  464. Action=play
  465. Prompt=V\ENDSAVED.
  466. Menu14=EndOpt
  467. Menu15=GoodBye
  468. Default=EndOpt
  469. Delay=0
  470. Retries=1
  471. Button=SOFTABORT
  472. Dialtone=Goodbye_body
  473.  
  474. [ResetSuper]
  475. Action=SetUser
  476. Prompt=
  477. Menu00=
  478. Default=Return
  479.  
  480. ; password change 1/6. Ask for the new password (limited to 8 digits)
  481. [NewPass]
  482. Prompt=$NewPass_Prompt
  483. Action=password
  484. value=9
  485. Menu00=AgainDigs
  486. Menu14=AgainDigs
  487. Menu15=AgainDigs
  488. Default=AgainDigs
  489. Delay=10
  490. Button=SOFTABORT
  491.  
  492. ; password change 2/6. Ask for it again (limited to 8 digits)
  493. [AgainDigs]
  494. Prompt=$AgainDigs_Prompt
  495. Action=capturedigits
  496. value=9
  497. Menu00=CheckPass
  498. Menu14=CheckPass
  499. Menu15=CheckPass
  500. Default=CheckPass
  501. Delay=10
  502. Button=SOFTABORT
  503.  
  504. ; password change 3/6. compare the 2
  505. [CheckPass]
  506. Action=matchdigits
  507. Prompt=$password
  508. Menu00=WritePass
  509. Default=BadPass
  510. Delay=0
  511. Button=SOFTABORT
  512.  
  513. ; password change 4/6. Notify User that password change failed
  514. [BadPass]
  515. Action=Play
  516. Prompt=V\BADPASS.
  517. Delay=3
  518. Menu15=GoodBye
  519. Default=EndOpt
  520. Button=SOFTABORT
  521.  
  522. ; password change 5/6. Update the ini file with new password
  523. [WritePass]
  524. Action=WriteIniFile
  525. Prompt=$mailbox
  526. Default=WriteDone
  527. Delay=0
  528. Button=SOFTABORT
  529.  
  530. ; password change 6/6. Play 'DONE'
  531. [WriteDone]
  532. Action=Play
  533. Prompt=V\DONE.
  534. Menu14=EndOpt
  535. Menu15=GoodBye
  536. Default=EndOpt
  537. Delay=1
  538. Button=SOFTABORT
  539.  
  540. [SOFTABORT]
  541. Prompt=
  542. Action=exit
  543. Default=
  544. Delay=0
  545.  
  546. [GOODBYE]
  547. Prompt=
  548. Action=faxsend
  549. Default=WAVE_BYE
  550. Delay=0
  551. Menu00=FODFAXBACK
  552.  
  553. [FODFAXBACK]
  554. Prompt=FAXBACK2.VMU,EITHERLINE,NORTHAMERICA
  555. Action=callmenu
  556. Default=WAVE_BYE
  557. Delay=0
  558.  
  559. [WAVE_BYE]
  560. Prompt=V\GOODBYE.
  561. Action=play
  562. Default=GOODBYE_BODY
  563. Delay=0
  564.  
  565. [GOODBYE_BODY]
  566. Prompt=
  567. Action=hangup
  568. Default=
  569. Delay=0
  570.