Forward calls and SMS messages from your Twilio number to a real number w/ NodeJS + Express
- SSL Certificate (LetsEncrypt)
- Valid Twilio API Credentials
git clone https://github.com/brandonkovacs/manychat-dynamic
npm install
- Set Environment Variables (See Below)
- Configure Twilio Endpoints (See Below)
node index.js
export PORT=8080
export SSL_KEY=/path/to/privkey.pem
export SSL_CERT=/path/to/certificate.pem
export TWILIO_ACCOUNT_SID=twilio_account_sid
export TWILIO_AUTH_TOKEN=twilio_auth_token
export TWILIO_NUMBER=+10000000000
export USER_FORWARDING_NUMBER=+10000000000
Set Twilio Voice + SMS Webhooks for this number to our SSL Endpoints.
Accept Incoming: Voice Calls
Configure With: Webhooks, TwiML Bins, Functions, Studio, or...
When A Call Comes In:
- Handler:
Webhook
- URL:
https://example.com:8080/voice
- Request Type:
HTTP POST
Configure With: Webhooks, TwiML Bins, Functions, Studio, or...
When A Message Comes In:
- Handler:
Webhook
- URL:
https://example.com:8080/sms
- Request Type:
HTTP POST