# This code is distributed under the terms of the GPL
# Astycrapper is a script for Asterisk PBX which is designed to hold conversations with Telemarketers.
# The script works by detecting responses from the telemarketer and silence gaps. It then loops a series of recorded samples.
You will need some samples as well. The "jordan" and "hello" samples can be
downloaded here.
You must place the responses in /var/lib/asterisk/sounds/jordan/, place the "hello" samples in /var/lib/asterisk/sounds/hellos and the silence samples in /var/lib/asterisk/sounds/
Then configure Asterisk to either route any call with no caller ID to the AstyCrapper script as shown below. Since almost all telemarketer phones have no caller id
and can are reported by asterisk as with PSTN (your ATA) and OVERSEAS (reported by Telstra), so you can setup inbound call routes like this:
DID Number: your phone #
Caller ID Number: OVERSEAS
Set Destination: custom-astcrap,b,1
DID Number: your phone #
Caller ID Number: PSTN
Set Destination: custom-astcrap,b,1
You could also simply configure an extension and forward telemarketers to the astycrapper extension.
NOTE:
PSTN gain & echo suppression settings may need to altered to get best results :
If Astycrapper is cutting off the telemarketer while they are speaking you probably need to lower the gain.....If Astycrapper keeps going to the "Hello" loop even when someone is talking you need to increase the gain.