[Asterisk-Users] Limit DTMF tones

Andrew Kohlsmith akohlsmith-asterisk at benshaw.com
Thu Nov 4 09:13:07 MST 2004


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.



More information about the asterisk-users mailing list