We have just put our FreePBX into production and are having a strange issue with voicemail. Voicemails are being cut off mid speech after approximately 20 seconds with message thank you, goodbye when recording but all settings are set to the FreePBX defaults for example in voicemail admin maxmessagelength is set to 300 maxmessagesilence 10ms
I can confirm asterisk.conf has the line transmit_silence_during_record=yes
There is more than one voicemail system interaction in the log. I was referring to the one at 13:36:01, which on more detailed checking is recording part of the greeting, rather than recording a message.
I think you are referring to the one that starts on line 301, at 13:43:03, starts recording at 13:43:16, and is terminated, with the message:
[2023-01-16 13:43:32] VERBOSE[66612][C-00000070] app.c: Took too long, cutting it short...
It’s being cut off by Asterisk at about 16 seconds into the recording, because the recording is too long.
As to why you believe that the limit is 300 seconds and Asterisk thinks that it is 15 or 16 seconds, I can’t really help, but you may want to look at the generated configuration file to see what value is being given to the voicemail system.
From what I can see it appears to be getting the correct value and as previously mentioned all my settings do look right and have not been changed from the defaults thus there may be a chance that there is a bug in FreePBX somewhere down the line. voicemail.conf matches settings in voicemail admin…
Sorted, in the end it was my fault as I had added the wrong parameter under Extensions\Voicemail\VM Options, I had “maxmessages=xx” assuming this meant max number of messages in the mailbox however I needed “maxmsg=xx”. It is now all working as intended and I am kicking myself…