Voicemail configuration trouble

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…

The reason is because the phone its self is set to de but asterisk as a whole is set to us. You should try setting language=de in the general section of sip.conf or set the language to de in the dial plan.

Hi, thanks,

yes, now all callers get the german voice prompt, but not the user’s own recording. How do I enable asterisk to play back the users greeting instead of standard voice prompt greeting?

Thanks,
Seven

Did the users record a busy message and an unavailable message ?

Jap, and I can see them in /var/spool/asterisk/voicemail/default/10. There are 3 wave files in the folder: “busy.wav”, “greet.wav” and “unavail.wav”. The asterisk version is 1.2.29, perhaps this helps. The files can be played back, they are not broken.

I tried reloading and restarting the server, but that didn’t help. Still the german default voice prompt…

You have me beat there. If the system is set to us does it play the message or does it also have the default asterisk message ?

I believe I have solved it partly.

It’s these lines:
exten => s-NOANSWER,1,VoiceMail(${ARG2})
exten => s-CHANUNAVAIL,1,VoiceMail(${ARG2},u)

It will play the users prompt, if I disconnect the phone, meaning exactly
channelunavail. So there seems to be a difference between temporary
not availability (“away from desk”) and general unavailability (phone
disconnected).

If I record the temp. not available message, I get a fourth file named
"temp.wav". I copied this over “unavail.wav” and now it plays the same
users greeting in both cases, BUT:

After the users greeting "hello, you have reached the voice mail of […]"
the standard prompt (german) “please leave a message after the tone
and press pound key […]” will also be played :frowning: and only then the recor-
ding starts.

How do I get rid of that?

Thank you for your help,
Seven

Ahhhhhh got that as well, apparently you can combine those letter parameters
for the voicemail application, so I changed

exten => s-NOANSWER,1,VoiceMail(${ARG2}) exten => s-CHANUNAVAIL,1,VoiceMail(${ARG2},u) exten => s-BUSY,1,VoiceMail(${ARG2},b)
to

exten => s-NOANSWER,1,VoiceMail(${ARG2},s) exten => s-CHANUNAVAIL,1,VoiceMail(${ARG2},us) exten => s-BUSY,1,VoiceMail(${ARG2},bs)
and the default prompt is gone…
puh now that’s working as it is supposed to :smile:

Thanks very much,
Seven