Got "I'm sorry, an error has occured" when send message to voicemail

Hi everyone,
I’m using FreePBX 13 with Asterisk 13.8.0. I already configured voicemail setting for my extension. But when I try to test, I got “I’m sorry, an error has occured”. I also try to google this error and I’m sure my voicemail.cnf doesn’t have any [] characters like previous cases.

I need help, thanks.

Connect to asterisk cli and make a call to your voicemail, post here what you get in the cli.

Are you trying to dial directly to the VM box? If so you might have a feature code conflict. Going to VM box 112 (dialing *112) might interfere with a feature code *11

I try call *98 and I got the message “Comedian Mail, mailbox”. The command line show

ERROR[10064]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“contabo2”, “(null)”, …): Name or service not known
[2017-06-12 17:47:33] WARNING[10064]: acl.c:800 resolve_first: Unable to lookup ‘contabo2’
[2017-06-12 17:47:38] ERROR[10064]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“contabo2”, “(null)”, …): Name or service not known
[2017-06-12 17:47:38] WARNING[10064]: acl.c:800 resolve_first: Unable to lookup ‘contabo2’
[2017-06-12 17:47:43] ERROR[10064]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“contabo2”, “(null)”, …): Name or service not known
[2017-06-12 17:47:43] WARNING[10064]: acl.c:800 resolve_first: Unable to lookup ‘contabo2’
[2017-06-12 17:47:57] ERROR[17328][C-00000016]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“contabo2”, “(null)”, …): Name or service not known
[2017-06-12 17:47:57] WARNING[17328][C-00000016]: acl.c:800 resolve_first: Unable to lookup ‘contabo2’
[2017-06-12 17:47:59] ERROR[10064]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“contabo2”, “(null)”, …): Name or service not known
[2017-06-12 17:47:59] WARNING[10064]: acl.c:800 resolve_first: Unable to lookup ‘contabo2’
[2017-06-12 17:48:02] ERROR[17328][C-00000016]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“contabo2”, “(null)”, …): Name or service not known
[2017-06-12 17:48:02] WARNING[17328][C-00000016]: acl.c:800 resolve_first: Unable to lookup ‘contabo2’
[2017-06-12 17:48:04] ERROR[10064]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“contabo2”, “(null)”, …): Name or service not known
[2017-06-12 17:48:04] WARNING[10064]: acl.c:800 resolve_first: Unable to lookup ‘contabo2’
[2017-06-12 17:48:07] ERROR[17328][C-00000016]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“contabo2”, “(null)”, …): Name or service not known
[2017-06-12 17:48:07] WARNING[17328][C-00000016]: acl.c:800 resolve_first: Unable to lookup ‘contabo2’

Contabo2 is the hostname

I try call *97 and I got the same warning and error from command line

I also disconnect to my number and try call from another number to my number, to test my voicemail (already set up voicemail unavailable message). Sometime it worked, but sometime didn’t work. I saw this on the asterisk command line

[2017-06-12 18:00:12] WARNING[18013][C-00000019]: app_dial.c:2429 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)
[2017-06-12 18:01:43] WARNING[18109][C-0000001a]: app_dial.c:2429 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)

I test my voicemail by call from another number to my number. You can see my post above to know more detail :slight_smile:

Dude, I don’t understand what have you done! :grin:
First of all what is Contabo2, who has this hostname because it is not get resolved from asterisk and everything fails.
Add an entry in the /etc/hosts file with the ip that the Contabo2 has, reboot and try again.
The rest of your post I don’t undestand it, please write as simple it can be what are trying to test.

My number on asterisk is 4005, I create 4001 and call to 4005 to test the voicemail. Sometime I can leave a message, sometime cannot. I saw this message in the asterisk command line.

[2017-06-12 18:00:12] WARNING[18013][C-00000019]: app_dial.c:2429 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)
[2017-06-12 18:01:43] WARNING[18109][C-0000001a]: app_dial.c:2429 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)

Contabo2 is the host that asterisk running on.

I already add a line to /etc/hosts with the ip of contabo2 and reboot. Now I don’t see the warning about hostname contabo2 anymore, but I still got

[2017-06-13 05:11:57] WARNING[2486][C-00000004]: app_dial.c:2429 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)
[2017-06-13 05:12:20] WARNING[503]: chan_sip.c:4059 retrans_pkt: Retransmission timeout reached on transmission 3bf5ad502324225633f9b2453d725b07 for seqno 1 (Critical Response) – See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions

Post the cli output when you can leave a voicemail and when you cannot. Please post the whole log not only the part that the error pop’s up.