Quantcast
Channel: FreePBX Community Forums - Latest posts
Viewing all articles
Browse latest Browse all 226408

Fcc robocall list

$
0
0

This is not generic....

So you need to download the list. The link changes weekly so you have to account for the range dates manually

https://consumercomplaints.fcc.gov/hc/theme_assets/513073/200051444/Telemarketing_RoboCall_Weekly_Data100115-102015.csv

assuming the base address is always the same you can simply change 100115 and 102015

Then you can load it to an array:

$file = fopen("Telemarketing_RoboCall_Weekly_Data100115-102015.csv","r");
$data = fgetcsv($file);
fclose($file);

This will give you an array called $data

If you are using bootstrap ( http://wiki.freepbx.org/display/FOP/Bootstrap ) and 13
you can

foreach ($data as $row){
    /*normalize data to your environment. $row[3] is a npa-npx-xxxx format. */
   /*$bldata should be array('description'=>$row[0], 'number' => $yourdata)*/
    \FreePBX::Blacklist()->numberAdd($bldata);
}

Viewing all articles
Browse latest Browse all 226408

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>