How to use the Blacklist feature?
I have plugged in my cell number in the format of 1112223333 but I can still call my trixbox system and be connected.
Is there something else I need to do for this to work?
Trixbox 2.0 fully updated with trixbox-update.sh
Check to see if Blacklist is enabled from freePBX > Settings > Features.
Let's see if Blacklist is working. First, call your trixbox from your cell phone and answer the call. Hang up. Now pick up the same trixbox extension and dial the "Blacklist Last Call" code. (Default is *30). The number should show up in the Blacklist list. Now try to call the truxbox from the banned number and see what happens.
Trixbox uses caller ID matching to blacklist a number, so you must enter a number in Blacklist exactly the way it is presented to trixbox by the caller ID from your service provider. The way I blacklist calls is to go to the call detail report and cut and paste the number. By the way, I was suprised by the number of telemarketers who were calling the trixbox. I use the website www.whocalled.us to help identify where some of the numbers come from.
If this doesn't work, we'll try something else.
Bill Ford, fTOCC
It would be nice if you could block an entire prefix or block them by CID name. Many of these slimebags have multiple numbers to thwart call blocking.
I've got two phone numbers at the house that are tro different prefixes, but listed near each other in the phone book. When the first one rings and its a telemarketer, I know the second one will ring shortly.
I wonder if transferring them to a recording of the "not a working number" thing after you pick up and realize its a telemarketer would trick their automated dialer into removing your number?
The nerdvittles site is currently featuring an article on how to do this. Check it out.
I am having this problem as well..
I add and block numbers like my cell.. But I can still call and connect..
Tried uninstalling module and reinstalling.. no dice..
Any ideas?
Thanks
Joe
when it comes to telemarketers, I transfer them to an application that plays (a pretty humorous recording) and then auto blacklists them. If you're interested in this, let me know. I'll show you how to do it.
Yes this sounds great..
However my currently blacklisting is not stopping any calls so I don't know if it will work for me..
Thanks
Joe
numbers to be blacklisted are 10 digit in length.. you have eleven in your blacklist entry.
Seems like my blacklist only works if an inbound route is NOT pointing straight to a core extension. Can anyone confirm this?
I know this thread is a little old but just to add, I had too many issues with the 2.4 with a few items, out of frustration I reinstalled Trixbox 2.0 and I seem to have a lot less issues.. funny..
On the blacklist, I added a bunch after checking a bunch out and setting up a test number with a CID, it works on all 3 of my DIDs which one goes to my IVR and the other 2 goes direct to extensions. Just to add, 2 of my DIDs (1 to IVR and to Ext. ) is with Vitelity and the other direct to an ext. is with Callcentric.
I can only speak for version 2.0 but I'm reporting mine works fine. I may try vs .2.2 when I get bored.
Anyone know which file I can edit to to change the message sent to the caller?
I would like it to say they have been blocked
Update:
Shortyly after my last post it started working I think there was update..
Works fine now..
I had a friend who had a problem getting this to work as well - and he had established an extension and filled in the DirectDID with the his incoming number -which is okay, but when you do this, it bypasses the blacklist context... so if you want to use it, be sure and make sure in the extension the directdid is empty, and of course if you do this, you'll have to make an inbound rule for that DID to whatever extension you want ----but it will go through the blacklist check if you do so, without having to change anything else.
If anyone is interested I've modified the blacklist destination patch to work with trixbox 2.6.
http://www.trixbox.org/forums/trixbox-forums/open-discussion/blacklist-destination-patch
That blacklisted numbers must be exactly 10 digits?
Because nowadays, almost all telespammers use fake numbers that are not 10 digits.
The blacklist feature uses the inbound CID string, so whatever that number is - that's what must go into the blacklist database.
I have abandoned the LookupBlacklist function and written my own handler a month ago.
This stuff is so cool I can't wait to check my email in the morning to see the new recorded telemarketer calls!
Can you share the code with the rest of us?
I'm not sure where to start. Here is some of the relevant code from my dialplan referring to blacklisting.
I deleted about half of my code because it refers to details on my trunks that would not be of interest or use to you.
The "telemarketer" context is based on astcrapper. I found it on a website somewhere, but the function was badly bugged up, and part of the audio samples were missing. I rewrote it and here is the result.
When a caller is put into the "telemarketer" context, Asterisk talks to them, saying hello, uhhh, yeah, that sounds like somethin', I heard, back when... It sounds like a senile old man, it drives them nuts. I record the calls, convert them to mp3, then email them to my friends for all of us to enjoy. The sounds are all in the "telemarketer" folder on my system. I could post an mp3 of a telemarketer call if you like.
extensions_override_freepbx.conf
[app-blacklist-check]
; this function replaces the app-blacklist-check from FreePBX
exten => s,1,Noop(Custom blacklist - DID: ${FROM_DID})
; if an emergency call was made in the last 30 minutes, then bypass all blacklists and jump directly to RG-600
exten => s,n,GotoIf($[${DB(Emergency/resettime)} > ${EPOCH}]?ext-group,600,1)
exten => s,n,LookupCIDName
exten => s,n,GotoIf($["${CALLERID(num)}"="anonymous"]?blocked)
exten => s,n,GotoIf($["${CALLERID(num)}"="blocked"]?blocked)
exten => s,n,GotoIf($["${CALLERID(num)}"="private"]?blocked)
; is it explicitly blacklisted?
exten => s,n,GotoIf(${DB_EXISTS(blacklist/${CALLERID(num)})}?blacklisted)
; if the number is in the Phonebook, whitelist it
exten => s,n,GotoIf(${DB_EXISTS(cidname/${CALLERID(num)})}?whitelisted)
; call whocalled.us to see if it is a telemarketer
exten => s,n,AGI(junk_lookup.agi|${CALLERID(num)}|"${CALLERID(name)}")
exten => s,n,NoOp(whocalled.us returned spammer set to ${spammer})
exten => s,n,GotoIf($["${spammer}" = "yes"]?blacklisted)
; Call UserEvent to send a signal to my custom CallerID application
exten => s,n(whitelisted),UserEvent(CallerID|${CALLERID(num)}|${CALLERID(name)}|${FROM_DID}|0)
exten => s,n(exit),Return
exten => s,n(blacklisted),UserEvent(CallerID|${CALLERID(num)}|${CALLERID(name)}|${FROM_DID}|1)
; it’s a telemarketer, see the telemarketer context for details
exten => s,n,Goto(telemarketer,s,1)
exten => s,n(blocked),Answer
exten => s,n,Wait(1)
exten => s,n,Zapateller()
exten => s,n,Playback(privacy-unident&goodbye)
exten => s,n,Hangup
extensions_custom.conf
[macro-dialout-trunk-predial-hook] exten => s,1,Noop(security check) ; if the outgoing call is from the EMERGENCY route exten => s,n,GotoIf($["${EMERGENCYROUTE}" = "YES"]?Record911) exten => s,n,MacroExit ; record the emergency call exten => s,n(Record911),Monitor(wav,911call-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${CALLERID(num)},m) ; send an email to my Blackberry that a 911 call is in progress exten => s,n,TrySystem(echo -e "A 911 call is in progress from ${CALLERID(NUM)}\\rat ${STRFTIME(${EPOCH},,%c)}" | /bin/mail -s "Emergency call" root) ; put the Asterisk system in EMERGENCY mode for 30 minutes exten => s,n,Set(DB(Emergency/resettime)=$[${EPOCH} + 1800]) exten => s,n,MacroExit [telemarketer] exten => s,1,Set(SOUND=1) exten => s,n,Set(HELLOLOOP=1) exten => s,n,Set(CALLFILENAME=Telemarketer-${CALLERID(num)}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}) exten => s,n,Ringing exten => s,n,Wait(6) exten => s,n,Answer ; record the call for later amusement exten => s,n,Monitor(wav,${CALLFILENAME},m) exten => s,n,Playback(silence/1) ; start saying hello until telemarketer talks exten => s,n(hello),GoToIf($[${HELLOLOOP} > 9]?done) exten => s,n,Playback(telemarketer/hellos/${HELLOLOOP}) exten => s,n,Set(HELLOLOOP=$[${HELLOLOOP} + 1]) exten => s,n,BackgroundDetect(silence/10,1000,200,100000) exten => s,n,GoTo(hello) exten => s,n(done),Hangup exten => s,n(talkLoop),BackgroundDetect(silence/10,1600,200,110000) exten => s,n,Goto(hello) exten => s,n(tones),Playtones(0/250,697+1209/500,0/250) ; send a long DTMF 1 exten => s,n,Wait(1) ; for robodialers that say "press 1 to speak to an operator" exten => s,n,StopPlaytones exten => s,n,Return ; go through the samples, talk to the telemarketer exten => talk,1,GosubIf($[${SOUND} = 1]?s,tones) exten => talk,n,Playback(telemarketer/jordan/${SOUND}) exten => talk,n,Set(SOUND=$[${SOUND} + 1]) exten => talk,n,ExecIf($[${SOUND} > 12]|Set|SOUND=2) exten => talk,n,Goto(s,talkLoop) ; Hangup event. Stop recording exten => h,1,StopMonitor exten => h,n,System(sleep 5) ; email an mp3 of the telemarketer call to me exten => h,n,System(lame -m m -b 16 -S ${ASTSPOOLDIR}/monitor/${CALLFILENAME}.wav /tmp/${CALLFILENAME}.mp3) exten => h,n,System(echo -e "Telemarketer call from ${CALLERID(num)}\\r${CALLERID(name)}\\rat ${STRFTIME(${EPOCH},,%c)}" | ${ASTAGIDIR}/mailer.sh -f xxx@xxx.local -t <a href="mailto:xxx@xxx.com">xxx@xxx.com</a> -s "Telemarketer call" -b /tmp/${CALLFILENAME}.mp3 >> /tmp/mailer.log)
Thanks Basildane,
Nice work. I'm going to try it out tonight.
Basildane,
This is fricken hilarious. I almost feel bad for the telemarkets, I had one guy stay on the line for like ten minutes! I highly recommned this to anyone who needs a good laugh.

Member Since:
2006-05-31