# Voicemail configuration trouble

**URL:** <https://community.asterisk.org/t/voicemail-configuration-trouble/21710>\
**Category:** Asterisk Support\
**Created:** [June 28, 2008, 10:36pm UTC](https://community.asterisk.org/t/voicemail-configuration-trouble/21710 "2008-06-28T22:36:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![McSeven](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/mcseven/32/771_2.png) [@McSeven](https://community.asterisk.org/u/McSeven)\
**Post date:** [June 28, 2008, 10:36pm UTC](https://community.asterisk.org/t/voicemail-configuration-trouble/21710/1 "2008-06-28T22:36:04Z")

</div>

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](mailto: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…

---

<div class="post-metadata">

**Author:** ![Dovid](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dovid](https://community.asterisk.org/u/Dovid)\
**Post date:** [June 30, 2008, 10:47am UTC](https://community.asterisk.org/t/voicemail-configuration-trouble/21710/2 "2008-06-30T10:47:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![McSeven](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/mcseven/32/771_2.png) [@McSeven](https://community.asterisk.org/u/McSeven)\
**Post date:** [June 30, 2008, 10:59am UTC](https://community.asterisk.org/t/voicemail-configuration-trouble/21710/3 "2008-06-30T10:59:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Dovid](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dovid](https://community.asterisk.org/u/Dovid)\
**Post date:** [June 30, 2008, 11:53am UTC](https://community.asterisk.org/t/voicemail-configuration-trouble/21710/4 "2008-06-30T11:53:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![McSeven](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/mcseven/32/771_2.png) [@McSeven](https://community.asterisk.org/u/McSeven)\
**Post date:** [June 30, 2008, 12:02pm UTC](https://community.asterisk.org/t/voicemail-configuration-trouble/21710/5 "2008-06-30T12:02:44Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![Dovid](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dovid](https://community.asterisk.org/u/Dovid)\
**Post date:** [July 1, 2008, 8:35pm UTC](https://community.asterisk.org/t/voicemail-configuration-trouble/21710/6 "2008-07-01T20:35:12Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![McSeven](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/mcseven/32/771_2.png) [@McSeven](https://community.asterisk.org/u/McSeven)\
**Post date:** [July 1, 2008, 10:29pm UTC](https://community.asterisk.org/t/voicemail-configuration-trouble/21710/7 "2008-07-01T22:29:14Z")

</div>

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 ☹ and only then the recor-  
ding starts.

How do I get rid of that?

Thank you for your help,  
Seven

---

<div class="post-metadata">

**Author:** ![McSeven](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/mcseven/32/771_2.png) [@McSeven](https://community.asterisk.org/u/McSeven)\
**Post date:** [July 1, 2008, 10:39pm UTC](https://community.asterisk.org/t/voicemail-configuration-trouble/21710/8 "2008-07-01T22:39:50Z")

</div>

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 😄

Thanks very much,  
Seven
