Skip to content

drachtio/movius-call-moderation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Call Moderation Service

Screen incoming calls through a secretary before connecting to the destination.

Call Flow

  1. Caller dials a moderated number
  2. Check allow/block list:
    • Allowed → Connect directly
    • Blocked → Reject call
    • Unknown → Connect to secretary
  3. Secretary talks to caller, then:
    • Press 1 → Approve (whitelist) and connect
    • Press 2 → Reject (blacklist) and hang up

Setup

npm install
cp .env.example .env
npm start

Configuration

WS_PORT=3000
LOGLEVEL=info
OUTBOUND_TRUNK=your-carrier
SECRETARY_NUMBER=+1234567890

Jambonz Setup

Create an application pointing to ws://your-server:3000/call-moderation and route moderated numbers to it.

Files

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •