Dial pattern question

Hello all !

I would like to know the dial pattern for this : first 4 digits (0-9) and then a “*”.

For example : 2100*

I tried this :

exten => _XXXX[*]X,1,VoiceMailMain(${EXTEN:0:4}@default,s)

But unforturantly it doesn’t work, meaning that XXXX[]X is not catching 2100

Thanks a lot for any feedback !

Regards,
Fabianus

Probably _XXXX*!
Or _XXXX[*]!

Hi

exten => _XXXX[*]X,1,VoiceMailMain(${EXTEN:0:4}@default,s)

wouldnt cat 2100* but it would catch 2100*1

to catch 2100* you need

exten => _XXXX[*],1,VoiceMailMain(${EXTEN:0:4}@default,s)