NEW SPAM Phone Call Blocker

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,170
Reaction score
5,199
Today we're introducing a new SPAM Phone Call Blocker that consolidates everything we've all learned about the robocallers over the past several years.

Spam Phone Call Blocker and CNAM Caching for FreePBX

DsikY9KXcAAyd6J.jpg
 

krzykat

Telecom Strategist
Joined
Aug 2, 2008
Messages
3,145
Reaction score
1,235
Ward, I use the paid version of OpenCnam (very accurate). How does that compare with the TrueCnam plans ? TrueCnam seems like it would be less expensive, but how accurate is it? Also - what happens if you select their highest plan 10 queries / minute and if you have 11 calls come in?
 

kyle95wm

Phone Genius Owner
Joined
Apr 16, 2016
Messages
520
Reaction score
90
@krazykat I would assume that the API will just reject the query
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,170
Reaction score
5,199
Ward, I use the paid version of OpenCnam (very accurate). How does that compare with the TrueCnam plans ? TrueCnam seems like it would be less expensive, but how accurate is it? Also - what happens if you select their highest plan 10 queries / minute and if you have 11 calls come in?

As implemented, call #11 would return a 0 which equates to "not SPAM." But the caller still has to get through the "press 5" prompt.
 

mattburris

Member
Joined
Dec 22, 2017
Messages
31
Reaction score
5
If I wanted to bypass the "Press 5 to connect" and just add the caller id info for calls that are not already in the Asterisk Phonebook, what would I change in the "sub-log-caller" routine in custom_extension.conf file?

This is what I've tried, and although it does skip the "press 5 to connect" it does not add caller ID info to the Phonebook:
Code:
[sub-log-caller]
exten => s,1,NoOp(*** begin sub-log-caller ***)
exten => s,n,GotoIf(${DB_EXISTS(cidname/${CALLERID(num)})}?CNAMCHECK)
;exten => s,n,GotoIf($[${DB_EXISTS(SPAMCHECK/deactivate)} = 0]?ACTIVATE)
exten => s,n,GotoIf($[${DB_EXISTS(SPAMCHECK/deactivate)} = 0]?ANONTEST)
exten => s,n,GotoIf($[${DB(SPAMCHECK/deactivate)} = 1]?CONNECTNOW)
exten => s,n(ACTIVATE),NoOp(Not yet WhiteListed)
exten => s,n,AGI(truecnam.sh,${CALLERID(number)})
exten => s,n,GotoIf($["${SPAM}"="SPAM"]?FLUNKED)
exten => s,n,Playback(silence/1)
exten => s,n,Playback(to-call-num-press)
exten => s,n,Playback(digits/5)
exten => s,n,Read(MYCODE,beep,1,n,1,10)
exten => s,n,GotoIf($["${MYCODE}" = "5"]?ANONTEST)
exten => s,n(FLUNKED),NoOp(*** Caller FLUNKED screening ***)
;exten => s,n,Dial(local/*701@from-internal) ; uncomment to send to 701 VM
exten => s,n,Zapateller()
exten => s,n,Hangup
exten => s,n,Return()
exten => s,n(ANONTEST),GotoIf($[${CALLERID(num)} > 0]?WHITELIST:CONNECTNOW)
exten => s,n(CNAMCHECK),Set(CNAM1=${CALLERID(name)})
exten => s,n,Set(CNAM2=${DB(cidname/${CALLERID(number)})})
exten => s,n,GotoIf($["${CNAM1}" = "${CNAM2}"]?WHITELISTED
exten => s,n(WHITELIST),Set(DB(cidname/${CALLERID(number)})=${CALLERID(name)})
exten => s,n,Set(CALLERID(all)="${CALLERID(name)} <${CALLERID(number)}>")
exten => s,n(WHITELISTED),NoOp(WhiteListed: ${CALLERID(all)})
exten => s,n(CONNECTNOW),NoOp(*** end of sub-log-caller ***)
exten => s,n,Return()
;-----------------------------------------------------------------------------$

Thanks in advance!
 

mattburris

Member
Joined
Dec 22, 2017
Messages
31
Reaction score
5
If I wanted to bypass the "Press 5 to connect" and just add the caller id info for calls that are not already in the Asterisk Phonebook, what would I change in the "sub-log-caller" routine in custom_extension.conf file?

SOLVED... Actually the modifications I made above seem to be working, but they just were not showing up right away.
 

Members online

Forum statistics

Threads
25,782
Messages
167,514
Members
19,203
Latest member
frapu
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top