Block Most Telemarketers

b14ck
Posts: 773
Member Since:
2009-03-03

Hi all--

I was speaking with some people yesterday, who were trying to find out how to block telemarketers easily. I thought I would share the method that I personally use to block telemarketers in most cases, just incase anyone else would like to use it.

Here's the logic of how it works.

===
if (incoming caller ID is unknown) {
play a hangup tone (will make telemarketer programs think your line is dead and they will hangup);
}

continue with normal routing;
===

The reason I chose not to play the hangup tone at the beginning of every call, is because most of the time, telemarketers have private numbers. Also--it is rather annoying to hear the hangup tone if a real person calls in. Of course, if a real person IS calling in with a blocked number, they will hear the hangup tone, but will most likely stay on the line and then hear your normal incoming prompts/ringing/etc.

To implement the program, open up your /etc/asterisk/extensions_custom.conf file, and add the following lines:

[from-pstn-custom]
exten => _X.,1,NoOp(blocking telemarketers)
exten => _X.,n,Zapateller(answer|nocallerid)
exten => _X.,n,NoOp(done blocking)

Then save the file, and reload asterisk:

asterisk -rx 'reload'

You should also check your trunk settings, if your context= field does NOT have from-pstn, then you will need to modify that value appropriately.

If you have any questions/comments, feel free to post.

Cheers.

--

Randall Degges
Lead Developer, RCI Telecommunications
projectb14ck - http://projectb14ck.org/ - Weblog



jfinstrom
Posts: 2008
Member Since:
2007-03-07
I use an AGI script that

I use an AGI script (http://whocalled.us/junk_lookup.agi) which looks at the caller ID and compares it against known bad numbers at http://whocalled.us ...

[code]
exten => s,n,AGI(junk_lookup.agi|${CALLERID(number)}|"${CALLERID(name)}")
exten => s,n,NoOp(script returned spammer set to ${spammer})
exten => s,n,GotoIf($["${spammer}" = "yes"]?ohcrap,s,1)
[code]

By the way I don't hang up on em, the ohcrap context is a mildly modified version of http://www.linuxsystems.com.au/astycrapper/

Also you can find a freepbx module I wrote floating around that puts the people in an endless IVR and you can intigrate it with the privacy tools..

--



kerryg
Posts: 6790
Member Since:
2006-05-31
The VAST majority of

The VAST majority of telemarketers are using automated systems so putting them into an IVR has pretty much no effect. The dead simple "Press 1 to speak to a human" and if no keypress is detected then hanging up will eliminate virtually all unwanted callers.

--

Kerry Garrison
http://www.VoipStore.com - http://3cxbook.com
(888) VOIPSTORE - (888) 864-7786



necits
Posts: 419
Member Since:
2008-02-23
I use pretty much the same

I use pretty much the same setup as James. The recordings I get are fricken hilarious.

--

Michael Mathewson CCNA,MCSE
Owner/Consultant
Northeast CT IT Solutions



TDF
Posts: 483
Member Since:
2006-12-19
This tone Zapateller plays

This tone Zapateller plays is it just for the US, is a different tone needed for the UK ?



jfinstrom
Posts: 2008
Member Since:
2007-03-07
I will probably write a

I will probably write a FreePBX module for astycrapper when 1.6 is more widely addopted as I use the Volume function in my modified version which is only in 1.4 if you back port it. As far as the press 1 thing thats easy

exten => s,1,Wait(2)
exten => s,n,SendDTMF(1) ;press 1 for an agent
exten => s,n,Wait(1) ; wait 1 second
exten => s,n,SendDTMF(0) ;press 0 for operator just in case
--



tiggerpaws
Posts: 45
Member Since:
2010-05-11
I tried to write a script to

I tried to write a script to play a disconnected.wav
wav file, but it bombed out with hubndreds of errors.

I am trying to make my system play the wav file
to individual numbers I set in a@h and so far, all
I can do is make it do this with the digital receptionist
but I don't want it to give them any options and don't
respond to DTMF tones, just play the recording and
then drop the call.

I think there is alot more to script writing than
I ever imagined.

dammit forgot to specifty system parameters.
Processors 1
Model Pentium III (Coppermine)
Chip MHz 997.08 MHz
Cache Size 256 KB
System Bogomips 1970.17
PCI Devices 00:1f.1 IDE interface: Intel Corporation 82801BA IDE U100
00:1f.3 SMBus: Intel Corporation 82801BA/BAM SMBus
01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400]
02:0b.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
02:0d.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado]
IDE Devices hda: QUANTUM FIREBALLP AS60.0 (Capacity: 55.92 GB)
hdc: _NEC DV-5800A
hdd: LG CD-RW CED-8080B
USB Devices Linux 2.6.9-22.EL uhci_hcd UHCI Host Controller 0000:00:1f.2
Logitech USB Mouse
Logitech Logitech USB Keyboard

Canonical Hostname localhost
Listening IP 192.168.0.62
Kernel Version 2.6.9-22.EL
Distro Name CentOS release 4.2 (Final)
Uptime 5 days 21 hours 27 minutes
Current Users 0
Load Averages 0.00 0.00 0.00

Asterisk Info: asterisk1.local (192.168.0.62)

Version

Asterisk 1.2.4 built by root @ asterisk1.local on a i686 running Linux on 2010-05-04 15:57:09 UTC
Verbosity is at least 3

Uptime

System uptime: 5 days, 21 hours, 27 minutes, 6 seconds
Last reload: 1 day, 12 hours, 40 minutes, 20 seconds
Verbosity is at least 3

Active Channel(s)

Peer User/ANR Call ID Seq (Tx/Rx) Form Hold Last Message
0 active SIP channels
Verbosity is at least 3

Sip Registry

Name/username Host Dyn Nat ACL Port Status
0 sip peers [0 online , 0 offline]
Verbosity is at least 3

Sip Peers

Host Username Refresh State
Verbosity is at least 3

IAX2 Sip Registry

Host Username Perceived Refresh State
Verbosity is at least 3

IAX2 Peers

Name/Username Host Mask Port Status
0 iax2 peers [0 online, 0 offline, 0 unmonitored]
Verbosity is at least 3

Subscribe/Notify

-= Registered Asterisk Dial Plan Hints =-
203 : ZAP/4 State:Idle Watchers 0
202 : ZAP/3 State:Idle Watchers 0
201 : ZAP/2 State:Idle Watchers 0
200 : CUSTOM/200 State:Unavailable Watchers 0
----------------
- 4 hints registered
Verbosity is at least 3

Zaptel driver info

Chan Extension Context Language MusicOnHold
pseudo from-internal en
1 from-pstn en
2 from-internal en
3 from-internal en
4 from-internal en
Verbosity is at least 3

Conference Info

No active MeetMe conferences.
Verbosity is at least 3

Voicemail users

Context Mbox User Zone NewMsg
default 202 V Room 0
default 203 X Room 0
default 200 System 2
default 201 Downstairs 0
Verbosity is at least 3

NTP peers

remote refid st t when poll reach delay offset jitter
==============================================================================



ddwyer
Posts: 401
Member Since:
2006-06-03
my script

everybody has a different approach, but a few things are the same
[1] spam is usually from an unknown or blank callerid
[2] any response that requires a 'real person' to press a button is usually enough to kill the spam

okay so hers what i do:
i have a script on out main office number , we recieve 100's of calls a day
we announce to the caller that we dont allow anonomys calls , and ask them to enter there full 10digit phonenumber.
we check the phonenumber against a filter (to make sure the areacode + prefix are correct)
if the number does not match our filter we ask the caller to reenter
3 tries and we hang up.

we use the callerID to drive our CRM so it is very important for me to get the callerid

we very rarely get spam calls (maybe 1 or 2 year!)



schmerold
Posts: 35
Member Since:
2007-05-02
Inbound Route

Our customers come from 4 area codes, if CID is from one of the 4 area codes we serve, call goes to staff. If outside our service area, it goes to gmail. Scanning text based vmail is a piece of cake.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.