I defined 2 sip channels in sip.conf.
I simply wanted to check the voicemail for a sip
channel.
I defined the context=vmdefault in voicemail.conf.
When I try to retrieve the VM, I fail becuz Asterisk
won't vm_authenticate with context=vmdefault.
I dont know why its trying to authenticate with
context=default when I thought I made it clear to
Asterisk to check in the context vmdefault.
sip.conf:
--------------------------------
[general]
context=incoming
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
disallow=all
allow=ulaw
allow=gsm
[id_xlite]
context=incoming
type=friend
host=dynamic
secret=xlite
canreinvite=no
[EMAIL PROTECTED] ; refer to context defined in
voicemail.conf
[id_linksys]
context=incoming
type=friend
host=dynamic
secret=linksys
canreinvite=no
[EMAIL PROTECTED] ; refer to context defined in
voicemail.conf
extensions.conf:
----------------------------------------
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
[incoming]
exten => 101,1,Dial(SIP/id_xlite|30)
exten => 101,n,VoiceMail([EMAIL PROTECTED]) ; use context
defined in voicemail.conf
exten => 102,1,Dial(SIP/id_linksys|30)
exten => 102,n,VoiceMail([EMAIL PROTECTED]) ; use context
defined in voicemail.conf
exten => 222,1,Answer()
exten => 222,n,VoiceMailMain()
voicemail.conf:
------------------------------
[general]
format=wav49|gsm|wav
attach=yes
sendvoicemail=yes
[vmdefault]
101 => 111,Issa Xlite
102 => 111,Issa Linksys
Output on Asterisk CLI:
----------------------------------------------
Connected to Asterisk SVN-branch-1.4-r55954 currently
running on localhost (pid = 4561)
Verbosity is at least 6
-- Executing [EMAIL PROTECTED]:1]
Answer("SIP/id_linksys-096fe808", "") in new stack ; i
dialled 222 from my linksys phone
-- Executing [EMAIL PROTECTED]:2]
VoiceMailMain("SIP/id_linksys-096fe808", "") in new
stack ; proceeds to next priority VM menu
-- <SIP/id_linksys-096fe808> Playing 'vm-login'
(language 'en')
-- <SIP/id_linksys-096fe808> Playing 'vm-password'
(language 'en')
-- Incorrect password '111' for user '101'
(context = default) ; shouldnt asterisk be searching
at context=vmdefault ?
-- <SIP/id_linksys-096fe808> Playing
'vm-incorrect-mailbox' (language 'en')
[Feb 22 21:19:12] WARNING[10657]: app_voicemail.c:6103
vm_authenticate: Couldn't read username
Interesting note: Before I tested this, I had reload
extensions and found out that asterisk defines the
context "default", when this is NOT defined in my
extensions.conf file.
Why is comedian mail not checking with context=vmdefault??