Voicemail hangs up on external callers almost immediately

I found one mention of this from 2006 with no clear solution or reason. Since I’m working with Asterisk 22.8, I imagine things are very different. I found a few other mentions in FreePBX discussions and a standalone wordpress site. Several mention not having changed ANY code prior to the problem occurring.

I was working on adding a new client into the dialplan. When I went to test all the extensions; everything worked as expected with routing to the appropriate phones, playbacks, and mailboxes EXCEPT suddenly all attempts to leave a voicemail when calling from an external number find the voicemail box hanging up on the call within a second or so. Internal calls could still leave voicemails just fine. This problem was consistent across all extensions for all clients sharing the server.

I attempted the fix offered up in the wordpress site of:

"The solution is to edit or add this line into your asterisk.conf in /etc/asterisk (or wherever you keep your asterisk config files):

transmit_silence = yes
Once changed you need to restart asterisk, a core reload will not apply the change.

The documentation in the config file notes:

Transmit silence while a channel is in a waiting state, a recording only state, or
when DTMF is being generated. Note that the silence internally is generated in raw signed
linear format. This means that it must be transcoded into the native format of the
channel before it can be sent to the device.
It is for this reason that this is optional, as it may result in requiring a temporary codec translation path for a channel that may not otherwise require one."

Changing the transmit_silence = yes setting in asterisk.conf DID NOT SOLVE the issue for me.

Because I have other clients on the same server - I needed to have it operational like normal by morning; so I reverted back to previous code for my extensions.conf file. I left the newly amended asterisk.conf file as-is with the transmit_silence = yes setting activated. That solved it temporarily, but now I’m terrified to make any changes to the dialplan in extensions.conf not knowing what could have possibly effected the system this way.

The crazy thing is that I had only been making edits to the extensions.conf file (absolutely NO voicemail.conf, pjsip.conf, or asterisk.conf changes were made prior to the issue occurring) and hadn’t changed any lines of code that deal with a voicemail() function. I was actually just changing the incoming [from-trunk] traffic to route calls based on DID to the new inbound context for the latest client. Example:

exten => 1${ABCdid},1,NoOp ;incoming call to ABC Client Line 1
same => n,Goto(abc-inbound,${EXTEN},1) ;Routed to abc-inbound configuration context

exten => 1${XYZdid},1,NoOp ;incoming call to XYZ Client Line 1
same => n,Goto(abc-inbound,${EXTEN},1) ;Routed to xyz-inbound configuration context

So, given that others have experienced the same issue when they didn’t edit ANY code…

  1. Does anyone have any theories on how this could randomly occur without voicemail configuration changes and what could possibly be the cause?
  2. How could the transmit_silence = yes change solve the issue or was it perhaps a coincidence since that fix didn’t help my situation?
  3. How is it possible that reverting to old code fixed it when none of the code dealt with voicemail.conf or any of the voicemail() functions in the extensions.conf file being worked on?
  4. Am I nuts?

NOTE: The entire server was rebooted between steps, so there was no forgetting to core reload or restart the asterisk service, etc.