Screen incoming calls through a secretary before connecting to the destination.
- Caller dials a moderated number
- Check allow/block list:
- Allowed → Connect directly
- Blocked → Reject call
- Unknown → Connect to secretary
- Secretary talks to caller, then:
- Press 1 → Approve (whitelist) and connect
- Press 2 → Reject (blacklist) and hang up
npm install
cp .env.example .env
npm startWS_PORT=3000
LOGLEVEL=info
OUTBOUND_TRUNK=your-carrier
SECRETARY_NUMBER=+1234567890Create an application pointing to ws://your-server:3000/call-moderation and route moderated numbers to it.
app.js # Server entry point
lib/
config.js # Environment variables
routes/
index.js # Route registration
call-moderation.js # Main call handler
db/
list-store.js # In-memory allow/block list