[asterisk-users] FreePBX: How to hangup if the caller did not press # after the voicemail message

Matthew Jordan mjordan at digium.com
Fri Jul 6 19:01:47 CDT 2012


----- Original Message -----
> From: "bilal ghayyad" <bilmar_gh at yahoo.com>
> To: asterisk-users at lists.digium.com
> Sent: Friday, July 6, 2012 4:56:02 PM
> Subject: Re: [asterisk-users] FreePBX: How to hangup if the caller did not	press # after the voicemail message
> 
> I did one try and did not hangup:
> 
> I called the extension and when the voicemail answered, I did not
> leave any message and stayed waiting .. waiting .. waiting ..
> It did not hangup from it self ! How much it stay waiting me to leave
> a message?

There are settings in voicemail.conf to control this behavior. 
The maxsilence setting can be used to automatically end a recording:

; How many seconds of silence before we end the recording
maxsilence=10

Note that depending on the situation, you may have to also tweak the
silencethreshold setting.  If VoiceMail detects sound on the voice
frames being passed through it, it will treat that as someone 'talking'
and not end the call.

; Silence threshold (what we consider silence: the lower, the more sensitive)
silencethreshold=128

> Why I am trying this? OK, the answer is: Because I am trying to see
> if the voicemail hangup even if it did not get from the caller the
> hangup, because this is happening when the caller is calling from
> outside to the dahdi (analoge) and when the caller hangup his
> mobile, the hangup does not reach (it is PSTN issue), so I beleive
> the voicemail should hangup from it self after timeout .. but I do
> not see this.
>
> Anyadvise?
> 
> Regards
> Bilal
> 
> -----------
> > 
> > Asterisk, and by extension FreePBX, automatically end the
> > voicemail recording when the caller hangs up.  You have
> > some OTHER issue.  Perhaps Asterisk is not detecting
> > the hangup?
> > 
> > -----Original Message-----
> > From: asterisk-users-bounces at lists.digium.com
> > [mailto:asterisk-users-bounces at lists.digium.com]
> > On Behalf Of bilal ghayyad
> > Sent: Thursday, July 05, 2012 6:26 PM
> > To: asterisk-users at lists.digium.com
> > Subject: [asterisk-users] FreePBX: How to hangup if the
> > caller did not press # after the voicemail message
> > 
> > Dears;
> > 
> > In FreePBX, when I select voicemail for the extension, and
> > if the caller sent for the voicemail, and he leaved (or did
> > not leave) a voice message, and did not press #, so the
> > channel will stay open and this is not good specially if the
> > call was coming from outside via the analoge lines (because
> > the caller might hangup and the dahdi does not detect the
> > hangup, so the channel will stay openned).
> > 
> > How to let the voicemail hangup automatically after waiting
> > for certain seconds (for example after 30 or 40 second),
> > then to hangup or jump for the next line to run it?
> > 
> > What is the parameter or the setting field in the freepbx
> > that can resolve this (the voice mail message to be maximum
> > for 30 or 40 second, after that to hangup even without
> > pressing #). From where?
> > 
> > Regards
> > Bilal
> > 

--
Matthew Jordan
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org



More information about the asterisk-users mailing list