Voicemail Question


#1

I just started to mess with Asterisk, and I’m having a little trouble getting the voicemail to work. I can leave voicemails, it’s playing them back that I’m having an issue with. When I dial the extenion I setup for VoicemailMain, it asks for a mailbox number, and password. Here is part of the config file:

<extensions.conf>
exten => 4261,1,VoicemailMain(s${CALLERIDNUM})
exten => 4261,2,Hangup
</extensions.conf>

I’m confused aobut the CALLERIDNUM part, I searched the forums here, and that’s what someone added to their extensions.conf to fix the problem, but I don’t think CALLERIDNUM is defined anywhere in my setup, and I’m not sure where I would define it.


#2

CALLERIDNUM is a system variable and automagically set by Asterisk for each new call object. Do a NoOp(${CALLERIDNUM}) before the voicemail command. Also, if you could post the output from a verbose CLI we may be able to more easily see what is amiss.


#3

[quote]*CLI> – Executing VoiceMailMain(“SIP/sipura2-b657”, “ssipura2”) in new stack
– Playing ‘vm-login’ (language ‘en’)
– Playing ‘vm-password’ (language ‘en’)
– Incorrect password ‘’ for user ‘sipura2’ (context = default)
– Playing ‘vm-incorrect-mailbox’ (language ‘en’)
– Playing ‘vm-password’ (language ‘en’)
[/quote]

I want to bypass having to login with a mailbox number, and password, and if it’s not possible to bypass those, where do I define each users mailbox number, and password?


#4

/etc/asterisk/voicemail.conf is where you configure this.


#5

I figured that much, but what in there would I need to edit? I’ve looked through it, and I havn’t found anything that seems like it would apply to that.