How to automatically block a caller ID

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

How to automatically block a caller ID

Postby jessiekidfernando » Fri Mar 22, 2019 4:50 pm

Hello Vicidial Team,

We have experienced tons of calls on a specific time frame which causes the system to hangup due to high utilization. Is there any way that we can automatically block a caller ID calling to specific DID so we can prohibit this from happening?

Thanks.

Regards,

Jessie Kid Fernando
OS: Linux version 4.4.155-68-default (geeko@buildhost) (gcc version 4.8.5 (SUSE Linux) )
VERSION: 2.14-717a
BUILD: 190724-1603
Asterisk: 13.21.1-vici
Dahdi: 2.11.1
jessiekidfernando
 
Posts: 152
Joined: Fri Feb 08, 2019 5:49 pm

Re: How to automatically block a caller ID

Postby mflorell » Fri Mar 22, 2019 7:03 pm

Yes, that is why we created Inbound Filter Phone Groups.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: How to automatically block a caller ID

Postby jessiekidfernando » Fri Mar 22, 2019 8:35 pm

Hello Matt,

Thanks for your quick response. However what I am trying to achieve is that let's say there's like a brute force from outside world that wants to call the inbound DID for how many times on a specific period of time. Like a fail2ban setup in asterisk.

Regards,

Jessie Kid Fernando
OS: Linux version 4.4.155-68-default (geeko@buildhost) (gcc version 4.8.5 (SUSE Linux) )
VERSION: 2.14-717a
BUILD: 190724-1603
Asterisk: 13.21.1-vici
Dahdi: 2.11.1
jessiekidfernando
 
Posts: 152
Joined: Fri Feb 08, 2019 5:49 pm

Re: How to automatically block a caller ID

Postby thephaseusa » Fri Mar 22, 2019 10:51 pm

Somebody is knocking your DID offline by brute force calling it?
Why cant you just change your DID to a new number?
thephaseusa
 
Posts: 345
Joined: Tue May 16, 2017 2:23 pm

Re: How to automatically block a caller ID

Postby jessiekidfernando » Sat Mar 23, 2019 12:10 am

Hello thephaseuse,

Yes you are correct someone is knocking our DID by brute force.. We cannot just change it as it is our mainline and being used and published on most of our websites.

Regards,

Jessie
OS: Linux version 4.4.155-68-default (geeko@buildhost) (gcc version 4.8.5 (SUSE Linux) )
VERSION: 2.14-717a
BUILD: 190724-1603
Asterisk: 13.21.1-vici
Dahdi: 2.11.1
jessiekidfernando
 
Posts: 152
Joined: Fri Feb 08, 2019 5:49 pm

Re: How to automatically block a caller ID

Postby mflorell » Sat Mar 23, 2019 4:36 am

You could write a PHP script to do a lookup using your DID log and a specific time period(like the last 5 minutes) and then put that in the Filter URL setting of the DID.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: How to automatically block a caller ID

Postby jessiekidfernando » Tue Mar 26, 2019 5:35 am

Hello Mflorrel,

Then you want to run it via cron? By the way do you have any reference about the filter URL settings of the did? Just saw some description on the manual but no how to use and how it is working on the background. Thanks
OS: Linux version 4.4.155-68-default (geeko@buildhost) (gcc version 4.8.5 (SUSE Linux) )
VERSION: 2.14-717a
BUILD: 190724-1603
Asterisk: 13.21.1-vici
Dahdi: 2.11.1
jessiekidfernando
 
Posts: 152
Joined: Fri Feb 08, 2019 5:49 pm

Re: How to automatically block a caller ID

Postby mflorell » Tue Mar 26, 2019 1:57 pm

No, it would not be in the cron, this would be a PHP script on your webserver that would be called by the internal DID routing process.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: How to automatically block a caller ID

Postby jessiekidfernando » Wed Mar 27, 2019 12:07 am

Hello Mflorrel,

Do you have sample script for this? Or an existing script similar to this that I can replicate?
OS: Linux version 4.4.155-68-default (geeko@buildhost) (gcc version 4.8.5 (SUSE Linux) )
VERSION: 2.14-717a
BUILD: 190724-1603
Asterisk: 13.21.1-vici
Dahdi: 2.11.1
jessiekidfernando
 
Posts: 152
Joined: Fri Feb 08, 2019 5:49 pm

Re: How to automatically block a caller ID

Postby williamconley » Wed Mar 27, 2019 12:23 am

Ingroup setting: No Agent Call URL

This can be a php script. PHP can do anything you like, including add the CID of the caller to a filter phone group after checking to see how often this number has called in recently.

Beware: Your solution is still imperfect because the caller need only rotate their caller ID just like a rotating IP address brute force attack (from a botnet) results in DDOS. Except a caller doesn't need to actually have a botnet for this, they can modify the CID on each call just like you can.

But if you are in the US your phone company can identify and initiate an FCC investigation into someone hammering your phone system. It's illegal in the US to use an autodialer to take up more than one line on a multiline company PBX.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: How to automatically block a caller ID

Postby mflorell » Wed Mar 27, 2019 4:22 am

The "vtiger_phone_match.php" script was originally written for the DID Filter URL feature, you can use that as an example.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: Bing [Bot] and 36 guests