Voicemail Security

Hi All,

I’m looking for a way to only allow voicemail access if the extension is known, i.e. Using VoicemailMain(${CALLERID(num)}@default).

If the mailbox cannot be found it should not ask for the mailbox.

I’m not sure how to start.


you can read the voicemail number with READ application . check it with Gotoif if it is in valid range or not and then pass it to VoiceMailMain .

He doesn’t need to read the voicemail number, he’s getting it from the caller-ID. Obviously one can check the caller ID against a hardcoded list of valid numbers. I’m not sufficiently familiar with the implemenatation to know whether you can test whether a voicemail box is valid from the dialplan.

This should have been asked on Asterisk Support, as it is a support question, not a discussion point.