[Asterisk-Users] AGI & Silence detection
Stuart Hirst
shirst at easynet.co.uk
Thu Jul 17 15:34:49 MST 2003
What I am looking to do is to dial a number where I expect to get
someone's voicemail, wait for their greeting to finish and then play an
MP3 and hangup. So in answer to your question I am looking to detect a
silence for x milliseconds within a given time variable and if "true"
then I would assume that their greeting had finished and play my message
or if false, I might assume that something failed and redial the call.
-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Steven
Critchfield
Sent: 17 July 2003 23:28
To: asterisk-users at lists.digium.com
Subject: Re: [Asterisk-Users] AGI & Silence detection
In AGI you can't as there is no access to the audio stream. In EAGI you
get access to the audio stream on FD 4, You can then use that for
detection on your own. But the best option might be to write a function
into agi that uses the silence detection that I believe is available via
dsp.c. I'm not sure what type of event you would want to through back at
the script when the threshold was exceeded.
On Thu, 2003-07-17 at 17:14, Stuart Hirst wrote:
> Does anyone how you might detect a period of x milliseconds of silence
> using AGI ?
>
> Rgds,
>
> Stuart
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
--
Steven Critchfield <critch at basesys.com>
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list