Upgrade 3CX to v18 and get it hosted free!

Asterisk Voicemail Dialplan

Author image

How to transfer or forward to voicemail mailboxes

Assume you have 3 digit extensions 100 – 199, then you can put something like this in the dialplan to allow users to transfer calls directly to a mailbox by dialing * followed by an extension number:


exten => _*1XX,1,Voicemail(u${EXTEN:1})
exten => _*1XX,2,Hangup

Users may also forward their phones to these extensions.

How to setup an extension for voicemail retreival

If users are calling from their own phone, and the voicemail mailbox IDs are the same as the extension numbers, this allows all users to to dial a common extension number to directly access their voicemail mailbox.


exten => 199,1,VoicemailMain(s${CALLERIDNUM})
exten => 199,2,Hangup

${CALLERIDNUM} was used in versions of Asterisk prior to 1.2.0, it was DEPRECATED in 1.2.0 and removed in 1.4. As of 1.4, ${CALLERID(num)} is now the correct variable to use to access the Caller ID number.


exten => 199,1,VoicemailMain(s${CALLERID(num)})
exten => 199,2,Hangup

Asterisk

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.