- Copy
.env.exampleto.envand adjust values if needed:
PORT=3000
# MySQL connection (Asterisk Realtime DB)
MYSQL_HOST=127.0.0.1
MYSQL_PORT=3306
MYSQL_USER=asterisk
MYSQL_PASSWORD=asterisk
MYSQL_DATABASE=asterisk
# TypeORM runtime options
TYPEORM_SYNC=false
TYPEORM_LOGGING=false
- Install and run:
npm i
npm run start:dev
or deploy docker-package
- API Endpoints:
POST /tenant- create a new tenant with full environment (default context, queue, ivr, inbound-route), separated from others tenantsPOST /tenant/:id/extension- create a new pjsip-extension for tenantGET /tenant/:id/extensions- get a list of extensions for tenant
- Swagger UI:
- Available at
/apiwhen the app is running.