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
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
Last edited: