Problem with Voiicemail and context


#1

Hi everybody,
I’m trying to configure my extensions and voicemail on Asterisk 1.2.7.1 and I have a little problem that I’m trying to solve without succes.

When i call my voicemail in the file extension.conf, Asterisk don’t find the entry :

*CLI> -- Executing Set("SIP/372-0e78", "langue=fr") in new stack -- Executing Set("SIP/372-0e78", "LANGUAGE()=fr") in new stack -- Executing Goto("SIP/372-0e78", "occupe|371|1") in new stack -- Goto (occupe,371,1) -- Executing VoiceMail("SIP/372-0e78", "b371") in new stack Jun 7 10:55:43 WARNING[1604]: app_voicemail.c:2411 leave_voicemail: No entry in voicemail config file for '371'

Extension.conf

[sip]
exten => 997,1,Set(langue=${DB(voicemail/users/${RDNIS})})
exten => 997,2,Set(LANGUAGE()=${langue})
exten => 997,3,Goto(occupe,${RDNIS},1)

exten => 998,1,Set(langue=${DB(voicemail/users/${RDNIS})})
exten => 998,2,Set(LANGUAGE()=${langue})
exten => 998,3,Goto(absent,${RDNIS},1)

exten => 999,1,VoicemailMain()
exten => 999,2,Hangup()

[occupe]
exten => _.,1,Voicemail(b${EXTEN})
;exten => _.,1,Voicemail(bSIP/${EXTEN})
exten => _.,2,Hangup()

[absent]
exten => _.,1,Voicemail(u${EXTEN})
exten => _.,2,Hangup()

voicemail.conf

[sip]
371 => 371,Jesus Christ,info@topchretien.com

I think the prob is that the context is not knowed in the voicemail.conf because when I coment the first line (;[sip]) it works.
Please someone could help me ? Thank you


#2

i thik all You need is… read
voip-info.org/wiki/index.php … cemailmain
VoicemailMain syntax