home *** CD-ROM | disk | FTP | other *** search
- ;
- ; $header: $
- ;
- ; STDCTR2.VMU
- ;
- ; STDCTR2.VMU is the successor to STDCTR.VMU
- ;
- ;
- ; This routine has 2 parameters.
- ; $1 - A mailbox ID
- ; $2 - A greeting.
-
- ; Notify user to start recording now
-
- [PlayGreeting]
- Action=Play
- Prompt=$2
- Menu14=Password
- Superuser=Password
- Menu15=record
- ;Stop playing the greeting if the downline phone is picked up
- Handsetup=Goodbye_body
- ;Dialtone=Goodbye_body
- ; this will play start recording now....
- ;Default=PlayGreeting2
- ; this will skip it
- Default=record
- Delay=0
- Button=SOFTABORT
-
- [PlayGreeting2]
- Action=Play
- Prompt=V\STARTMSG.
- Menu14=Password
- Dialtone=Goodbye_body
- Handsetup=Goodbye_body
- Superuser=Password
- Default=Record
- Delay=0
- Button=SOFTABORT
-
- ; Prompt user to restart, change password, re-record spoken name, or exit
- [EndOpt]
- Action=Play
- Prompt=$STD_EndOpt_Prompt
- Menu01=StartUpCheck
- Menu06=StartUpCheck
- Menu07=NewPass
- ;;;;;; Keep the superuser mode when returning...
- ;;;;;;Menu14=ResetSuper
- Menu14=Return
- Menu15=GoodBye
- Default=EndOpt
- Retries=2
- Delay=0
- Button=SOFTABORT
- Dialtone=Goodbye_body
-
- ;
- ; Begin common with msgctr2
- ;
-
- ; assign the mailbox number
- [Startup]
- Action=boxid
- Prompt=$1
- Delay=0
- Button=SOFTABORT
- Default=checksuper
- Version=2.0
-
- ; Determine if leave msg or retrieve msg mode
- [checksuper]
- Prompt=
- Action=noaction
- Menu14=Password
- Superuser=Password
- Delay=0
- Default=PlayGreeting
-
- ; Record the message
- [Record]
- Prompt=$message
- Action=record
- Error=DiskFull
- Dialtone=Goodbye_body
- Silence=Goodbye_body
- Handsetup=Goodbye_body
- Default=EndRec
- Menu15=EndRec
- Button=SOFTABORT
- Delay=0
-
- ; Play - 'recording stopped'
- [EndRec]
- Action=Play
- Prompt=V\ENDREC.
- Menu01=Playback
- Menu02=Record
- Menu14=Return
- Menu15=GoodBye
- Dialtone=Goodbye_body
- Handsetup=Goodbye_body
- Default=UserMenu
- Retries=3
- Button=SOFTABORT
- Delay=0
-
- ; Play - 'mailbox full'
- [DiskFull]
- Action=Play
- Prompt=$DiskFull_Prompt
- Menu01=Playback
- Menu14=Return
- Menu15=GoodBye
- Default=UserMenu
- Handsetup=Goodbye_body
- Retries=3
- Delay=0
-
- ; Allow user to hear instructions for playing back the message etc.
- [UserMenu]
- Action=Play
- Prompt=V\CALLMENU.
- Menu01=Playback
- Menu02=Record
- Menu14=Return
- Menu15=GoodBye
- Default=GoodBye
- Dialtone=Goodbye_body
- Handsetup=Goodbye_body
- Button=SOFTABORT
- Retries=2
- Delay=3
-
- ; Play the message
- [Playback]
- Action=Play
- Prompt=$message
- Menu14=Return
- Menu15=UserMenu
- Handsetup=Goodbye_body
- Default=UserMenu
- Button=SOFTABORT
- Delay=0
-
- ;
- ; Begin common with annctr2
- ;
-
- ; Save message & exit
- [Return]
- Action=SetUser
- Menu00=
- Prompt=Reseting user privilege
- Default=MainMenu
-
- [MainMenu]
- Action=ReturnMenu
- Menu00=
- Prompt=Save
- Default=
-
- ; Request user to enter password (limited to 8 digits)
- [Password]
- Prompt=V\PASSWRDQ.
- Action=capturedigits
- value=9
- Menu00=MatchSpecial
- Menu15=MatchSpecial
- Default=Goodbye
- Retries=3
- ; Set Retries in MatchDigs
- Button=SOFTABORT
- Delay=10
-
- ; Data discrimination
- [MatchSpecial]
- Action=matchdigits
- Prompt=9*
- Menu00=datadisc
- ;Retry disabled in this menu
- Retries=0
- Error=GoodBye
- Default=ChkFaxMode
- Delay=0
- ;
-
- ; Go to Fax mode
- [ChkFaxMode]
- Action=matchdigits
- Prompt=8*
- Menu00=Faxmode
- ;Retry disabled in this menu
- Retries=0
- Error=return
- Default=MatchDigs
- Delay=0
- ;
-
- [FaxMode]
- Action=Faxmode
- Prompt=
- Default=
- Delay=0
-
- [DataDisc]
- Action=datarecv
- Prompt=
- Menu00=
- Error=
- Default=
- ;
-
- [MatchDigs]
- Action=matchdigits
- Prompt=$password
- Menu00=setsuper
- ;Retries used in this menu to set limit on
- ;number of times MatchDig can be called
- retries=3
- Error=GoodBye
- Default=Password
- Delay=0
-
- ;
- [setsuper]
- Action=setsuperuser
- Prompt=
- Default=EndOpt
-
- ; Check for new messages
- [StartupCheck]
- Action=SetList
- Prompt=$newlist
- EmptyList=NoNew
- Default=NewInfo
- Retries=0
- Delay=0
-
- ; Notify user no new messages
- [NoNew]
- Action=Play
- Prompt=V\NONEWMSG.
- Menu14=EndOpt
- Menu15=GoodBye
- Default=CheckOldList
- Retries=1
- Delay=0
- Button=SOFTABORT
- Dialtone=Goodbye_body
-
- ; Check for old messages
- [CheckOldList]
- Action=SetList
- Prompt=$OldList
- EmptyList=NoOld
- Default=OldInfo
- Retries=0
- Delay=0
- Button=SOFTABORT
-
- ; Notify user no old messages
- [NoOld]
- Action=Play
- Prompt=V\NOOLDMSG.
- Menu14=EndOpt
- Menu15=GoodBye
- Default=EndOpt
- Retries=2
- Delay=0
- Button=SOFTABORT
- Dialtone=Goodbye_body
-
- ; Notify user count of new voice and fax messages
- [NewInfo]
- Action=Play
- Prompt=$NewInfo_Prompt
- Menu01=GetFirst
- Menu06=GetFirst
- Menu14=EndOpt
- Menu15=GoodBye
- Default=GetFirst
- Retries=1
- Delay=0
- Button=SOFTABORT
- Dialtone=Goodbye_body
-
- ; Notify user count of old voice and fax messages
- [OldInfo]
- Action=Play
- Prompt=$OldInfo_Prompt
- Menu01=GetFirst
- Menu06=GetFirst
- Menu14=EndOpt
- Menu15=GoodBye
- Default=GetFirst
- Retries=1
- Delay=0
- Button=SOFTABORT
- Dialtone=Goodbye_body
-
- ; Get first message
- [GetFirst]
- Action=GetMsg
- Prompt=$firstmsg
- Default=PlayMsg
- Retries=0
- Delay=0
- Button=SOFTABORT
-
- ; Play current message
- [PlayMsg]
- Action=Play
- Prompt=$PlayMsg_Prompt
- Menu01=PlayMsgAgain
- Menu02=MarkOld
- Menu03=RemMsg
- Menu04=FaxBack
- Menu05=GetPrev
- Menu06=GetNext
- Menu14=EndOpt
- Menu15=EndPlay
- Default=EndPlay
- Retries=3
- Delay=0
- Button=SOFTABORT
-
- ; Play current message
- [PlayMsgAgain]
- Action=Play
- Prompt=$PlayMsgAgain_Prompt
- Menu01=PlayMsgAgain
- Menu02=MarkOld
- Menu03=RemMsg
- Menu04=FaxBack
- Menu05=GetPrev
- Menu06=GetNext
- Menu14=EndOpt
- Menu15=EndPlay
- Default=EndPlay
- Retries=3
- Delay=0
- Button=SOFTABORT
-
- ; Prompt user to replay message,mark old,remove,get next message,or end
- [EndPlay]
- Action=Play
- Prompt=$EndPlay_Prompt
- Menu01=PlayMsgAgain
- Menu02=MarkOld
- Menu03=RemMsg
- Menu04=FaxBack
- Menu05=GetPrev
- Menu06=GetNext
- Menu14=EndOpt
- Menu15=GoodBye
- Default=EndPlay
- Delay=1
- Button=SOFTABORT
- Retries=2
- Dialtone=Goodbye_body
-
- ; Get next message
- [GetNext]
- Action=GetMsg
- Prompt=$nextmsg
- Default=PlayMsg
- EndOfList=EndNew,EndOld
- Button=SOFTABORT
-
- ; tell the user that this is the end of the new msg list
- [EndNew]
- Action=play
- Prompt=V\ENDNEW.
- Menu06=CheckOldList
- Menu14=EndOpt
- Menu15=GoodBye
- Default=CheckOldList
- Delay=1
- Retries=1
- Button=SOFTABORT
- Dialtone=Goodbye_body
-
- ; Get previous message
- [GetPrev]
- Action=GetMsg
- Prompt=$prevmsg
- Default=PlayMsg
- Button=SOFTABORT
-
- ; Fax back the fax message
- [FaxBack]
- Action=Faxback
- Prompt=$altmessage
- Default=FaxDone
- Error=EndPlay
- Delay=0
- Button=SOFTABORT
-
- ; Notify user that fax message is queued for sending
- [FaxDone]
- Action=Play
- Prompt=V\FAXSEND.
- Menu06=FaxRead
- Menu14=Return
- Menu15=GoodBye
- Default=FaxRead
- Delay=1
- Button=SOFTABORT
- Dialtone=Goodbye_body
-
- ; Mark fax message as read
- [FaxRead]
- Action=UpdateMsg
- Prompt=$markread
- Default=GetNext
- Button=SOFTABORT
-
- ; Mark message as old
- [MarkOld]
- Action=UpdateMsg
- Prompt=$markread
- Default=PlayOld
- Button=SOFTABORT
-
- ; Notify user message marked as old
- [PlayOld]
- Action=Play
- Prompt=V\MARKOLD.
- Menu05=GetPrev
- Menu06=GetNext
- Menu14=EndOpt
- Menu15=GoodBye
- Default=GetNext
- Retries=1
- Delay=0
- Button=SOFTABORT
- Dialtone=Goodbye_body
-
- ; Remove message
- [RemMsg]
- Action=UpdateMsg
- Prompt=$remove
- Default=PlayRem
- Button=SOFTABORT
-
- ; Notify user that message removed
- [PlayRem]
- Action=Play
- Prompt=V\REMOVED.
- Menu06=GetNext
- Menu14=EndOpt
- Menu15=GoodBye
- Default=GetNext
- Retries=1
- Delay=0
- Button=SOFTABORT
- Dialtone=Goodbye_body
-
- ; Tell the users that this is the end of the old message list
- [EndOld]
- Action=play
- Prompt=V\ENDSAVED.
- Menu14=EndOpt
- Menu15=GoodBye
- Default=EndOpt
- Delay=0
- Retries=1
- Button=SOFTABORT
- Dialtone=Goodbye_body
-
- [ResetSuper]
- Action=SetUser
- Prompt=
- Menu00=
- Default=Return
-
- ; password change 1/6. Ask for the new password (limited to 8 digits)
- [NewPass]
- Prompt=$NewPass_Prompt
- Action=password
- value=9
- Menu00=AgainDigs
- Menu14=AgainDigs
- Menu15=AgainDigs
- Default=AgainDigs
- Delay=10
- Button=SOFTABORT
-
- ; password change 2/6. Ask for it again (limited to 8 digits)
- [AgainDigs]
- Prompt=$AgainDigs_Prompt
- Action=capturedigits
- value=9
- Menu00=CheckPass
- Menu14=CheckPass
- Menu15=CheckPass
- Default=CheckPass
- Delay=10
- Button=SOFTABORT
-
- ; password change 3/6. compare the 2
- [CheckPass]
- Action=matchdigits
- Prompt=$password
- Menu00=WritePass
- Default=BadPass
- Delay=0
- Button=SOFTABORT
-
- ; password change 4/6. Notify User that password change failed
- [BadPass]
- Action=Play
- Prompt=V\BADPASS.
- Delay=3
- Menu15=GoodBye
- Default=EndOpt
- Button=SOFTABORT
-
- ; password change 5/6. Update the ini file with new password
- [WritePass]
- Action=WriteIniFile
- Prompt=$mailbox
- Default=WriteDone
- Delay=0
- Button=SOFTABORT
-
- ; password change 6/6. Play 'DONE'
- [WriteDone]
- Action=Play
- Prompt=V\DONE.
- Menu14=EndOpt
- Menu15=GoodBye
- Default=EndOpt
- Delay=1
- Button=SOFTABORT
-
- [SOFTABORT]
- Prompt=
- Action=exit
- Default=
- Delay=0
-
- [GOODBYE]
- Prompt=
- Action=faxsend
- Default=WAVE_BYE
- Delay=0
- Menu00=FODFAXBACK
-
- [FODFAXBACK]
- Prompt=FAXBACK2.VMU,EITHERLINE,NORTHAMERICA
- Action=callmenu
- Default=WAVE_BYE
- Delay=0
-
- [WAVE_BYE]
- Prompt=V\GOODBYE.
- Action=play
- Default=GOODBYE_BODY
- Delay=0
-
- [GOODBYE_BODY]
- Prompt=
- Action=hangup
- Default=
- Delay=0
-