VoiceMail(mailboxs[,options])
Dialplan Builder
-- build your VoiceMail() command
mailbox[@context], comma-separated for multiple
Play the `unavailable` greeting.
Play the `busy` greeting to the calling party.
Skip the playback of instructions for leaving a message to the calling party.
Skip the playback of instructions for leaving a message to the calling party, but only if a greeting has been recorded by the mailbox user.
Play greetings as early media -- only answer the channel just before accepting the voice message.
Mark message as `URGENT`.
Mark message as `PRIORITY`.
Accept digits for a new extension in context *c*, if played during the greeting. Context defaults to the current context.
Use the specified amount of gain when recording the voicemail message. The units are whole-number decibels (dB). Only works on supported technologies, which is DAHDI only.
Play a custom beep tone to the caller instead of the default one. If this option is used but no file is specified, the beep is suppressed.
Full arguments reference
mailboxsrequiredmailbox1requiredmailboxrequiredcontext
mailbox2(multiple)mailboxrequiredcontext
optionsb- Play thebusygreeting to the calling party.d- Accept digits for a new extension in context c, if played during the greeting. Context defaults to the current context.c
e- Play greetings as early media -- only answer the channel just before accepting the voice message.g- Use the specified amount of gain when recording the voicemail message. The units are whole-number decibels (dB). Only works on supported technologies, which is DAHDI only.#required
s- Skip the playback of instructions for leaving a message to the calling party.S- Skip the playback of instructions for leaving a message to the calling party, but only if a greeting has been recorded by the mailbox user.t- Play a custom beep tone to the caller instead of the default one. If this option is used but no file is specified, the beep is suppressed.x
u- Play theunavailablegreeting.U- Mark message asURGENT.P- Mark message asPRIORITY.
Description
This application allows the calling party to leave a message for the specified list of mailboxes. When multiple mailboxes are specified, the greeting will be taken from the first mailbox specified. Dialplan execution will stop if the specified mailbox does not exist.
The Voicemail application will exit if any of the following DTMF digits are received:
0- Jump to theoextension in the current dialplan context.*- Jump to theaextension in the current dialplan context.
This application will set the following channel variable upon completion:
- VMSTATUS - This indicates the status of the execution of the VoiceMail application.
SUCCESSUSEREXITFAILED
Arguments
mailboxsrequiredmailbox1requiredmailboxrequiredcontext
mailbox2(multiple)mailboxrequiredcontext
optionsb- Play thebusygreeting to the calling party.d- Accept digits for a new extension in context c, if played during the greeting. Context defaults to the current context.c
e- Play greetings as early media -- only answer the channel just before accepting the voice message.g- Use the specified amount of gain when recording the voicemail message. The units are whole-number decibels (dB). Only works on supported technologies, which is DAHDI only.#required
s- Skip the playback of instructions for leaving a message to the calling party.S- Skip the playback of instructions for leaving a message to the calling party, but only if a greeting has been recorded by the mailbox user.t- Play a custom beep tone to the caller instead of the default one. If this option is used but no file is specified, the beep is suppressed.x
u- Play theunavailablegreeting.U- Mark message asURGENT.P- Mark message asPRIORITY.
User Notes
Know a tip or gotcha for this topic? Share it below and help others.
Contribute a note
Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.
Related
Applications
MusicOnHold()
ADSIProg()
AELSub()
AGI()
AMD()
AddQueueMember()
AgentLogin()
AgentRequest()
AlarmReceiver()
Answer()
AttendedTransfer()
AudioSocket()
Authenticate()
Background()
BackgroundDetect()
BlindTransfer()
Bridge()
BridgeAdd()
BridgeWait()
Broadcast()
Busy()
CELGenUserEvent()
CallCompletionCancel()
CallCompletionRequest()
ChanIsAvail()
ChanSpy()
ChangeMonitor()
ChannelRedirect()
ClearHash()
ConfBridge()
ConfKick()
Congestion()
ContinueWhile()
ControlPlayback()
DAHDIAcceptR2Call()
DAHDIRAS()
DAHDIScan()
DAHDISendCallreroutingFacility()
DAHDISendKeypadFacility()
DBdeltree()
DISA()
DateTime()
DeadAGI()
Dial()
Dictate()
Directory()
DumpChan()
EAGI()
Echo()
Else()
ElseIf()
EndIf()
EndWhile()
Exec()
ExecIf()
ExecIfTime()
ExitIf()
ExitWhile()
ExtenSpy()
ExternalIVR()
Festival()
Flash()
FollowMe()
ForkCDR()
GetCPEID()
Gosub()
GosubIf()
Goto()
GotoIf()
GotoIfTime()
Hangup()
HangupCauseClear()
IAX2Provision()
ICES()
IVRDemo()
If()
ImportVar()
Incomplete()
JACK()
JabberJoin()
JabberLeave()
JabberSend()
JabberSendGroup()
JabberStatus()
Log()
MP3Player()
MSet()
Macro()
MacroExclusive()
MacroExit()
MacroIf()
MailboxExists()
MeetMe()
MeetMeAdmin()
MeetMeChannelAdmin()
MeetMeCount()
MessageSend()
Milliwatt()
MinivmAccMess()
MinivmDelete()
MinivmGreet()
MinivmMWI()
MinivmNotify()
MinivmRecord()
MixMonitor()
Monitor()
Morsecode()
NBScat()
NoCDR()
NoOp()
ODBCFinish()
ODBC_Commit()
ODBC_Rollback()
OSPAuth()
OSPFinish()
OSPLookup()
OSPNext()
Originate()
PJSIPHangup()
PJSIPNotify()
Page()
Park()
ParkAndAnnounce()
ParkedCall()
PauseMonitor()
PauseQueueMember()
Pickup()
PickupChan()
PlayTones()
Playback()
PrivacyManager()
Proceeding()
Progress()
Queue()
QueueLog()
QueueUpdate()
RaiseException()
Read()
ReadExten()
ReceiveFAX()
ReceiveMF()
ReceiveSF()
ReceiveText()
Record()
Reload()
RemoveQueueMember()
ResetCDR()
RetryDial()
Return()
Ringing()
SIPAddHeader()
SIPDtmfMode()
SIPRemoveHeader()
SIPSendCustomINFO()
SLAStation()
SLATrunk()
SMS()
SayAlpha()
SayAlphaCase()
SayCountedAdj()
SayCountedNoun()
SayDigits()
SayMoney()
SayNumber()
SayOrdinal()
SayPhonetic()
SayUnixTime()
SendDTMF()
SendFAX()
SendImage()
SendMF()
SendSF()
SendText()
SendURL()
Set()
SetAMAFlags()
Signal()
SkelGuessNumber()
SoftHangup()
SpeechActivateGrammar()
SpeechBackground()
SpeechCreate()
SpeechDeactivateGrammar()
SpeechDestroy()
SpeechLoadGrammar()
SpeechProcessingSound()
SpeechStart()
SpeechUnloadGrammar()
StackPop()
StartMusicOnHold()
Stasis()
StatsD()
StopMixMonitor()
StopMonitor()
StopMusicOnHold()
StopPlayTones()
StoreDTMF()
StreamEcho()
System()
TestClient()
TestServer()
ToneScan()
Transfer()
TryExec()
TrySystem()
UnpauseMonitor()
UnpauseQueueMember()
UserEvent()
VMAuthenticate()
VMSayName()
Verbose()
VoiceMail()
VoiceMailMain()
VoiceMailPlayMsg()
Wait()
WaitDigit()
WaitExten()
WaitForCondition()
WaitForNoise()
WaitForRing()
WaitForSignal()
WaitForSilence()
WaitForTone()
WaitUntil()
While()
Zapateller()