The default setting is “1” One second.
I am trying to set this to 5 seconds.
The intent is to not record and save those really fast hangup calls.
The expected behavior would be that any message recorded that is less than 5 second would be dropped/not recorded.
And that if any message recorded longer than five seconds would be “kept” recorded.
Everything works as expected with default settings, but If I try to set this to anything other than “1” such as “5” or “7” no voice messages are recorded.
If I make a test call and try to leave a 10 or 20 or 30 second voicemail message and then press # to review it I get “I’m sorry, an error has occured”.
This is testing a 20 second message counting from one to twenty.
Attempted voice message was NOT only 4 seconds. (more like 25 seconds).
– Recording was 4 seconds long but needs to be at least 5 - abandoning
– Executing [s-INSTRUCT@macro-vm:4] Goto(“PJSIP/4701-00000010”, “exit-FAILED,1”) in new stack
– Goto (macro-vm,exit-FAILED,1)
– Executing [exit-FAILED@macro-vm:1] Playback(“PJSIP/4701-00000010”, “im-sorry&an-error-has-occurred”) in new stack
– <PJSIP/4701-00000010> Playing ‘im-sorry.ulaw’ (language ‘en’)
– <PJSIP/4701-00000010> Playing ‘an-error-has-occurred.ulaw’ (language ‘en’)
Hi.
I tested on FreePBX 16, it works as expected.
Voicemail Admin / Settings / Limits / Minimum Message Length (seconds): 5
Click on button Apply Config after saving.
Sure, maybe if you set 5, it could be 6 in reality.
If I set it to 5, I can leave a 10’’ message.
If the message takes 4", no message.
What is your FreePBX version?
Sorry, this is FreePBX17 fully up to date.
I still have not got it to work as expected.
Title changed.
Thanks.
Have you checked if the voicemail.conf has been changed correctly after updateing you vm settings?
If the vm settings are correct in the conf file, try to change the Asterisk version using console: asterisk-version-switch.
Select another asterisk version and try again.
However, if there is nothing bad in the config file or any issue here, I think it’s a bug.
This is a fresh install of FreePBX17.
So you lost me on the asterisk-version-switch command.
I’m not sure what that is for or why I would want to run it in any case.
I would also wish to stick with the current version of asterisk and not change it and work through any bugs if that is the case.
The settings in voicemail.conf match what is applied in the web interface.
Thanks.
-Steve
It’s just to know if the issue comes from FreePBX 17 or the Asterisk version. That’s it.
If the VM settings are present in the config file, there is nor reason to get this situation working fine on FreePBX 16 with Asterisk 20.5.x. it should be the same on FreePBX 17 to.
The diff is the Asterisk version (21 by default isn’t it ?).
As you want sir. I just try to find a solution to know where the issue comes from.
I’m still confused and not familiar with asterisk-version-switch.
So I am also talking from that perspective.
Are you stating that I can simply change the asterisk version (without breaking the system) to test something then switch it back?
Sorry that I am not very familiar with it.
I’d be happy to try if it’s not going to break the system to try
I’m not trying to be a jerk.
Thanks!
Which one should I switch to for this type of check.
This is new to me.
And there are a lot of choices.
Including something newer?
Current version: Asterisk 21.5.0 is running
(LTS) = Long Term Support | (EOL) = End of Life | (S) = Standard
Press 1 for Asterisk 18 (LTS)
Press 2 for Asterisk 18 (Certified)
Press 3 for Asterisk 20 (LTS)
Press 4 for Asterisk 20 (Certified)
Press 5 for Asterisk 21 (S)
Press 6 for Asterisk 22 (LTS)
Suck it and see, if it doesn’t work out, try another one. 21 and above might cause restrictions with current FreePBI
What restrictions?
The absense of macros and channel_sip if being required
Set it to 2 seconds and leave a voicemail. Confirm the audio is making it to the voicemail recording.
FreePBX 17 doesn’t use Macros anymore regardless of the Asterisk version. It will expose chan_sip settings if Asterisk is v20 or lower and chan_sip is enabled.
exactly
So how does it cause restrictions?
As you stated, if you try to expose chan_sip you are restricted to what version you can switch to.
The OP might want to refer to
http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/Voicemail_id263499.html
I have found setting maxsilence a better phophylactic for handling voiceless ‘hangups’
This setting defines the maximum time for which the caller can remain silent before the recording is stopped. We like to set this setting to one second longer than minsecs
(if you set it equal to or greater than minsecs
, you will get a warning).
This conversation is going sideways and confusing to me.
I am also not using chan_sip.
Consider it a default and up to date FreePBX 17 installation.
Setting Min Message Length (Seconds): to 5 or 7 seconds is not working as expected as above.
Any interaction with setting: Max Message Silence (Milliseconds) and makes no sense to me.
The defaults are 1 second (Minmessage) and 10milliseconds for Max message silence.
10-milliseconds makes no sense at all as that would cut anything off at 10 milliseconds.
I am simp[ly trying to increase the minmessage setting from default (1 second) to something more like 5 or 7 seconds and it is not working as expected.
And so far is not clear as to why.
This should be a simple setting and it apparently is not or it’s buggy.
Did you lower it and test leaving a voicemail to confirm that all of the audio is making it into the voicemail? You need to confirm that while you did talk for 20 seconds, the system actually got that audio for 20 seconds.
That is wrong and needs to be fixed in the GUI. The setting maxsilence for voicemail is done in seconds not milliseconds per the official Asterisk config samples.
; How many seconds of silence before we end the recording
maxsilence=10
So let’s make sure there is an understanding of these settings.
Minimum Message Length: This is the minimum length in seconds for the message to be. Doesn’t matter if it is silence or just saying “Hi, call me” if the message is shorter than this length, it doesn’t get saved. Even if it is a valid message.
Max Message Silence: This is how max amount of silence (in seconds) received during recording the message before it will end the message. This can mean the entire message is silence or it had talking then silence for X seconds…