Asterisk Voicemail Dialplan

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



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



Created by: jht2, Last modification: Thu 13 of Jan, 2011 (00:00 UTC) by advorak
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+