planetWayne Site Admin
Joined: 30 Jan 2003 Posts: 280
|
Posted: Sun Sep 19, 2004 7:26 pm Post subject: Voice Mail Selection menu |
|
|
Remember this is mainly aimed at a small house set up and you can see where I'm coming from.
Although each phone has its own personal voice mail (a standard Asterisk feature) we also have a mailbox for the 'house' - more like an answering machine type thing realy.
The Cisco phones have a 'messages' key, which can be assigned to dial a number. So, as we now have two voice mail boxes to get to, we need a little menu to select where to go. This is where the menu comes into play.
Again another menu generated from Rhetorical.com
Quote: | Voice mail selection,
Press 1 for general,
Press 2 for personal,
3 for the voice mail system,
4 to leave a message,
or # to exit. | (# in this case pronounced 'hash' not 'pound'!)
As you can see from that there are 2 other options.
3 for the voice mail system direct, meaning you get asked for your mailbox and password and
4 to leave a message in another mailbox.
Again a bit for the globals
Code: | [globals]
FamilyMailBox=150
VoiceMailExt=510
|
FamilyMailBox is the number of the mailbox set up and used as the houses 'answering machine'
VoiceMailExt is the number that you dial to get to the menu (and is programmed in the Cisco's config as the number dialed when you press the messages button)
This bit goes in the context where your phones are - so you can dial the menu.
Code: | exten => ${VoiceMailExt},1,goto(voicemailselect,s,1) |
And this is the menu system itself.
Code: | ; This ones to give you a selection when going into the voicemail system from the phone.
; other than the quit '#' or timeouts - each section gets you back into our voicemail selection menu again.
[voicemailselect]
; play the intro
exten => s,1,Answer
exten => s,2,wait(0.5)
exten => s,3,background(aa-VoiceMailSelect)
; if you press '1' then goto the shared mailbox
exten => 1,1,wait(0.5)
exten => 1,2,Voicemailmain(s${FamilyMailBox})
exten => 1,3,goto(s,1)
; press '2' for your 'personal' or phone mailbox
exten => 2,1,wait(0.5)
exten => 2,2,Voicemailmain(s${CALLERIDNUM})
exten => 2,3,goto(s,1)
; press '3' to get to the main voicemail system - lets you pick the mailbox you want to get to.
exten => 3,1,wait(0.5)
exten => 3,2,Voicemailmain()
exten => 3,3,goto(s,1)
; press '4' to leave a message in a voicemail box
exten => 4,1,wait(0.5)
exten => 4,2,voicemail()
exten => 4,3,goto(s,1)
; press '#' to quit
exten => #,1,goto(t,1)
; or if you 'time out' then quit and hangup.
exten => t,1,playback(goodbye)
exten => t,2,Hangup
|
aa-VoiceMailSelect is the name of the file that we created with Rhetorical
This menu will keep repeating untill you either time out (dont press anything) or press # to exit. |
|