Voicemail duration increase - Asterisk

Hello all,

I need to increase the duration of voicemail to 10 minutes while leaving voicemail in asterisk…

can u please say where to increase the maxsecs in asterisk?

Ehhh, voicemail.conf… maxsecs parameter

1 Like

I had increased upto 900secs in that parameter but no results

What is the Asterisk console output? How long does it last in practice? Is the remote side hanging up?

This is the console output

Recording the message
– x=0, open writing: /var/spool/asterisk/voicemail/default/1512/tmp/QyLdfE format: wav, 0x7f6b1c003020
– x=1, open writing: /var/spool/asterisk/voicemail/default/1512/tmp/QyLdfE format: gsm, 0x7f6b1c006db0
– User hung up
== Spawn extension (vrcmin, 1512, 7) exited non-zero on

The duration accepts only 20 to 23 secs while leaving voicemail.
may i know what do you mean by remote side hanging?

Whatever is leaving the voicemail message has hung up? That is what the log seems to indicate, “User hung up”. You can do a protocol level check to see if that’s true.

how can i do the protocol check?

That depends on the protocol in question. You haven’t specified, so I assume SIP. If using chan_sip then “sip set debug on” and if using chan_pjsip then “pjsip set logger on”. A BYE from the remote side would indicate hangup.

This is the log for sip set debug on:

<— SIP read from UDP:XXX.XXX.XXX.XX:5060 —>
BYE sip:12345@xx.xx.xx.x:5060 SIP/2.0
CSeq: 6 BYE
Via: SIP/2.0/UDP XXX.XXX.XXX.XX:5060;branch=z9hG4bK531624126238284145167167
From: “40001833” sip:40001833@XXX.XXX.XXX.XX:5060;tag=165212145095219
Call-ID: tKe0kKF6IV563739ad2c753a7264c748041f7237e8@XXX.XXX.XXX.XX
To: sip:12345@xx.xx.xx.x:5060;tag=as634b8f7e
Contact: sip:xx.xx.xx.x:5060;transport=udp
Content-Length: 0
Max-Forwards: 70

How can i overcome this ? and increase the duration of voicemail to 10 minutes

The remote side hung up. You can’t force them to stay on the phone.

I am only the user leaving voicemail to the extension in asterisk but I don’t understand who is in the remote side hang up?

The call was hung up by the remote end. That’s the most I can tell you. That’s what a BYE does. Can’t tell you why.

But it is not actually hung up by the remote end…the BYE does what you said .

Then you’d need to determine why we were told that the call was hung up when it wasn’t.

Ok I will check with my end but i need any guidance for that to solve…

Thank u for the answers

I’ve told you where to look and what happened on the Asterisk side, that’s as much as I can give. Someone else may chime in with more.

Ok I will try it to solve @jcolp

anyone else can give me the guidance to solve this issue?

reloaded the configuration?

yes i had reloaded in asterisk as the command voicemail reload & reload even restarted the asterisk but same results…

But I called from one extension to leave voicemail in the same server it works but while incoming asterisk gets hung up in 31 to 33 secs