Block or route anonymous incoming calls.

Status
Not open for further replies.

bradgarrison

New Member
Feb 20, 2023
18
0
1
48
Recently I have been getting an increasing number of anonymous calls from spammers. During the day, it is just an annoyance, but after hours we route incoming calls to a call service that charges by the minute. Ideally, I would like to block the anonymous calls or send them directly to the voicemail box.

I tried to use the Call Block feature entering in variations of the caller name while leaving the number field blank, but I was unable to make it work.

Attached is the output from my call flow, showing the incoming anonymous call and a screenshot of how I tried using Call Block.

Basically, the SIP call coming in looks like this: From: "Anonymous" <sip:Anonymous@pbxxxx.pstn.twilio.com>;tag=93706258_c3356d0b_b3608c89-0c4f-49

The log viewer in FusionPBX shows the call coming in as:

33c15ff3-00af-458a-93a8-d981000fe360 EXECUTE [depth=0] sofia/external/Anonymous@pbxjbtech.pstn.twilio.com set(caller_id_name=Anonymous)
33c15ff3-00af-458a-93a8-d981000fe360 2023-03-22 11:42:24.581318 97.63% [DEBUG] mod_dptools.c:1673 SET sofia/external/Anonymous@pbxjbtech.pstn.twilio.com [caller_id_name]=[Anonymous]
33c15ff3-00af-458a-93a8-d981000fe360 Dialplan: sofia/external/Anonymous@pbxjbtech.pstn.twilio.com Action set(caller_id_number=${caller_id_number})
33c15ff3-00af-458a-93a8-d981000fe360 Dialplan: sofia/external/Anonymous@pbxjbtech.pstn.twilio.com parsing [pbx.jbtechconsulting.com->caller-details] continue=true
33c15ff3-00af-458a-93a8-d981000fe360 Dialplan: sofia/external/Anonymous@pbxjbtech.pstn.twilio.com Regex (FAIL) [caller-details] ${caller_destination}(+18105840000) =~ /^$/ break=never
33c15ff3-00af-458a-93a8-d981000fe360 Dialplan: sofia/external/Anonymous@pbxjbtech.pstn.twilio.com parsing [pbx.jbtechconsulting.com->global-variables] continue=true
33c15ff3-00af-458a-93a8-d981000fe360 Dialplan: sofia/external/Anonymous@pbxjbtech.pstn.twilio.com Regex (PASS) [global-variables] () =~ // break=on-false
33c15ff3-00af-458a-93a8-d981000fe360 Dialplan: sofia/external/Anonymous@pbxjbtech.pstn.twilio.com Action set(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
33c15ff3-00af-458a-93a8-d981000fe360 Dialplan: sofia/external/Anonymous@pbxjbtech.pstn.twilio.com Action set(timezone=America/Detroit) INLINE
 

Attachments

  • Anon call.png
    Anon call.png
    122.7 KB · Views: 34
  • Image 3-22-23 at 11.17 AM.png
    Image 3-22-23 at 11.17 AM.png
    191.8 KB · Views: 36
Last edited:

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
In dialplan manager, you may need to move call_block to a lower order number depending on what else is going on in your dialplan. On the default dialplan I ended up moving mine to 26.
 
  • Like
Reactions: bradgarrison

whut

Member
Dec 23, 2022
228
22
18
@bradgarrison, the call block Name is exact string including case, so I recommend create at least 3 variations in lowercase, uppercase, and propercase for better blocking of variations on Anonymous.
 
  • Like
Reactions: bradgarrison
Status
Not open for further replies.