# Voicemail context

**URL:** <https://community.asterisk.org/t/voicemail-context/15422>\
**Category:** Asterisk Support\
**Created:** [July 5, 2007, 7:57am UTC](https://community.asterisk.org/t/voicemail-context/15422 "2007-07-05T07:57:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![macius\_13](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@macius\_13](https://community.asterisk.org/u/macius_13)\
**Post date:** [July 5, 2007, 7:57am UTC](https://community.asterisk.org/t/voicemail-context/15422/1 "2007-07-05T07:57:15Z")

</div>

Hi Everybody,  
Im using asterisk as a voicemail system.I store all the info about sipusers and voicemail users in mysql database. I would like to reach mailboxes of users from different numbering plans (number of digits) using different dialplan contexts in extensions.conf, for example:  
[3digit]

exten =\> \_1XXX,1,Ringing  
exten =\> \_1XXX,2,Answer( )  
exten =\> \_1XXX,3,Voicemail(u${EXTEN:1})  
exten =\> \_1XXX,4,Hangup

[4digit]

exten =\> \_1XXXX,1,Ringing  
exten =\> \_1XXXX,2,Answer( )  
exten =\> \_1XXXX,3,Voicemail(u${EXTEN:1})  
exten =\> \_1XXXX,4,Hangup

Is it possible at all to direct call to a context this way based on called users (XXX or XXXX in this case) + 1 digit ?  
I’ve tried different configurations, and I can only reach default context.  
In other cases i get “Address incomplete”.

What is the best way to achieve that?

Best Regards,
