I am aware that the voicemail application syntax has chnaged. Can you please help me with new syntax to get old behavior.
In my extensionss.conf I used to have this line.
exten => 8,1,VoiceMail
When I called into asterisk the prompt would ask for a voicemail box number, I would dial the number and then be able to leave a voicemail in that box.
Now with this same line this no longer happens. Now the mail box number is not able to be “found”.
No entry in voicemail config file for ‘1001’
With an example I found this works but not as I want.
exten => 8,1,VoiceMail(1001@cj)
But I can only leave a message in box 1001. I want to be able to provide a box from a list of 10 different boxes for the context. For example these from voicemail.conf
I want to dial 8 and have it ask me for a box number. I want to be a ble to provide a box number from the voicemail.conf file one of the three listed. I then want to leave a message in the box I dial in after prompted for it. Can this be done ?
So, the first line should ask for the voicemail box number and the second line should ship you to it. It should be noted that this configuration is waiting for 4 digit numbers at the read statement. If you need longer extensions, simply change the 4 to the correct length.
This is going to be the best solution I can think of because the channel variable will allow a dynamic range of inputs.