Forwarding a PSTN Call Into a Zero Runtime Room
When using Twilio as your SIP/PSTN provider, you may need to forward an incoming phone call into a specific Zero Runtime room.This is useful when:
- You want to route calls dynamically to different room IDs.
- You don’t want to configure a fixed room inside Zero Runtime Routing Rules.
Example: Node.js Express Webhook
Create a simple Express server that Twilio will call whenever someone dials your Twilio number.How It Works
- Twilio receives an incoming call on your phone number, then it sends a webhook to your server for call instructions.
- Your server responds with TwiML containing the SIP URI + room ID.
- Twilio dials the Zero Runtime SIP Gateway, which connects the caller into the room.