SBC sends INVITE
Suspicious traffic is routed to the CAPTCHA gateway first.
Early-media SIP screening
A SIP call-screening service that challenges suspicious callers with a short IVR code before your SBC sends them to the real destination.
What it is for
CAPTCHA Gateway sits in front of a PBX, PSTN trunk, or high-risk destination as the first route attempt from your SBC. Humans hear a short prompt and enter the spoken digits. Bots and scanners usually time out or send the wrong DTMF.
How it works
The whole challenge happens in early media. That keeps the CAPTCHA leg disposable and lets the SBC decide what to do next.
Suspicious traffic is routed to the CAPTCHA gateway first.
FreeSWITCH provides SDP so the caller hears the IVR prompt as early media.
A random code is spoken and RFC4733 DTMF is collected.
503 means route to the real destination. 603 means block.
Where it helps
Challenge calls that match suspicious source, volume, ANI, or route patterns.
Slow down automated floods before they reach queues, agents, or emergency paths.
Screen expensive international or premium routes without changing the destination PBX.
Challenge calls that mimic local numbering patterns or fail reputation checks.
Operations
The gateway keeps call state small, logs every call by Call-ID, and exposes local health, metrics, and recent-call endpoints for monitoring.
Deploy
Configure the SBC with CAPTCHA Gateway as the first route attempt. Advance on 503, stop on 603, and send passed calls to the normal destination route.
sip:captcha.pbx.io:5060503 Service Unavailable603 DeclinePSTN / PBX destination