[Asterisk-Users] hangup detection

Martin Pycko martinp at digium.com
Fri Jan 2 13:34:10 MST 2004


If the on/off times are diffrent you need to edit Makefile and uncomment
BUSYDETECT_TONES_ONLY flag or something like that ... and then you can
change the MAX/MIN values in dsp.c too. That should help you with
busycount=10 and busydetect=yes

regards
Martin

On Fri, 2 Jan 2004, Sean Adams wrote:

>
> Here's a recording:
>
> http://www.seanadams.com/hangup_tones.aif
>
> (sorry - recorded from speakerphone - skip to the end)
>
> The following numbers are not real precise, I just got this from
> visually looking at the spectrum on my computer:
>
> The tones appear to consist of 2600, 2440, 2000, and 1400 Hz.
>
> The timing is 120ms on, 80ms off.
>
> I'll take a look at dsp.c and see if I can make it work. Thanks for the
> pointers.
>
>
>
> On Jan 2, 2004, at 10:46 AM, Martin Pycko wrote:
>
> > busydetect should help you. Set busycount=10 busydetect=yes in
> > zapata.conf
> > and measure the length of the tone .. should be equal the pause too.
> >
> > Then in dsp.c change the vaules BUSY_MIN and BUSY_MAX for example like
> > this: your result - 100, your result + 100 [ms]
> >
> > regards
> > Martin
> >
> > On Fri, 2 Jan 2004, Sean Adams wrote:
> >
> >>
> >> So I made the mistake of buying a Carrier Access channel bank without
> >> noticing the page on the wiki about the fact that they don't support
> >> disconnect supervision (bastards!). However, apart from that, I do
> >> have
> >> it working fine for incoming calls.
> >>
> >> Is there some trick to get asterisk to detect the hangup tones from
> >> SBC? I've tried busydetect and callprogress as suggested, but neither
> >> seems to work.  The tone is not a busy tone, but that ear-piercing
> >> high
> >> pitched buzzer. It goes "if you'd like to make a call, please hang up
> >> and try again. If you need help, hang up and then dial your operator.
> >> BEEP BEEP BEEP etc."
> >>
> >> I am set up here with recording gear and spectrum analyzer software,
> >> so
> >> I can identify the tones and timing if necessary. However I'm not sure
> >> how to make asterisk detect the tones, or if this work has already
> >> been
> >> done. Anyone know?
> >>
> >> _______________________________________________
> >> Asterisk-Users mailing list
> >> Asterisk-Users at lists.digium.com
> >> http://lists.digium.com/mailman/listinfo/asterisk-users
> >>
> >
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
> _______________________________________________
> 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