Hi,
I’ve some trouble configuring the voicemail system. I have one user who has three SIP extensions (10,11 and 12) and only one VM box (10). The user has recorded his own greeting messages, which I can see in the file system for voicemail user 10 (spool/voicemail/default/10/). In addition to that, we have german and english voice prompts installed, but the language in the sip.conf is set to “de” for all three extensions. To route calls for any of his calls to his VM I use:
[code][phones]
exten => 10,1,Macro(normal|SIP/10|10)
exten => 11,1,Macro(normal|SIP/11|10)
exten => 12,1,Macro(normal|SIP/12|10)
[macro-normal];
exten => s,1,Set(CDR(ToNumber)=${ARG1})
exten => s,n,Set(CDR(FromNumber)=${CALLERID(num)})
exten => s,n,Dial(${ARG1},20)
exten => s,n,Wait(2)
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,VoiceMail(${ARG2})
exten => s-CHANUNAVAIL,1,VoiceMail(${ARG2},u)
exten => s-BUSY,1,VoiceMail(${ARG2},b)
exten => s-ANSWER,1,Hangup()
exten => _s-.,1,Goto(s-NOANSWER,1)
[/code]
For calls from PSTN I use:
[inboundcalls]
include => phones
exten => MSN,1,Set(CALLERID(num)=0${CALLERID(num)})
exten => MSN,2,Macro(normal|SIP/10&SIP/11&SIP/12|10)
[code] —voicemail.conf (stripped)—
[zonemessages]
eugermany = Europe/Berlin|‘vm-received’ Q ‘digits/at’ kM
[default]
10 => 10,John Doe,john.doe@nocomp.org,|tz=eugermany|attach=yes
[/code]
[code] —sip.conf (stripped)—
[10]
type = friend
context = phones
secret = **********
host = dynamic
mailbox = 10
dtmfmode = rfc2833
callerid = “John Doe 1” <10>
language = de
[11]
type = friend
context = phones
secret = **********
host = dynamic
mailbox = 10
dtmfmode = rfc2833
callerid = "callerid = “John Doe 2” <10>
language = de
[12]
type = friend
context = phones
secret = **********
host = dynamic
mailbox = 10
dtmfmode = rfc2833
callerid = “John Doe 3” <10>
language = de
[/code]
This is what happens:
- if someone dials the MSN from PSTN he get’s the english standard prompt, and the logging on the console shows “playing vm intro (language ‘’)”.
- if I dial 10 from the phone “10”, the phone rings and then I get the german default voice prompt and the log shows “playing vm intro (language ‘de’)”.
- if I dial the extensions mentioned by another extension (i.e. 10 calls 11, or 11 calls 10 and so on) I get the german voice prompt as well.
What should happen is:
no matter where a call comes from, if the voicemail (10) answers it, it should prompt with the users own recording.
What did I do wrong?
Thanks,
Seven…