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

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