Scrapper v.03

# 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.

Sample Conversations

(NEW SAMPLES) Lenny...LOL !!:

AstyCrapper Sample download

A Telstra Telemarketer talks for 15 mins !!:

AstyCrapper Sample1 download

These guys figure it out & have a laugh. This sample has a slower response delay :

AstyCrapper Sample2 download

Astycrapper joins Bigpond, Foxtel & Homeline Premium !! (8 mins):

AstyCrapper Sample3 download

This is after some tweaking of the volume gain & small changes in response delay. (2 mins):

AstyCrapper Sample4 download

some more short ones:

AstyCrapper Sample5 download

AstyCrapper Sample6 download


Download the script

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.