[Asterisk-Users] Limit DTMF tones

Steven Critchfield critch at basesys.com
Thu Nov 4 10:41:30 MST 2004


On Thu, 2004-11-04 at 11:30 -0600, Henry Devito wrote:
> The issue is the inmates have figured out a way to dial long distance
> numbers by calling different private phone numbers and using that companies
> DISA to complete calls. So in order to stop that I have to suppress dtmf
> after so many digits are dialed.  Any idea's?

look at the code for # transfer, Asterisk is finding the DTMF while a
call is in progress. You could probably do something along the way of
checking the call timer and once it exceeds a certain point, all DTMFs
are just ignored. It doesn't seem like it would be difficult, but I
haven't looked at the code, nor thought about how that could be merged
back into the codebase as a configurable option.

> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Andrew
> Kohlsmith
> Sent: Thursday, November 04, 2004 10:13 AM
> To: asterisk-users at lists.digium.com
> Subject: Re: [Asterisk-Users] Limit DTMF tones
> 
> On November 4, 2004 10:56 am, Henry Devito wrote:
> > I have a question and I can't seem to find the answer anywhere.  Is there
> a
> > way to limit the amount of digits dialed?  For example I have a * box set
> > up for the department of corrections for prisoners to call home.  It has
> > the Digium 2 FXO/ 2 FXS card in it.  I have two Lines brought in to the
> fxo
> > ports and 2 standard 2500 analog sets for the prisoners to use to dial
> out.
> > Everything seems to work great.  We use * to record all the calls.  After
> > the prisoner dials the original number and their PIN,  I do not want them
> > to be able to send anymore DTMF tones.  The PIN number is not processed by
> > *. It is processed by the LEC's switch.  Thanks in advance
> 
> I just did something similar:
> 
> [recordcall]
> exten => s,1,SetVar(CALLFILENAME=/tmp/calls/${CALLERIDNUM}-${TIMESTAMP})
> exten => s,2,Monitor(wav,${CALLFILENAME},m)
> exten => s,3,Playback(agent-pass)
> exten => s,4,DISA(/path/to/asterisk/passwd/file)
> 
> and then just make sure that the extension you dump them in to does not
> allow 
> them to dial anything ohter than what you want (i.e. 7-digit #s or whatnot)
> 
> I don't know of any way to suppress DTMF if that's what you're talking
> about.
> 
> -A.
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    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
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list