Problems with VoiceMailMain

Hi.
I am a begginer in asterisk.
Please excuseme for mi bad english or terms in this message.

Mi problem is the next. I put a extension for acces to voicemail.

exten => *102,1,VoiceMailMain()

When dial to this extension, the voicemail sistem attend the call, receives the MailBox and the password. If the password is bad, said wrong password, and request again the MailBox and Password, but if both are correct, no say noting and after to silence hang the call. This is the log of the CLI (intentionally, I enter a wrong password to check if the sistem read the voicemail.conf. See in the line 4).

1-- Executing VoiceMailMain(“SIP/KABC-82d0”, “”) in new stack
2-- Playing ‘vm-login’ (language ‘es’)
3-- Playing ‘vm-password’ (language ‘es’)
4-- Incorrect password ‘23’ for user ‘32’ (context = default)
5-- Playing ‘vm-incorrect-mailbox’ (language ‘es’)
6-- Playing ‘vm-password’ (language ‘es’)
7== Spawn extension (interno, *102, 1) exited non-zero on 'SIP/KABC-82d0’
8-- Executing Hangup(“SIP/KABC-82d0”, “”) in new stack
9== Spawn extension (interno, h, 1) exited non-zero on ‘SIP/KABC-82d0’

I modify the permissions of folders in /var/spool/asterisk/voicemail, to discard access problems.

Thanks for help.

Likely you have a context issue or at the least you should pass some variables in there.

try it like this

exten => *102,1,Answer()
exten => *102,2,VoiceMailMain(${CALLERDIDNUM}@default)
exten => *102,3,Hangup()

HOWEVER Replace default with the context that the extensions belong to? you could potentially do it like this

exten => *,102,2,VoiceMailMain(${CALLEDIDNUM}@${CONTEXT})

keep in mind these are just suggestions, pass the variables it will be easier.

[quote=“axlel”]Hi.
I am a begginer in asterisk.
Please excuseme for mi bad english or terms in this message.

Mi problem is the next. I put a extension for acces to voicemail.

exten => *102,1,VoiceMailMain()

When dial to this extension, the voicemail sistem attend the call, receives the MailBox and the password. If the password is bad, said wrong password, and request again the MailBox and Password, but if both are correct, no say noting and after to silence hang the call. This is the log of the CLI (intentionally, I enter a wrong password to check if the sistem read the voicemail.conf. See in the line 4).

1-- Executing VoiceMailMain(“SIP/KABC-82d0”, “”) in new stack
2-- Playing ‘vm-login’ (language ‘es’)
3-- Playing ‘vm-password’ (language ‘es’)
4-- Incorrect password ‘23’ for user ‘32’ (context = default)
5-- Playing ‘vm-incorrect-mailbox’ (language ‘es’)
6-- Playing ‘vm-password’ (language ‘es’)
7== Spawn extension (interno, *102, 1) exited non-zero on 'SIP/KABC-82d0’
8-- Executing Hangup(“SIP/KABC-82d0”, “”) in new stack
9== Spawn extension (interno, h, 1) exited non-zero on ‘SIP/KABC-82d0’

I modify the permissions of folders in /var/spool/asterisk/voicemail, to discard access problems.

Thanks for help.[/quote]

do you mean ${CALLERID(num)} ??

The problem not is specify a number of mailbox or context, my context is a default, then when writting VoiceMailMain() without arguments, the voicemail system ask the Mailbox and Password for “default” context.

I tried writing specific mailbox and context, this is a example.

exten => *102,n,VoiceMailMain(32@default)

After to execute this extension, the diference is that no ask the MailBox, but next to digit the password, the himself error happens.