home *** CD-ROM | disk | FTP | other *** search
/ NetComm Communications 5 / NetComm.iso / winfax / winfax80 / msgctr2.vm_ / msgctr2.vm
Encoding:
Text File  |  1997-05-09  |  9.6 KB  |  610 lines

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