Developer Builds 178-Line Python Firewall to Block Scam Calls at Carrier Level
A developer has published an open-source call-screening system called the Edge Fraud Firewall, designed to intercept fraudulent calls before they reach an application or human agent. Built in 178 lines of Python using a single Flask file, the tool integrates three Telnyx APIs — Number Lookup, AI Inference, and Call Control — to evaluate every inbound call at the carrier edge. Each call is assessed through a pipeline that checks a blocklist, looks up carrier data, and uses an AI model to classify the caller as CLEAN, SUSPICIOUS, or BLOCK. Legitimate calls are forwarded normally, blocked numbers are rejected and added to a blocklist, while suspicious callers are routed to a honeypot that loops hold music indefinitely to waste scammers' time and resources. The system defaults to CLEAN if the AI service is unavailable, ensuring legitimate callers are never incorrectly blocked due to a technical failure.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in