Voicemail duration increase - Asterisk


#1

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?


#2

Ehhh, voicemail.conf… maxsecs parameter


#3

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


#4

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


#5

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?


#6

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.


#7

how can i do the protocol check?


#8

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.


#9

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


#10

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


#11

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?


#12

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.


#13

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


#14

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


#15

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

Thank u for the answers


#16

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.


#17

Ok I will try it to solve @jcolp

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


#18

reloaded the configuration?


#19

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