asterisk学习笔记8--voicemail

There are two voicemail applications we can use in the dialplan (extensions.conf):

VoiceMail()
This application sends a caller to the voicemail system, where she will be asked to leave a message.
VoiceMailMain()
This application lets recipients check their voice messages and record new voicemail prompts.

VoiceMail()

Action: The caller is prompted to leave a voice message.

The VoiceMail() command is always called from the dialplan (extensions.conf). For example:

exten => 2000,2,VoiceMail(2000,u)
Syntax
VoiceMail(mailbox[@context][,u|b|s])
mailbox
This is the mailbox number. This does not have to be the same as the extension the caller dialled; nevertheless, this is a sensible practice, particularly in larger installations.
@context

Mailboxes may be implemented in a specific context. If no context is provided, the [default] context is used.

[u|b|s]
u
causes the "unavailable" message to be played. The pathname for this message is /var/lib/asterisk/sounds/vm-isunavail.gsm
b
causes the "busy" to be played. The pathname for this message is /var/lib/asterisk/sounds/vm-rec-busy.gsm.
s
suppresses playback of the "unavailable" or "busy" notifications, plays a beep, and begins recording.

If there is no mailbox configured in voicemail.conf for the given number but there is a n+101 priority, Asterisk jumps to this priority and continues executing there.

VoiceMailMain()

Action: Lets users listen to their voicemail messages and record prompts.

The VoiceMailMain() command is always called from the dialplan (extensions.conf). For example:

exten => 300,1,VoiceMailMain()
Syntax
VoiceMailMain([mailbox][@context][,s|p|g(#)])
mailbox
This is the mailbox number. If no mailbox number is provided, Asterisk prompts for it.
@context
specifies the voicemail context (in voicemail.conf) for the mailbox.
[s|p|g#]
s
Disables the password requirement.
p
The user is asked for a mailbox number. The number entered is attached as a suffix to the contents of [mailbox]; for example, if the user enters 123, [mailbox]123 is called. This lets you easily configure mailbox groups.
g(#)
Adjusts the gain (in decibels) when recording voicemail prompts.
IVR

A complete description of the voice menus for VoiceMailMain() is difficult because they depend on the installed prompts. The main functions are described below.

1 Play messages
 
3 Advanced options
 
1 Reply
2 Call back
3 Envelope
4 Outgoing call
4 Play previous message
5 Repeat the current message
6 Play the next message
7 Delete the current message
8 Forward the message to another mailbox
9 Save the message in a folder
* Help; during message playback, rewind
# Exit; during message playback, skip forward
2 Change folders
0 Mailbox options
 
1 Record your unavailable message
2 Record your busy message
3 Record your name
4 Record your temporary message
 Recording options
 
1 Accept
2 Review
3 Re-record
* Help
# Exit


[16] If you are using a pre-packaged Asterisk, the path may be different; for example, /usr/share/asterisk/sounds/.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值